From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73367 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Struggling with cld document... Date: Thu, 22 Dec 2011 22:38:24 +0100 Message-ID: <95CBEE22-1457-470A-98F3-1D58B0CB563B@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1324589929 2210 80.91.229.12 (22 Dec 2011 21:38:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2011 21:38:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 22 22:38:42 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 1RdqLa-0005f9-8V for gctc-ntg-context-518@m.gmane.org; Thu, 22 Dec 2011 22:38:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2DB6ACB1A1; Thu, 22 Dec 2011 22:38:41 +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 TW9r6uGXNTSY; Thu, 22 Dec 2011 22:38:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21C55CB19B; Thu, 22 Dec 2011 22:38:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 19666CB19B for ; Thu, 22 Dec 2011 22:38:36 +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 TrWid+XKvedj for ; Thu, 22 Dec 2011 22:38:34 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 52AE8CB199 for ; Thu, 22 Dec 2011 22:38:34 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBMLcXPZ031819 for ; Thu, 22 Dec 2011 22:38:33 +0100 Original-Received: by eekc41 with SMTP id c41so10118411eek.14 for ; Thu, 22 Dec 2011 13:38:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=4RaoXJSyEHzV8yR9p7bEi5m+2Tfr4fYzGjeg08VOZC4=; b=JyycAzTkHa5dITI+imjj3Y6DXzisWuyAWqU8ISF9zSCs6AppFhpfPHkTWzj0E5OIQj +hAkJa5fdxEELuiFm+EMVlTqTaGFKKcupdJ/SNFsDEWHiSNpnHnQHJ28ygnQZhn534TL 2n6T8OKDCOVdSKcv5ab7mJOqFUg1x4RYJvSwY= Original-Received: by 10.14.2.133 with SMTP id 5mr5038647eef.24.1324589913267; Thu, 22 Dec 2011 13:38:33 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFB7E4.dip.t-dialin.net. [87.175.183.228]) by mx.google.com with ESMTPS id 13sm39400942eeu.1.2011.12.22.13.38.29 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Dec 2011 13:38:31 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cGclCx2M - 6330fdaaab77 - 20111222 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:73367 Archived-At: 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 ___________________________________________________________________________________