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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________