Hi Wolfgang, thank you! For the moment I can do the "project". - Still I wonder how to achieve odd/even page headerstexts. Have a nice weekend Willi On 24 Dec 2011, at 12:02, Wolfgang Schuster wrote:
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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________