Steffen Wolfrum wrote:
>
> Am 24.09.2008 um 17:28 schrieb Taco Hoekwater:
>
>> Steffen Wolfrum wrote:
>>>
>>> ! You can't use `\end' in internal vertical mode.
>>> <recently read> \normalend
>>
>> Jikes. Looks like that is because \color is a \groupedcommand itself.
>> This works for this test file (and hopefully for everything else):
>>
>> \def\Colorit%
>> {\groupedcommand
>> {\startcolor[red]\em\penalty10000\hskip0pt }
>> {\/\stopcolor}}
>
>
> works! and that from Hans too.
>
> Hans ends with ... {\stopcolor\/}}
> Tacos with ... {\/\stopcolor}}
>
>
> Sorry, this is too sophisticated for me to figure out:
>
> Which one is better, i.e. more robust?
depends on how \/ is implemented, as lookback or lookforward, just see
what works best
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________