[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Target and link text normalised to `orgtargetn'
From: |
Andreas Leha |
Subject: |
Re: [O] Target and link text normalised to `orgtargetn' |
Date: |
Tue, 14 Apr 2015 14:37:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin) |
Rasmus <address@hidden> writes:
> Hi,
>
> Suvayu Ali <address@hidden> writes:
>
>>> 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.
>
> The change in behavior is approximately
> 160820bc9498e9364103e72b55a27cf92576dbb8 to
> 4bbc054bd252b975f483a29515495a9af9329c71.
>
> IMO the issue is that org-export-get-reference does not map back to
> default-type references (sec:·, fig:·). I think this should be fixed.
>
>> 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?
>
> That seems like a bug.
>
Seems both, self-fixing and Rasmus-fixing.....
(Sorry, could not resist.)
Andreas
- [O] Target and link text normalised to `orgtargetn', Suvayu Ali, 2015/04/14
- Re: [O] Target and link text normalised to `orgtargetn', Suvayu Ali, 2015/04/14
- Re: [O] Target and link text normalised to `orgtargetn', Rasmus, 2015/04/14
- Re: [O] Target and link text normalised to `orgtargetn',
Andreas Leha <=
- 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
- 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