[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Target and link text normalised to `orgtargetn'
From: |
Suvayu Ali |
Subject: |
Re: [O] Target and link text normalised to `orgtargetn' |
Date: |
Tue, 14 Apr 2015 14:08:52 +0200 |
User-agent: |
Mutt/1.5.23.1-rc1 (2014-03-12) |
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.
- [O] Target and link text normalised to `orgtargetn', Suvayu Ali, 2015/04/14
- Re: [O] Target and link text normalised to `orgtargetn',
Suvayu Ali <=
- Re: [O] Target and link text normalised to `orgtargetn', Rasmus, 2015/04/14
- Re: [O] Target and link text normalised to `orgtargetn', Rasmus, 2015/04/16
- Re: [O] Target and link text normalised to `orgtargetn', Suvayu Ali, 2015/04/16
- Re: [O] Target and link text normalised to `orgtargetn', Rasmus, 2015/04/16
- Re: [O] Target and link text normalised to `orgtargetn', Nicolas Goaziou, 2015/04/18
- Re: [O] Target and link text normalised to `orgtargetn', Suvayu Ali, 2015/04/19
- Re: [O] Target and link text normalised to `orgtargetn', Nicolas Goaziou, 2015/04/19
- Re: [O] Target and link text normalised to `orgtargetn', Suvayu Ali, 2015/04/19
- Re: [O] Target and link text normalised to `orgtargetn', Nicolas Goaziou, 2015/04/19