24 Jun
2022
24 Jun
'22
5:25 p.m.
Willi Egger via ntg-context schrieb am 24.06.2022 um 16:34:
Hi all,
Sorry for bothering you again.
I would like that lua is returning a colored string, which is a label-text.
The following does not work, the labeltext remains black, there is no error though:
return context.color({"red"},context.labeltext(s))
What is the correct approach?
\mainlanguage[fr] \starttext \startluacode context.color( { "red" }, context.nested.labeltext("january") ) \stopluacode \stoptext Wolfgang