emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Anchors/targets in org-export/publish


From: Matthew Lundin
Subject: [Orgmode] Anchors/targets in org-export/publish
Date: Thu, 13 Nov 2008 10:36:41 -0600
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Question about org-export:

I'd like to create invisible radio targets to html anchor links using
org-export.

E.g., 

# <<radiotarget>>

should become

<a name="radiotarget"></a>

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.

         <p>
         <a name="radiotarget">&nbsp;</a>
         </p>

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.

Thanks. Any feedback would be greatly appreciated.

Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]