Rasmus <ras...@gmx.us> writes:
> Hi,
>
> Suvayu Ali <fatkasuvayu+li...@gmail.com> 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


Reply via email to