[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add items to TeX-font-list
From: |
Piet van Oostrum |
Subject: |
Re: Add items to TeX-font-list |
Date: |
07 Feb 2003 20:34:21 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> 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 <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum@hccnet.nl