[Top][All Lists]

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

[AUCTeX] Re: RefTeX: Setting it up for refstyle.sty

From: Ralf Angeli
Subject: [AUCTeX] Re: RefTeX: Setting it up for refstyle.sty
Date: Wed, 24 Sep 2008 21:59:05 +0200

* Andreas Neiser (2008-09-23) writes:

> But this only explains how to implement new customized environments but
> not how to change the parse string from "label" to "eqlabel" when I'm in
> a equation environment, and so on.

Have you tried adding an entry to `reftex-label-alist' as described in
the following manual entry?

(info "(reftex)Figure Wrapper") <-- Type `C-x C-e' here.

This is just an idea, I haven't actually tried that.

> 2) Inserting references should be changed from \ref{eq:bla} to
> \eqref{bla}, but that should be easily possible with adding some entries
> to reftex-label-alist, right?

On auctex-devel you already referenced a thread where a way to do this
was presented:


> Of course, it would be very nice if this functionality is only enabled
> if refstyle.sty is loaded. Is that somehow possible?

If it were implemented in RefTeX one could enable it in RefTeX only if
RefTeX is plugged into AUCTeX and the "refstyle" style is found.

A problem is that arbitrary label and reference commands can be created
by using \newref, possibly in a configuration file.  One could provide
support for the default set defined by refstyle.cfg and a possibility to
adapt this support on a case by case basis.

Having said that, I'd consider a clean support for refstyle.sty rather
difficult to implement.  But perhaps I am just dull because I don't have
much time to think about it at the moment.


reply via email to

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