Am 24.09.2012 um 15:21 schrieb Marcin Borkowski
Dnia 2012-09-23, o godz. 10:42:08 Wolfgang Schuster
napisał(a): It’s a bug in the pocketdiayry code when the \color command is used.
This snippet from the code shows two problems.
context.bTD({style="red"})context(d) context("~") context.labeltext(n) context("~\\color[black]") context.labeltext(f) context.eTD()
1. The color for the table cell is set with “style=red” but the correct setting is “color=red”. Even though it’s wrong the output is correct because context has a \red command which colors the content of the current group red.
2. The \color command takes a argument, e.g. \color[<colorname>]{<text>} but here it’s used like a color switch (e.g. \red) which is active till the end of the group. Changing this will make the error message disappear.
Thanks a lot!
I changed the above line to
context.bTD({color="red"})context(d) context("~") context.labeltext(n) context("~\\color[black]{") context.labeltext(f) context("}") context.eTD()
and it seems to work. May I ask for changing it in the "official" source, too?
I would go with context.color( {"black"}, function() context.labeltext(f) end ) or another method which is described in the CLD manual. Wolfgang