unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* AucTeX: shortcut for a font-specifier
@ 2002-09-08 11:38 Dani Martí
  2002-09-10  9:08 ` Kai Großjohann
  0 siblings, 1 reply; 3+ messages in thread
From: Dani Martí @ 2002-09-08 11:38 UTC (permalink / raw)



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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-10 11:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).