Ralf Angeli <[EMAIL PROTECTED]> 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



_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to