From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29024 Path: news.gmane.org!not-for-mail From: Thomas Moore Newsgroups: gmane.comp.tex.context Subject: Re: Newbie questions Date: Thu, 29 Jun 2006 07:57:50 -0700 Message-ID: References: <6faad9f00606250833o4bbcd54am9ea50b8e27e66d5e@mail.gmail.com> <449EBFB5.2070100@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1151595035 2424 80.91.229.2 (29 Jun 2006 15:30:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Jun 2006 15:30:35 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 29 17:30:33 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 1FvyTO-0001mZ-OG for gctc-ntg-context-518@m.gmane.org; Thu, 29 Jun 2006 17:30:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AEE24128B5; Thu, 29 Jun 2006 17:30:28 +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 27373-03-11; Thu, 29 Jun 2006 17:30:26 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0A38B128CC; Thu, 29 Jun 2006 16:57:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 69661128CB for ; Thu, 29 Jun 2006 16:57:41 +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 23669-04-7 for ; Thu, 29 Jun 2006 16:57:33 +0200 (CEST) Original-Received: from iron1.pomona.edu (iron1.pomona.edu [134.173.71.136]) by ronja.ntg.nl (Postfix) with SMTP id 9F75A1289B for ; Thu, 29 Jun 2006 16:57:32 +0200 (CEST) Original-Received: from exchange2.campus.pomona.edu (HELO EVSSTUDENT.campus.pomona.edu) ([134.173.71.129]) by iron1.pomona.edu with ESMTP; 29 Jun 2006 07:57:30 -0700 X-IronPort-AV: i="4.06,192,1149490800"; d="scan'208"; a="2352548:sNHT21541051" Original-Received: from frontend2.campus.pomona.edu ([134.173.71.139]) by EVSSTUDENT.campus.pomona.edu with Microsoft SMTPSVC(6.0.3790.211); Thu, 29 Jun 2006 07:57:21 -0700 Original-Received: from [192.168.1.47] ([71.104.113.161]) by frontend2.campus.pomona.edu with Microsoft SMTPSVC(6.0.3790.211); Thu, 29 Jun 2006 07:57:21 -0700 In-Reply-To: Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.750) X-OriginalArrivalTime: 29 Jun 2006 14:57:21.0154 (UTC) FILETIME=[52AE9E20:01C69B8C] 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:29024 Archived-At: On Jun 28, 2006, at 6:12 PM, Aditya Mahajan wrote: >> Dear ConTeXt gurus: > > I am not a context guru, but will still give it a shot ;) Thanks for your help! > >> OK, I have gotten some off-list help from Mojca, who has answered >> most of my questions and helped me polish the two page version of my >> code (thanks, Mojca!). I have included what he helped me work out >> below. There is one remaining problem. The first page is correct, but >> very subsequent page has a correct-looking header and another >> superimposed. The second superimposed header is not wide enough and >> has the wrong page number (the number of the previous page), though >> the page number is on the correct side. It is as if the page output >> command from TeX is issuing the \setups command *twice*, once before >> fully updating variables like \rightmarginwidth and the page number, >> and once after setups have been done correctly. Is this a bug, or am >> I doing something stupid? >> >> Thanks for any insight, Tom > > I am not sure what about the exact layout you are trying to achieve. > Does this give you what you want. > > > \setuppapersize[letter] > \setuppagenumbering > [alternative=doublesided,location=] > \setuplayout > [backspace=1.0in, > topspace=0.5in, > width=4.5in, > height=9.5in, > rightmargin=2.35in, > rightmargindistance=0.15in, > leftmargin=0in, > leftmargindistance=0in, > header=\normallineheight, > headerdistance=\dimexpr0.5in-\normallineheight, > footer=0in] > > \setupheadertexts[chapter][pagenumber][pagenumber][chapter] > \setupbackgrounds[header][text][bottomframe=on,rulethickness=1pt] > > > \starttext > \chapter{Test} > This is a test of some math stuff. $0 = g_{\mu\nu}dx^\nu dx^\nu$. > \dorecurse{10}{\input knuth} > > \showlayout > \stoptext Sorry, no. The additional feature that I need is to be able to extend the horizontal line over the margin region as well as the text region, and put the page number (outer-justified) at the outer edge of the margin region. The code that I attached to the previous message does that, but suffers from the superimposed headers problem. But I appreciate your effort! Best wishes, Tom