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:52:23 -0600 Message-ID: <87y6zi13eg.fsf@fastmail.fm> References: <874p2blh0m.fsf@fastmail.fm> <570FDFE9-C3C9-4E77-8B04-64DAA7B6F33E@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 1L2B58-0008TI-7l for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 15:52:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2B57-0008St-Em for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 15:52:25 -0500 Received: from [199.232.76.173] (port=50697 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2B57-0008Sk-6J for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 15:52:25 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:34632) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L2B56-0006A7-SA for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 15:52:25 -0500 In-Reply-To: <570FDFE9-C3C9-4E77-8B04-64DAA7B6F33E@uva.nl> (Carsten Dominik's message of "Sun\, 16 Nov 2008 22\:27\:57 +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: > >> >> Question about org-export: >> >> I'd like to create invisible radio targets to html anchor links using >> org-export. >> >> E.g., >> >> # <> >> >> should become >> >> >> >> Currently, however, there are a couple of behaviors of org-exp.el that >> make this difficult. >> >> 1) Org-export does convert invisible targets, but it puts paragraph >> tags around the anchor, thus creating an empty line in the html >> export, which messes up the layout. >> >>

>>   >>

> > This actually only happens if you surround the anchor by empty > lines. Put it directly before a paragraph, or inside one, and > this will not happen. > >> 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. > > This is now fixed, the invisible targets are added as empty anchors > to the headline that must be directly before or after the anchor. > > > > On Nov 13, 2008, at 6:18 PM, Matthew Lundin wrote: >>> >>>

>>>   >>>

>> >> Quick follow up to my previous message. Would it be possible to remove >> the   above. That would prevent an extra line in the output, but >> it might render the link useless in some browsers. > > Fixed as well, thanks. I guess when I implemented this a long time > ago, I did not realize that empty anchors are allowed. > >> (I should also apologize for the strong phrase "messes up." > > Don't worry, no offense taken. > > - Carsten Didn't see the fix before I sent my last message. Thanks so much! This is fantastic. - Matt