auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] reftex-label-alist not consistent


From: Ralf Angeli
Subject: Re: [AUCTeX] reftex-label-alist not consistent
Date: Wed, 09 Apr 2008 22:02:49 +0200

* Emilio Jesús Gallego Arias (2008-04-08) writes:

> Then if you press C-c-= *only* the first lemma will be displayed in the
> TOC. All right, so it seems that we should put a space after the
> \begin{lemma} so TOC works with it. 

The \begin{lemma} like all the other section stuff from
`reftex-section-levels' and `reftex-label-alist' is only found if it is
followed by "[[{ \t\r\n]" (regexp-wise).  I have to check if this
restriction can be loosened.

> But then I press C-c-) just after "Lem." to insert a reference, the
> browser *only* displays the second lemma. If a put a space between
> \begin{lemma} and \label then C-c-) doesn't work properly, though C-c-=
> needs the space to show lemmas in the TOC.

The first \begin{lemma} is found and since it is treated as a section,
the bound for looking backwards during parsing is set to the point right
after it (in `reftex-parse-from-file').  Now when the label after it is
found, it is not searched beyond this bound and the type of environment
cannot be determined correctly.  If you look at the .rel file you will
see that the type key for the first lemma is "s".

> So I cannot have a lemma both selected as a lemma by reftex-reference
> and displayed in TOC. This seems really weird, what I'm doing wrong?

Nothing, those are bugs.  As a workaround you could put the labels in a
separate line and use " " as type key when calling `C-c )'.  I'll need
to check more closely how the bugs can be fixed.

-- 
Ralf




reply via email to

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