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