[Top][All Lists]

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

[AUCTeX] RefTeX: defining new label environment

From: Joost Kremers
Subject: [AUCTeX] RefTeX: defining new label environment
Date: Thu, 10 Sep 2009 14:13:12 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Hi all,

I use a TeX package called ExPex for linguistic examples, which has its own way 
of defining labels. The package defines two environments, \ex--\xe and 
\pex--\xe (yes, they're both closed with \xe). The latter allows sublists, 
where each item is introduced with the macro \a.

These environments can define labels with angle brackets:

\ex<ex:1> This is an example

\a This is a subexample
\a<b> This is another subexample

Is there a way to get RefTeX to recognize these things as labels? I've tried adding a 
definition to reftex-label-alist and specifying `\ex<*>' for the ENV-OR-MACRO 
entry, but that doesn't work...



PS: there is a discrepancy between the doc string for reftex-label-alist and the info 
section "Non-Standard Environments". The former says that if ENV-OR-MACRO is a 
function, it must return a cons cell (FUNCTION . POSITION), the latter says that it must 
return just a buffer position.

Joost Kremers, PhD
University of Frankfurt
Institute for Cognitive Linguistics
Grüneburgplatz 1
60629 Frankfurt am Main, Germany

reply via email to

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