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: How to define a new font inserting command in AucTeX? Date: 09 Feb 2003 17:17:56 +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: <87bs1oyn3l.fsf@at_ipipan.waw.pl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044808118 15678 80.91.224.249 (9 Feb 2003 16:28:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 9 Feb 2003 16:28:38 +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 18huJp-00044k-00 for ; Sun, 09 Feb 2003 17:28:37 +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 18huHL-0007MB-0A for gnu-help-gnu-emacs@m.gmane.org; Sun, 09 Feb 2003 11:26:03 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!bnewspeer01.bru.ops.eu.uu.net!emea.uu.net!cs.uu.nl!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: sunshine.cs.uu.nl Original-X-Trace: samos.cs.uu.nl 1044807446 10505 131.211.80.33 (9 Feb 2003 16:17:26 GMT) Original-X-Complaints-To: news@cs.uu.nl Original-NNTP-Posting-Date: 9 Feb 2003 16:17:26 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu comp.emacs:77520 gnu.emacs.help:109986 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:6491 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6491 >>>>> David Kastrup (DK) wrote: DK> Gerald Wildgruber 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 URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.van.Oostrum@hccnet.nl