auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] automatic insertion of labels


From: Ralf Angeli
Subject: Re: [AUCTeX] automatic insertion of labels
Date: Fri, 26 Feb 2010 20:41:14 +0100

* David Romano (2010-02-26) writes:

> On Fri, 26 Feb 2010, Ralf Angeli wrote:
>
>> Since you don't describe what exactly you did this is hard to tell.  Did
>> you follow the instructions in (info "(reftex)Theorem and Axiom"),
>> including the addition to the mode hook?
>
> I followed the instructions for using "customize" to do this, but I didn't 
> do anything else, since the "Theorem and Axiom" section said "To do the 
> same configuration with `customize', you need to click on the `[INS]' 
> button twice to create two templates and fill them in like this: ...", and 
> I took that to mean this included the mode hook part.

No.  It speaks of doing it twice because there are two environments to
be configured in the example.

> Since I don't know lisp, I only use the "customize" way, and don't know 
> how to translate the lisp instructions for adding the mode hook into 
> "customize" instructions.  The Latex Mode Hook group only has a text box 
> without choices, so I'm not sure what to enter.  I assume this is 
> the right place to be working, though, right?

Probably.  Addmittedly I've never used Customize to configure a mode
hook.  You can try to click on [INS] and then copy and paste the
(lambda () ...)  part from the example into the text box.  Obviously you
will have to edit the list of environments in that code to fit those you
would like to configure.  For each environment you have to put in an
entry like '("<environment>" LaTeX-env-label).

If that doesn't work you might try to copy and paste the whole code
snippet from the RefTeX manual, i.e. including the `add-hook' part, into
your init file and restart Emacs (or evaluate the snippet with `C-x
C-e').  The init file can usually be found with `C-x C-f ~/.emacs
<RET>', though I don't know if Aquamacs still uses that.

-- 
Ralf




reply via email to

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