From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Struggling with cld document...
Date: Thu, 22 Dec 2011 22:38:24 +0100 [thread overview]
Message-ID: <95CBEE22-1457-470A-98F3-1D58B0CB563B@googlemail.com> (raw)
In-Reply-To: <B85868C3-02C9-4D77-9195-72CFADC24F71@boede.nl>
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
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-12-22 21:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-22 21:31 Willi Egger
2011-12-22 21:38 ` Wolfgang Schuster [this message]
2011-12-22 22:23 ` Willi Egger
2011-12-22 22:36 ` Wolfgang Schuster
2011-12-23 21:05 ` Willi Egger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=95CBEE22-1457-470A-98F3-1D58B0CB563B@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).