22 Sep
2008
22 Sep
'08
noon
Am 22.09.2008 um 13:48 schrieb Thomas A. Schmitz:
On Sep 22, 2008, at 1:24 PM, Steffen Wolfrum wrote:
It should be something like \Colorit{this} example:
\def\Colorit{\it\color[magenta]}
But this above never closes the italics, while ...
\def\Colorit{\strut\groupedcommand\it\color[magenta]\/}
... gives an error.
Someone can help?
St.
You want your command to take an argument, so you have to mention that argument in the definition (untested):
\define[1]\Colorit% {\color[magenta]{\it #1}}
but, hey ... what about this: \define[1]\Colorit% {\color[magenta]{\groupedcommand\em\/ #1}} Thanks for pointing it to that Thomas! Steffen