Hi, I found a partial answer.
On Tue, Apr 14, 2015 at 11:25:30AM +0200, Suvayu Ali wrote: > > I am exporting Org files to LaTeX. I noticed something strange > happening. The text of all my target text gets changed to `orgtargetn' > where n is some number. This breaks a lot of my LaTeX specific links. > > For example, I use the varioref package to get entity specific Typo here, the package name is actually refstyle. > references, so \secref{sec:foo}, \figref{fig:bar}, \tabref{sec:baz} (it > even takes care of language, or punctuation as needed!). Now if the > target text changes from sec:foo to orgtarget1, of course the link > breaks. The commit 4bbc054 introduces a variable org-latex-prefer-user-labels. which is reponsible for this behaviour. Setting this variable to t doesn't entirely solve my problem though. Normal targets like <<par:interesting>> are still altered. I think the docstring hints at that already. For headlines that do not define the CUSTOM_ID property or elements without a NAME, Org will continue to use its default labeling scheme to generate labels and resolve links into proper references. I guess a bare target is an element without a NAME. I find this a bit strange, since the user already adds the target manually. So I think it is already the user's responsibility to ensure it is consistent. Shouldn't then Org leave this unchanged? Thanks, -- Suvayu Open source is the future. It sets us free.