|
From: | Ralf Angeli |
Subject: | [AUCTeX] Re: Items in itemize-like environments |
Date: | Fri, 14 Apr 2006 00:15:53 +0200 |
* Nikos Apostolakis (2006-04-13) writes: > Ralf Angeli <address@hidden> writes: > >> * Nikos Apostolakis (2006-04-13) writes: >> >>> Thanks for your reply. I followed all your suggestions but >>> unfortunately it didn't work. >> >> What does that mean exactly? > > I evaluated the following: > > (add-to-list 'LaTeX-item-list > '("questions" . (lambda () (insert "\\question")))) > (add-to-list 'LaTeX-item-list > '("parts" . (lambda () (insert "\\part")))) `LaTeX-item-list' is buffer-local. So you'd have to do this in a function to be added to `LaTeX-mode-hook'. Or you try it with a style file ... > (LaTeX-add-environments '("questions" LaTeX-env-item)) > (LaTeX-add-environments '("parts" LaTeX-env-item)) Same here. -- Ralf
[Prev in Thread] | Current Thread | [Next in Thread] |