From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73384 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: CLD: setupheadertexts Date: Sat, 24 Dec 2011 14:32:35 +0100 Message-ID: <5FF321E5-E1F0-4629-B9AE-D70AD662754B@boede.nl> References: <8B38AF34-57D6-4847-BCAC-AAF271CF8D4A@boede.nl> <4481C234-991A-4B87-BF3B-AECA8D034033@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="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1324733583 1597 80.91.229.12 (24 Dec 2011 13:33:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Dec 2011 13:33:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 24 14:32:58 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 1ReRiZ-00019Z-Oz for gctc-ntg-context-518@m.gmane.org; Sat, 24 Dec 2011 14:32:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 06088CB199; Sat, 24 Dec 2011 14:32:54 +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 E0VnKOTy2-gu; Sat, 24 Dec 2011 14:32:51 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 628D3CB19F; Sat, 24 Dec 2011 14:32:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6263CCB19F for ; Sat, 24 Dec 2011 14:32:49 +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 7kYTtl8CltUm for ; Sat, 24 Dec 2011 14:32:37 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id C136FCB199 for ; Sat, 24 Dec 2011 14:32:37 +0100 (CET) Original-Received: from mars.digitpaint.nl (mars.digitpaint.nl [83.98.197.63]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBODWakk007806 for ; Sat, 24 Dec 2011 14:32:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mars.digitpaint.nl (Postfix) with ESMTP id B9A671B2F50 for ; Sat, 24 Dec 2011 14:32:29 +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 fGRxHlWWVxi5 for ; Sat, 24 Dec 2011 14:32:29 +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 87DB21B2F4F for ; Sat, 24 Dec 2011 14:32:29 +0100 (CET) In-Reply-To: <4481C234-991A-4B87-BF3B-AECA8D034033@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: 0bGd1wAWW - 5146ce4d71a3 - 20111224 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:73384 Archived-At: 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=92s explained on page 26 of the cld manual. > = > You should also create your functions in the userdata namespace. > = > \setuplabeltext[en][A=3DHappy New Year] > = > \startluacode > = > userdata =3D 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-co= ntext > 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 t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________