22 Dec
2011
22 Dec
'11
10:38 p.m.
Am 22.12.2011 um 22:31 schrieb Willi Egger:
Hello all,
While preparing a cld-document I need to setup the headertexts on each new page. I tried to do this with the following code:
\setuplayout [topspace=2.5cm, backspace=1.5cm, header=40pt, footer=20ptpt, height=middle, width=middle]
\setuppagenumbering[location=footer] %\showframe \startluacode function myheadertext(s) context.setupheadertexts{context(s)} --context.labeltext(s) end \stopluacode
\startluacode function documentdata.myheadertext(s) context.setupheadertexts{s} end \stopluacode
\starttext \ctxluamyheadertext{"Headertext"}}
String are passed with braces. \ctxlua{documentdata.myheadertext("Headertext")} Wolfgang