From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30444 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: header misaligned and columns problem Date: Tue, 22 Aug 2006 11:21:06 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1156260104 8851 80.91.229.2 (22 Aug 2006 15:21:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Aug 2006 15:21:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 22 17:21:40 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 1GFY4B-0002tu-U7 for gctc-ntg-context-518@m.gmane.org; Tue, 22 Aug 2006 17:21:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 574BC1FE1B; Tue, 22 Aug 2006 17:21: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 23124-07-5; Tue, 22 Aug 2006 17:21:17 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 394B11FD48; Tue, 22 Aug 2006 17:21:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EB0C31FD48 for ; Tue, 22 Aug 2006 17:21:13 +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 23124-07-4 for ; Tue, 22 Aug 2006 17:21:08 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with SMTP id CCAE41FCFF for ; Tue, 22 Aug 2006 17:21:07 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hellskitchen.mr.itd.umich.edu ID 44EB20E2.12849.18444 ; 22 Aug 2006 11:21:06 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: 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:30444 Archived-At: On Tue, 22 Aug 2006, Horacio Suarez wrote: > Hello > > This is my page: > > \definepapersize[argento][width=3D20cm,height=3D28cm] > \setuppapersize[argento][A3] > \setuppagenumbering[alternative=3Ddoublesided,location=3D] > \setuplayout[location=3Dmiddle,marking=3Don,textwidth=3D150mm] Quoting Hans from another thread > it's dangerous to use dimensions in \setuplayout that get set = > themselves > also, textwidth is for special purposed and special effects, not to = > be used here (spoils things) So instead of specifying the textwidth, specify the backspace and = cutspace and let context figure out the textwidth... \setuplayout [width=3Dmiddle, location=3Dmiddle, backspace=3D2.5cm, cutspace=3D2.5cm, marking=3Don] > And everithig is fine, but headers are not aligned with text. > > Also, I use 2 columns in most of the book, but 4 chapters uses 3 columns. > > I use > > \startcolumns[n=3D2, balance=3Dyes,distance=3D8mm] > > or > > \startcolumns[n=3D3, balance=3Dyes,distance=3D5mm] > > In two columns is ok, but in 3 columns, all the 3 columns don=B4t fit the= whole = > textwidth, I mean, the sum of the 3 columns width plus the 2 intercolumns = > space are less (about 1cm) than 150mm, as setuplayout says. The following works fine for me.... \definepapersize[argento][width=3D20cm,height=3D28cm] \setuppapersize[argento][A3] \setuppagenumbering[alternative=3Ddoublesided,location=3D] \setuplayout [width=3Dmiddle, location=3Dmiddle, backspace=3D2.5cm, cutspace=3D2.5cm, marking=3Don] \showframe \setupheadertexts[chapter][pagenumber] \starttext \chapter{Two Columns} \startcolumns[n=3D2, balance=3Dyes,distance=3D8mm] \dorecurse{6}{\input knuth \endgraf} \stopcolumns \chapter{Three Columns} \startcolumns[n=3D3, balance=3Dyes,distance=3D5mm] \dorecurse{6}{\input knuth \endgraf} \stopcolumns \stoptext Aditya