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}}

Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to