emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Target and link text normalised to `orgtargetn'


From: Rasmus
Subject: Re: [O] Target and link text normalised to `orgtargetn'
Date: Tue, 14 Apr 2015 14:59:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

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.

—Rasmus

-- 
To err is human. To screw up 10⁶ times per second, you need a computer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]