[Top][All Lists]

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

Re: [AUCTeX] RefTeX: Section and chapter numbers into label prefixes

From: David Kastrup
Subject: Re: [AUCTeX] RefTeX: Section and chapter numbers into label prefixes
Date: Sun, 20 May 2007 12:38:43 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * David Kastrup (2007-05-20) writes:
>> Ralf Angeli <address@hidden> writes:
>>> * Eugenio Piasini (2007-05-20) writes:
>>>> Does anyone know about a simple way to obtain this result? I mean,
>>>> I'm a newbie and I don't know enough to write a custom function to
>>>> insert into "context-method"..
>>> Getting the numbers as in the typeset document will be very hard.
>>> You would probably have to parse output files.
>> Actually, when using preview-latex (which is when the difference in
>> section numbering between RefTeX and LaTeX might be most noticeable)
>> with preview-preserve-counters, then the preview overlays will contain
>> the necessary information already.
> Hm, using such a feature would only make sense if it can be handled
> transparently without the user having to intervene manually.

Well, if reftex took the cues when they exist, there would be no
manual intervention involved.  One problem will be that there are no
guarantees that numbers are actually sequential or unique in the
RefTeX buffers.  But in the presence of previews, one could make sure
that their (recorded) numbering is consistent with that of RefTeX.

There are some more drawbacks:
a) we don't have the tocdepth/secnumdepth information available, so
when in doubt, RefTeX will exhibit more information than LaTeX.
b) we don't have the numbering style available, so the information
will be numeric.  In particular, Appendices A, B, C, D... would likely
be numbered 1, 2, 3, 4 inside of RefTeX.

Unless RefTeX picks up the "Appendix" angle on its own from the source
code.  Maybe it already does, but I am not sure of that.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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