24 Dec
2011
24 Dec
'11
12:02 p.m.
Am 24.12.2011 um 11:10 schrieb Willi Egger:
Hi,
there are still questions how to use the context.setupheadertexts.
- why is on even pages the header not set when using the example below?
It’s explained on page 26 of the cld manual. You should also create your functions in the userdata namespace. \setuplabeltext[en][A=Happy New Year] \startluacode userdata = userdata or { } function userdata.myheadertext(s) context.setupheadertexts{ function() context.labeltext(s) context(": ") return true end } end \stopluacode \starttext \ctxlua{userdata.myheadertext("A")} \input knuth \page \input ward \stoptext Wolfgang