[NTG-context] color problem with columns

Wolfgang Werners-Lucchini wwl at musensturm.de
Sun Mar 28 15:39:31 CEST 2010


> > ----------------------------------------------------------------
> > \setupcolors[state=start]
> > \newcounter\V
> > \def\Vers#1{\increment\V {\color[darkgreen]\rm\bi \V} #1}
> >    
> \def\Vers#1{\increment\V \dontleavehmode{\color[darkgreen]\rm\bi \V}
> #1}
> 
> but i think this is better
> 
> \setupcolors[state=start]
> 
> \definelabel
>    [Vers]
>    [headstyle=bolditalic,
>     headcolor=darkgreen,
>     command=\groupedcommand\dontleavehmode\space]
> 
> \starttext
> \startcolumns
> text\par\dorecurse{50}{\Vers Dies ist ein Testsatz der gerade lange
> genug ist, um zu zeigen was zu zeigen ist.\par}
> \stopcolumns
> \stoptext

Thank you very much!

Wolfgang


More information about the ntg-context mailing list