auctex
[Top][All Lists]
Advanced

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

[AUCTeX] Labels for theorems and RefTeX


From: JohnnyK
Subject: [AUCTeX] Labels for theorems and RefTeX
Date: Tue, 6 Feb 2007 03:14:51 -0800 (PST)

Hi,

I'm trying to reference definitions, theorems etc. using RefTeX. I added
entries for my various theorem types to my reftex-label-alist. I looks like
this:

'(reftex-label-alist (quote (
    ("satz" 97 "satz:" "~\\ref{%s}" 1 ("Satz" "Theorem") -3)
    ("korollar" 107 "kor:" "~\\ref{%s}" 1 ("Korollar") -3)
    ("definition" 100 "def:" "~\\ref{%s}" 1 ("Definition" "Def.")-3)
("lemma" 108 "lem:" "~\\ref{%s}" 1 nil -3)))))

Adding labels works perfectly. If I specify an additional parameter to the
theorem environment, e.g. something like "\begin{definition}[useful
definition]...", it takes the text for the label from the additional
parameter, else it takes it from the first sentence of the body of the
environment.
The problem arises when I try to reference the labels. Only the labels of
environments without an additional parameter are selectable in the TOC that
comes up, when I insert an reference. The others appear in the list, but
aren't selectable (just as if there wasn't a label). How can I get labels in
environments like "\begin{definition}[useful definition]..." to be
selectable in the TOC?

Thanks!

-- 
View this message in context: 
http://www.nabble.com/Labels-for-theorems-and-RefTeX-tf3180085.html#a8824285
Sent from the Gnu - AUCTeX - General mailing list archive at Nabble.com.





reply via email to

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