From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28511 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Doublesided, with header text centered. Date: Fri, 9 Jun 2006 17:16:09 -0400 (EDT) Message-ID: References: <200606081344.50924.john@wexfordpress.com> <200606091442.20897.john@wexfordpress.com> <200606091643.53708.john@wexfordpress.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1149887799 31629 80.91.229.2 (9 Jun 2006 21:16:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Jun 2006 21:16:39 +0000 (UTC) Cc: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 09 23:16:37 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FooLC-0003HP-Vs for gctc-ntg-context-518@m.gmane.org; Fri, 09 Jun 2006 23:16:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3FBBA12880; Fri, 9 Jun 2006 23:16:25 +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 02142-06; Fri, 9 Jun 2006 23:16:19 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F25911287B; Fri, 9 Jun 2006 23:16:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FFD81287B for ; Fri, 9 Jun 2006 23:16:17 +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 26387-06-2 for ; Fri, 9 Jun 2006 23:16:15 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with SMTP id 51FB412877 for ; Fri, 9 Jun 2006 23:16:14 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hackers.mr.itd.umich.edu ID 4489E51A.3B94D.21809 ; 9 Jun 2006 17:16:10 -0400 Original-To: "John R. Culleton" In-Reply-To: <200606091643.53708.john@wexfordpress.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:28511 Archived-At: On Fri, 9 Jun 2006, John R. Culleton wrote: > On Friday 09 June 2006 15:33, Aditya Mahajan wrote: >>>> ntg-context@ntg.nl >>> >>> Very impressive, but surely there is a simpler solution! I just >>> want one header on the left hand page, a different one on the >>> right, and both of them centered on their respective pages. >> >> \def\MyHeader{ >> \doifoddpageelse{Odd Header} >> {Even Header}} >> >> \setupheadertexts[\MyHeader] >> >> If you want you can extend it to recognize keywords like date, >> pagenumber, section etc. >> > Yes, I can do the above. Unfortunately the keywords like chapter > lose their special meaning when enclosed in any way. For example > \setupheadertexts > [chapter] > [][] > [\hfil\hbox to 20em{\stretched{\tfb\sc > Independent{}Publishing}}\hfil] > > ...works, but as soon as I place any command ahead of the keyword > chapter it just becomes the word "chapter". for example this > doesn't work: > [code snipped] You can use the \domagic macro from my previous email to handle chapter, date and pagenumber. > I can of course roll my own as you suggest above. But if I want > chapter as a variable then I will have to encapsulate my \chapter > command thus: > [code snipped] > > I don't mind doing this kind of plain tex manipulation but it > still seems to me that Context should handle it somehow. If you just want chapter markings, use \getmarking[chapter]. Aditya