From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Piet van Oostrum Newsgroups: gmane.emacs.help Subject: Re: Add items to TeX-font-list Date: 07 Feb 2003 20:34:21 +0100 Organization: Dept of Computer Science, Utrecht University, The Netherlands Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84adh8huu5.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1044647117 14497 80.91.224.249 (7 Feb 2003 19:45:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2003 19:45:17 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hEQy-0003lC-00 for ; Fri, 07 Feb 2003 20:45:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hERK-0008Jw-04 for gnu-help-gnu-emacs@m.gmane.org; Fri, 07 Feb 2003 14:45:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!logbridge.uoregon.edu!newsfeed.stueberl.de!feed.news.nacamar.de!bnewspeer01.bru.ops.eu.uu.net!emea.uu.net!cs.uu.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: sunshine.cs.uu.nl Original-X-Trace: samos.cs.uu.nl 1044646430 11867 131.211.80.33 (7 Feb 2003 19:33:50 GMT) Original-X-Complaints-To: news@cs.uu.nl Original-NNTP-Posting-Date: 7 Feb 2003 19:33:50 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:109926 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6431 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6431 >>>>> kai.grossjohann@uni-duisburg.de (Kai Großjohann) (KG) wrote: KG> I have a document where it is convenient to add some items to KG> TeX-font-list. Is there a way to do this for a document (which may KG> consist of more than one file)? KG> I've tried to add `eval' entries in a Local Variables block in the KG> master file which do (add-to-list 'TeX-font-list ...). KG> My document does \usepackage{nifty-macros} (where the KG> nifty-macros.sty for the most part consists of kludgy macros), so I KG> created a file style/nifty-macros.el which does KG> (TeX-add-style-hook KG> "kg-thesis-macros" KG> (lambda () KG> (add-to-list 'TeX-font-list (list ?d "\\DefTerm{" "}")))) ^^^^ use LaTeX-font-list. It works for me. And I think you should also include (make-local-variable 'LaTeX-font-list) in your hook (before the add-to-list call). -- Piet van Oostrum URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.van.Oostrum@hccnet.nl