emacs-orgmode
[Top][All Lists]

## Re: [Orgmode] problem with label in latex export

 From: Indraneel Majumdar Subject: Re: [Orgmode] problem with label in latex export Date: Wed, 22 Sep 2010 15:05:38 +0530 User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.9) Gecko/20100915 Lightning/1.0b2 Thunderbird/3.1.4

Thanks Bastien, this works inline. Please put it in the manual, it's just one line. I've spent looking for it every inch of the manual for more than a day.

So will you be putting in \phantomsection for inline targets to work? I guess if someone is using a <<target>> then it's more likely /not/ to be a section heading. Putting it at a section heading doesn't hurt, but not having it inline makes for a useless <<target>>. Off course for Latex only, so probably should be in the exporter.

Indraneel

On 2010-09-22 14:40, Bastien wrote:
Hi Indraneel,

11.
#+<<target>>
Some text
12.  More text [[target][go to]]
You're right that there is a problem.

The usual way of turning radio links invisible is to comment them, but
Org comments need to be at the beginning of the line, which breaks list
indentation.  (Btw, no need for the '+' in '#+' -- '#+' is the syntax
prefix for optional elements like blocks, etc.)

The workaround here is to add (INVISIBLE) after your<<target>>

This works:

11.<<target>>(INVISIBLE)
Some text
12. More text [[target][go to]]
It exports okay in HTML and LaTeX.

I've added a FAQ entry for this -- not sure whether it should go in the
manual.

Thanks for bringing this up!