Re: Some idea about "\item".

Ralf Angeli <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* Adam John (2005-01-17) writes:

> I'm using the HA-Proper package for writing a presentation slides.
>
> With this package, the command "\item" has been redefined as "\xitem".
>
> However, everytime, when I use "C-c C-j", it only inserts "\item".  Is
> there any possible method to let AUCTeX figure out I need insert
> "\xitem" here instead of "\item" according to the current environment
> or the package?
>
> Another idea is that, for the first entry in the current list
> environment, if I input "\xitem", "\bibitem", etc., then from the
> second entry, if I use "C-c C-j", AUCTeX can intelligently insert the
> corresponding "\xitem", or "\bibitem", etc.

You can have a look at the style file for beamer which uses its own
function `LaTeX-item-beamer' for redefining the way \item's are
inserted.  The regular functions for inserting items are defined in
latex.el after the definition of the variable `LaTeX-item-list'.

Preferably such specialities should go into a style file for
HA-prosper.  There is some information about writing style files in
the manual of AUCTeX.

-- 
Ralf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.