help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to define a new font inserting command in AucTeX?


From: Piet van Oostrum
Subject: Re: How to define a new font inserting command in AucTeX?
Date: 09 Feb 2003 17:17:56 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> David Kastrup <dak@gnu.org> (DK) wrote:

DK> Gerald Wildgruber <gwil.remove.this.phrase@lrz.uni-muenchen.de> writes:
>> Hello Adam and Kai,
>> 
>> thanks for your suggestions; I'm using now something like:
>> 
>> (add-hook 'LaTeX-mode-hook '(lambda () (add-to-list 'TeX-font-list
>> (list ?g "\\textgreek{" "}"))))

DK> It would make sense to do the add-to-list in a local style file
DK> triggered for whatever style/option it is that provides the
DK> \textgreek command.

The following worked for me and defines the key only in "myslides" class
documents:

; myslides.el
(TeX-add-style-hook "myslides"
 (function
  (lambda ()
    (add-to-list 'TeX-font-list (list ?g "\textgreek{" "}"))
....
-- 
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum@hccnet.nl


reply via email to

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