[NTG-context] return a labeltext with color...

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Fri Jun 24 17:25:23 CEST 2022


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



More information about the ntg-context mailing list