auctex
[Top][All Lists]
Advanced

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

[AUCTeX] Re: Items in itemize-like environments


From: Nikos Apostolakis
Subject: [AUCTeX] Re: Items in itemize-like environments
Date: Wed, 12 Apr 2006 23:20:55 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * Nikos Apostolakis (2006-04-11) writes:
>
>> I am using the exam document class.  In that class there are two new 
>> itemize-like environments defined, namely "questions" whith each item 
>> called "question" and "parts" with each item called "part".  I would
>> like to use the command "LaTeX-insert-item" to insert items for
>> these environments.
>> [snip]
>
> (add-to-list 'LaTeX-item-list
>            '("questions" . (lambda () (insert "\\question"))))
>
> Analogously for "parts".  You might also need to do
> (LaTeX-add-environments '("questions" LaTeX-env-item))
> and to adapt `LaTeX-item-regexp'.
>

Thanks for your reply.  I followed all your suggestions but
unfortunately it didn't work.  I tried it both in emacs-snapshot[0]
and on Emacs21[1].


> It would probably be a good idea to create your own style file for
> stuff like that.
>

I'll try to do that next, perhaps in the weekend.

Thanks,
Nikos


[0] GNU Emacs 22.0.50.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll
    bars) of 2006-04-06 on pacem, modified by Debian
[1] GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll
    bars) of 2005-10-02 on trouble, modified by Debian





reply via email to

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