Hello Wolfgang,

Thank you for your answer. Indeed now it works. Yes it is in the cld-manual and 
I was looking at it, but there was no bell ringing then :-(

Willi
On 22 Dec 2011, at 23:36, Wolfgang Schuster wrote:

> 
> Am 22.12.2011 um 23:23 schrieb Willi Egger:
> 
>> Hi Wolfgang,
>> 
>> 
>> thank you very much for your reply. 
>> 
>> This works but I am still not there. I need to use this construct with 
>> context.labeltext()
>> So do you know how to achieve the context.setupheadertext with the 
>> context.labeltext() as its argument?
> 
> 
> You need “function() … end” around the inner content, it’s explained in the 
> cld manual.
> 
> \setuppagenumbering[location=footer]
> 
> \setuplabeltext[en][willi=Willi Egger]
> \startluacode
> function documentdata.myheadertext(s)
>    context.setupheadertexts{ function()
>        context.labeltext("willi")
> --      context.space()
>        context(": ")
>        context(s)
>    end }
> end   
> \stopluacode
> 
> \ctxlua{documentdata.myheadertext("Headertext")}
> 
> \starttext
> \input knuth
> \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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to