auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Re: Adding new environments to


From: Ralf Angeli
Subject: Re: [AUCTeX] Re: Adding new environments to
Date: Fri, 24 Dec 2010 17:12:57 +0100

* Tyler Smith (2010-12-22) writes:

> I don't understand how the style files work though. I used the example
> from the manual as a template, and put my own tws.el file in the default
> style file directory "/home/tyler/.emacs.d/auctex/style" (which is listed in
> TeX-style-path):
>
> (TeX-add-style-hook 
>  "latex"
[...]
> However, this doesn't appear to get run when I open a .tex file.

The name of the file should match a feature used by the document,
e.g. the document class or a LaTeX package which is loaded by the
document.  The first argument of `TeX-add-style-hook' should be the same
as the name of the file.  This is demonstrated in the first example
about style files in the manual: the file is named book.el and the
parameter for `TeX-add-style hook' is "book".

Are the environments you want to add support for defined in a special
LaTeX package?  If that's the case and you load it with \usepackage in
your document, then the name of the package would be the one to use at
the places indicated above.

-- 
Ralf



reply via email to

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