emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [PATCH] ox-latex.el --- CUSTOM_ID-as-section-label-in-latex-expo


From: Eric Schulte
Subject: Re: [O] [PATCH] ox-latex.el --- CUSTOM_ID-as-section-label-in-latex-export
Date: Mon, 24 Jun 2013 11:08:54 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:

> Hello,
>
> Eric Schulte <address@hidden> writes:
>
>> From c087e84a8fd80b277bf064eb31f1b893c25f1b4a Mon Sep 17 00:00:00 2001
>> From: Eric Schulte <address@hidden>
>> Date: Mon, 24 Jun 2013 10:25:03 -0600
>> Subject: [PATCH] CUSTOM_ID as section label in latex export
>>
>>   When exporting to HTML, custom ids of headlines become references to
>>   the resulting section in the exported document.  This is both more
>>   stable and more readable than using section numbers.  This commit adds
>>   this option to the latex exporter.
>
> Thanks for the patch.
>
> Though, it isn't as stable as relying on section numbers: there is no
> guarantee the custom id will be unique nor that it will not contain any
> forbidden character.
>
> This patch also breaks cross references, which expects labels to be
> built from section number (see `org-latex-link').
>

Oh, I see now that I can simply use [[#id]] links and they will be
translated as appropriate.  This will then also resolve these references
if I export the paper to HTML.

Thanks for the explanation,

>
> Since you (almost?) never need to write \ref{custom-id} in the Org
> buffer, I don't think it is bad to keep current label system.
>
> Another option would be to have both \label{sec-...} and
> \label{custom-id}. But it would require the user to check validity of
> its id.
>
>
> Regards,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



reply via email to

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