From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73497 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Header and footer style and arranging Date: Sat, 31 Dec 2011 16:35:34 -0500 (EST) Message-ID: References: <4EF04B63.3070002@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1325324233 26086 80.91.229.12 (31 Dec 2011 09:37:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Dec 2011 09:37:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 31 10:37:08 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 1RgvND-00014e-L7 for gctc-ntg-context-518@m.gmane.org; Sat, 31 Dec 2011 10:37:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5D149CB1BF; Sat, 31 Dec 2011 10:37:06 +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 QMYx6eMKvrHQ; Sat, 31 Dec 2011 10:37:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A769ECB1BC; Sat, 31 Dec 2011 10:37:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5E596CB1BC for ; Sat, 31 Dec 2011 10:37:00 +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 lOLZHw148yBC for ; Sat, 31 Dec 2011 10:36:48 +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 463C2CB1B8 for ; Sat, 31 Dec 2011 10:36:48 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBV9ajNB007047 for ; Sat, 31 Dec 2011 10:36:47 +0100 Original-Received: FROM [10.0.2.15] (Unknown [117.197.148.54]) By tombraider.mr.itd.umich.edu ID 4EFED7AA.9DAA.14351 ; Authuser adityam; 31 Dec 2011 04:36:42 EST In-Reply-To: <4EF04B63.3070002@wxs.nl> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bGfJAJWr - 79c2d7753925 - 20111231 (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:73497 Archived-At: On Tue, 20 Dec 2011, Hans Hagen wrote: > On 20-12-2011 01:14, Aditya Mahajan wrote: >> Header and footer styles do not work with arranging and double sided >> layout. Minimal example: >> >> \setuppapersize[A5][A4,letter] >> \setuparranging[2SIDE] >> >> \setuppagenumbering[alternative=doublesided] >> \setupheader[style=smallcaps, color=blue] >> \setupheadertexts[] >> \setupheadertexts[Hello][][][World] >> >> \starttext >> \input knuth >> \stoptext > > Unrelated to arranging. In fact, we have left/right/middle styles etc but the > new code has no fallbacks, so we need to add: > > \setuplayoutelement > [\c!leftstyle=\layoutelementparameter\c!style, > \c!rightstyle=\layoutelementparameter\c!style, > \c!leftcolor=\layoutelementparameter\c!color, > \c!rightcolor=\layoutelementparameter\c!color, > \c!leftwidth=\layoutelementparameter\c!width, > \c!rightwidth=\layoutelementparameter\c!width] Something is still amiss, perhaps unrelated to the above. style of the left header text is ignored on even pages! \setupheader[style=smallcaps] \setupheadertexts[] \setupheadertexts[Hello][] \starttext \dorecurse{6}{\input knuth \page} \stoptext Notice that the headers on even pages don't have the correct style. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________