From mboxrd@z Thu Jan 1 00:00:00 1970 From: mdl@imapmail.org Subject: Re: Anchors/targets in org-export/publish Date: Mon, 17 Nov 2008 14:49:51 -0600 Message-ID: <873ahq2i34.fsf@fastmail.fm> References: <874p2blh0m.fsf@fastmail.fm> <55BECF7D-46B4-472E-8C98-5FAB33406DDC@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2B2k-0006sn-4a for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 15:49:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2B2h-0006qG-Fb for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 15:49:57 -0500 Received: from [199.232.76.173] (port=50643 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2B2h-0006qB-8Y for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 15:49:55 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:42901) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L2B2h-0005xq-0t for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 15:49:55 -0500 In-Reply-To: <55BECF7D-46B4-472E-8C98-5FAB33406DDC@uva.nl> (Carsten Dominik's message of "Sun\, 16 Nov 2008 21\:29\:05 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten Dominik writes: > On Nov 13, 2008, at 5:36 PM, Matthew Lundin wrote: [snip] >> >> 2) If the commented radio target is directly beneath or above a >> headline, it is not exported. I checked org-exp.el and this seems to >> be an intentional behavior. I'm not sure I understand the reasons >> behind this, as it prevents one from giving custom anchors to >> headlines. >> >> This is especially important if one wants to be able to create >> permalinks to headlines from other pages. > > Yes, can see that this application makes sense. However, the reason > why I am using the target of the headline instead is because I would > like the anchor to match at the headline directly. I could, probably, > use the specified target instead of the sec-... id, but that also > feels inconsistent. Hmmm, I need to think more about this. > > I just checked how Muse handles this. When they have an anchor > directly above a headline, the anchor is inserted into the definition > of the headline. Maybe we can do something like this. > > - Carsten Thanks for considering this. - Matt