From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73371 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: Struggling with cld document... Date: Thu, 22 Dec 2011 23:23:01 +0100 Message-ID: <732B304F-FBC8-4D5E-938E-9314F479672C@boede.nl> References: <95CBEE22-1457-470A-98F3-1D58B0CB563B@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1324592604 19856 80.91.229.12 (22 Dec 2011 22:23:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2011 22:23:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 22 23:23:20 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rdr2m-0001s0-0O for gctc-ntg-context-518@m.gmane.org; Thu, 22 Dec 2011 23:23:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96134CB19C; Thu, 22 Dec 2011 23:23:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EJSNwoFnEuG9; Thu, 22 Dec 2011 23:23:16 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E4F5ECB19E; Thu, 22 Dec 2011 23:23:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33B65CB19E for ; Thu, 22 Dec 2011 23:23:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gD11H9EJVkd7 for ; Thu, 22 Dec 2011 23:23:03 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id C2413CB19C for ; Thu, 22 Dec 2011 23:23:03 +0100 (CET) Original-Received: from mars.digitpaint.nl (mars.digitpaint.nl [83.98.197.63]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBMMN2eX002546 for ; Thu, 22 Dec 2011 23:23:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mars.digitpaint.nl (Postfix) with ESMTP id 3C6CD1B357B for ; Thu, 22 Dec 2011 23:23:01 +0100 (CET) Original-Received: from mars.digitpaint.nl ([127.0.0.1]) by localhost (mail.digitpaint.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KrjNPd-DPA-A for ; Thu, 22 Dec 2011 23:23:01 +0100 (CET) Original-Received: from willis-computer.fritz.box (a83-161-249-79.adsl.xs4all.nl [83.161.249.79]) by mars.digitpaint.nl (Postfix) with ESMTPA id 080911B3566 for ; Thu, 22 Dec 2011 23:23:01 +0100 (CET) In-Reply-To: <95CBEE22-1457-470A-98F3-1D58B0CB563B@googlemail.com> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.98.197.63; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eGcmn2NK - b6caee7b9718 - 20111222 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:73371 Archived-At: 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? Thank you Willi On 22 Dec 2011, at 22:38, Wolfgang Schuster wrote: > > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________