[Top][All Lists]

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

Re: AucTeX: shortcut for a font-specifier

From: Reiner Steib
Subject: Re: AucTeX: shortcut for a font-specifier
Date: Tue, 10 Sep 2002 13:17:21 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i586-pc-linux-gnu)

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

> Dani Martí <address@hidden> 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

reply via email to

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