unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Reiner Steib <4uce.02.r.steib@gmx.net>
Subject: Re: AucTeX: shortcut for a font-specifier
Date: Tue, 10 Sep 2002 13:17:21 +0200	[thread overview]
Message-ID: <v9ofb66qm6.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: vafhegyqkjy.fsf@lucy.cs.uni-dortmund.de

On Tue, Sep 10 2002, Kai Großjohann wrote:

> Dani Martí <dmarti@NOSPAMifae.es> writes:
>
>> 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?
>
> See the variable TeX-font-list.  

Isn't it LaTeX-font-list from `latex.el'?

(eval-after-load "latex"
  '(add-to-list 'LaTeX-font-list
		(quote (15 "\\textcolor{" "}{}"))))

`C-c C-f C-o' inserts "\textcolor{}{}" (cursor in the first pair of
brackets). But no completion for the colors.

It would be nice to update the menus too (LaTeX / Insert Font, LaTeX /
Change Font, ...). I don't know what is the best way to achieve this.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/

      reply	other threads:[~2002-09-10 11:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-08 11:38 AucTeX: shortcut for a font-specifier Dani Martí
2002-09-10  9:08 ` Kai Großjohann
2002-09-10 11:17   ` Reiner Steib [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9ofb66qm6.fsf@marauder.physik.uni-ulm.de \
    --to=4uce.02.r.steib@gmx.net \
    --cc=reiner.steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).