From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51477 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: Wiki recepy for Document Titles does not work Date: Fri, 26 Jun 2009 11:51:05 +0200 Message-ID: References: <91A2A3B3-EA7C-4F3E-8A12-BA8AA73FEBE3@rna.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246009940 19086 80.91.229.12 (26 Jun 2009 09:52:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Jun 2009 09:52:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 26 11:52:13 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1MK86O-00056D-Ux for gctc-ntg-context-518@m.gmane.org; Fri, 26 Jun 2009 11:52:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8E45A1FBD4; Fri, 26 Jun 2009 11:52:12 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20709-02; Fri, 26 Jun 2009 11:51:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 582541FADF; Fri, 26 Jun 2009 11:51:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FD2A1FADF for ; Fri, 26 Jun 2009 11:51:23 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20943-04 for ; Fri, 26 Jun 2009 11:51:14 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id 4E2481FADC for ; Fri, 26 Jun 2009 11:51:14 +0200 (CEST) Original-Received: from smtp-4.concepts.nl (smtp-4.concepts.nl [213.197.30.111]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n5Q9pDX2015795 for ; Fri, 26 Jun 2009 11:51:13 +0200 Original-Received: from d594e7d0.dsl.concepts.nl ([213.148.231.208] helo=certified.rna.nl) by smtp-4.concepts.nl with esmtp (Exim 4.69) (envelope-from ) id 1MK85P-0005xT-Bk for ntg-context@ntg.nl; Fri, 26 Jun 2009 11:51:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by certified.rna.nl (Postfix) with ESMTP id C87702763CCA for ; Fri, 26 Jun 2009 11:51:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at rna.nl Original-Received: from certified.rna.nl ([127.0.0.1]) by localhost (vanroodewierda.rna.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id efWoLH874s2D for ; Fri, 26 Jun 2009 11:51:06 +0200 (CEST) Original-Received: from luna.rna.nl (luna.rna.nl [192.168.2.88]) by certified.rna.nl (Postfix) with ESMTP id 10B1D2763CBB for ; Fri, 26 Jun 2009 11:51:06 +0200 (CEST) In-Reply-To: X-Mailer: Apple Mail (2.935.3) X-Concepts-MailScanner-Information: Please contact abuse@concepts.nl for more information X-Concepts-MailScanner-ID: 1MK85P-0005xT-Bk X-Concepts-MailScanner: Found to be clean X-Concepts-MailScanner-SpamCheck: X-Concepts-MailScanner-From: gerben.wierda@rna.nl X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.197.30.111; country=NL; region=06; city=Roosendaal; latitude=51.5333; longitude=4.4667; http://maps.google.com/maps?q=51.5333,4.4667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 250640957 - 766c35aa9c87 - 20090626 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:51477 Archived-At: On 26 Jun 2009, at 11:39, Wolfgang Schuster wrote: > > Am 26.06.2009 um 11:11 schrieb Gerben Wierda: > >> The discussion went on about my silly PS. So I am reposting the >> original question/problem. >> >> The method in the wiki (http://wiki.contextgarden.net/ >> Document_Titles) does not work for me, but maybe it is the order in >> which you have to do things? > > > Try this: > > \unprotect > > \definesystemvariable {title} > > \definemarking[documenttitle] > \definemarking[documentauthor] > \definemarking[documentdate] > > \def\setuptitle > {\dodoubleempty\dosetuptitle} > > \def\dosetuptitle[#1][#2]% > {\ifsecondargument > \def\dodosetuptitle##1{\getparameters[\??title##1][#2]}% > \processcommalist[#1]\dodosetuptitle > \else > \getparameters[\??title][#1]% > \fi} > > \def\placetitle > {\dosingleempty\doplacetitle} > > \def\doplacetitle[#1]% > {\iffirstargument > \getparameters[\??title][#1]% > \fi > \def\dodoplacetitle##1% > {\marking[document##1]{\getvalue{\??title##1}}% > \blank[\getvalue{\??title##1\c!spacebefore}]% > \doattributes{\??dt##1}\c!style\c!color\getvalue{\??title##1}% > \blank[\getvalue{\??title##1\c!spaceafter}]}% > \@@titlebefore > \processcommalist[\c!title,\c!author,\c!date]\dodoplacetitle > \@@titleafter} > > \setuptitle > [\c!title] > [\c!style=\tfd, > \c!color=, > \c!spacebefore={\v!force,2*\v!big}, > \c!spaceafter={3*\v!medium}] > > \setuptitle > [\c!author,\c!date] > [\c!style=\tfa, > \c!color=, > \c!spacebefore={2*\v!medium}, > \c!spaceafter={3*\v!medium}] > > \setuptitle > [\c!before={\startalignment[\v!middle]}, > \c!after={\stopalignment}, > \c!title=, > \c!author=, > \c!date=\currentdate] > > \protect > > \setuptitle > [title={Title to be determined}, > author={G.C.Th.~Wierda, M.Sc., MBA\footnote{IT Lead Architect, > APG, http://www.apg.nl/}}, > date={July 2009}] > > \setupheadertexts[{\getmarking[documenttitle]}] > [{\getmarking[documentauthor]}] > > \starttext > > \placetitle > > ... > > \stoptext > > Wolfgang Ends with: begin file foo at line 11 ! Undefined control sequence. \??dt \c!title \doattributes ...ibutes \endgroup \fi \ifcsname #1 #2\endcsname \@EA \doconve... \dodoplacetitle ...#1}\c!style \c!color \getvalue {\??title #1}\blank [\getv... \next1 #1,->\dodoplacetitle {#1} \doprocesscommaitem \relax \c!title , \c!author ,\c!date \doprocesscommalist ...aitem \gobbleoneargument #1 ,]\relax \global \advance ... ... l.14 G ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________