From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dani =?iso-8859-15?q?Mart=ED?= Newsgroups: gmane.emacs.help Subject: AucTeX: shortcut for a font-specifier Date: Sun, 08 Sep 2002 13:38:21 +0200 Organization: CESCA - Servidor de news de l'Anella Cientifica Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031621767 27113 127.0.0.1 (10 Sep 2002 01:36:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2002 01:36:07 +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 17oZwj-000732-00 for ; Tue, 10 Sep 2002 03:36:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17oZwn-0000LW-00; Mon, 09 Sep 2002 21:36:09 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-peer.gip.net!news.gsl.net!gip.net!opentransit.net!proxad.net!news-hub.cableinet.net!blueyonder!newspeer1-gui.server.ntli.net!ntli.net!peernews.cix.co.uk!zen.net.uk!news.imp.ch!news.imp.ch!news-zh.switch.ch!news-ge.switch.ch!news.rediris.es!news.cesca.es!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: l2.ifae.es Original-X-Trace: noucreus-atm.cesca.es 1031485113 21692 192.101.162.192 (8 Sep 2002 11:38:33 GMT) Original-X-Complaints-To: newsmanager@cesca.es Original-NNTP-Posting-Date: Sun, 8 Sep 2002 11:38:33 +0000 (UTC) User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i686-pc-linux-gnu) Cancel-Lock: sha1:JmgDPZLfnXa9Jf6S9qjyMuNj3FI= Original-Xref: nntp.stanford.edu gnu.emacs.help:104654 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1210 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1210 Hi everybody, I would like to define a shortcut to insert a '\textcolor{color}{text}' in my LaTeX document with 'color' package, in the same we can easily insert standard font specifiers like '\emph{text}' just by typing `C-c C-f C-e'. In other words, how to implement this? `C-c C-f C-a' should insert \textcolor{}{} and ask you the color and text with which to fill the two arguments. [Of course, the shortcut `C-c C-f C-a' may be different, as long as it is not already defined] The only difference is that \textcolor has two arguments instead of two, but I think this may be easy to implement by a lisp expert. Bells & Whistles: it would be nice to have auto-completion when you are being asked for a color (1st argument). The colors could be the standard 68 colors known to dvips: GreenYellow, Yellow, Goldenrod, Dandelion... Thanks a lot in advance, Dani Marti -- Go away, I'm all right. -- H.G. Wells'last words.