all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.