On 20-4-2011 6:32, Aditya Mahajan wrote:
Hi,
In MkII, linenumbering stops working if \dostartattributes with a color is used inside; for example:
\setupcolors[state=start] \getparameters[test][color=red,style=]
\starttext \startlinenumbering \dostartattributes{test}{style}{color} Why no number? \dostopattributes \stoplinenumbering \stoptext
The output of the above does not have a line number. I have been able to reduce it to the following minimal example.
\setupcolors[state=start] \starttext \startlinenumbering \faststartcolor[red] Why no number? \faststopcolor \stoplinenumbering \stoptext
It works if I add any text before \faststartcolor
\setupcolors[state=start] \starttext \startlinenumbering Got it now! % or \strut \faststartcolor[red] Why no number? \faststopcolor \stoplinenumbering \stoptext
What is going on here?
probably some side effect of grouping and/or colors being pdfliterals (you can find out by putting a \tracingall someplace clever and compere the outputs ... taco is a real master in that art of comparison Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------