From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74143 Path: news.gmane.org!not-for-mail From: Peter Park Nelson Newsgroups: gmane.comp.tex.context Subject: Re: \definelayout[first] does not yield to default layout on page 2 Date: Thu, 26 Jan 2012 14:40:12 -0600 Message-ID: References: <9C71A418-5465-4B49-99EF-F9034C3AD5E5@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1327610437 11110 80.91.229.12 (26 Jan 2012 20:40:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2012 20:40:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 26 21:40:32 2012 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 1RqW7U-0006um-GU for gctc-ntg-context-518@m.gmane.org; Thu, 26 Jan 2012 21:40:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A0F17CB203; Thu, 26 Jan 2012 21:40:31 +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 mxlfhHt3Ifnp; Thu, 26 Jan 2012 21:40:29 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2EA3ACB1FD; Thu, 26 Jan 2012 21:40:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9CF01CB1FD for ; Thu, 26 Jan 2012 21:40:27 +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 QvJsWp34t182 for ; Thu, 26 Jan 2012 21:40:16 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 40AB7CB1FC for ; Thu, 26 Jan 2012 21:40:16 +0100 (CET) Original-Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0QKeD7u014954 for ; Thu, 26 Jan 2012 21:40:15 +0100 Original-Received: by wibhj13 with SMTP id hj13so987171wib.14 for ; Thu, 26 Jan 2012 12:40:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=WNJejlYTY+0ijo6s1L+MTNQF8Lk2oYWweKwK6lzSKmk=; b=uk3LgMAvU6xLz9uFjJBSVdLCabuI2pDPLnWE1YMfcxk9nn6UWti+pNGw5nAq2Urw0e jVyBpjTnHWewlYR9bfvbM5F7g4KFwwQ5/K9f9zlAFTYaoNH5veLDOiagG6vWt8PvnrFM 9RCf3Pafzvvzvt+9xYB+S/arQbCj7khj6ouXU= Original-Received: by 10.180.86.198 with SMTP id r6mr4365982wiz.2.1327610413046; Thu, 26 Jan 2012 12:40:13 -0800 (PST) Original-Received: by 10.223.69.143 with HTTP; Thu, 26 Jan 2012 12:40:12 -0800 (PST) In-Reply-To: <9C71A418-5465-4B49-99EF-F9034C3AD5E5@googlemail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0HGqkEdoc - 558131265aef - 20120126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:74143 Archived-At: On Thu, Jan 26, 2012 at 12:18 PM, Wolfgang Schuster wrote: > > Am 26.01.2012 um 03:41 schrieb Peter Park Nelson: > >> First-page layout is an issue that I have asked about before, but >> maybe I am doing something wrong. Here is my question in an earlier >> thread: http://archive.contextgarden.net/message/20111228.041922.c60f9cd= 5.en.html. >> >> I want to define a layout for the first page of my document with >> different header and footer formatting -- specifically, no header and >> a large footer to hold publication information. Based on examples on >> Contextgarden and this list, I think my code below is correct. >> However, the first page formatting is continued on all pages of the >> document. The effect is the same when using \definelayout[first] and >> \definelayout[1]. > > Is MkIV a option for you? The problem had been there for a while as well = but now it=92s fixed > you can decide what ConTeXt should do after the first page. > > With the =93state=94 you can control whether the layout at the second pag= e should be switched > back to the global layout with \definelayout[=85][state=3Dstart] (this is= the default setting) or > it should remain with \definelayout[=85][state=3Drepeat]. > >> \definelayout >> =A0[first] >> =A0[width=3Dmiddle, >> =A0backspace=3D15mm, >> =A0topspace=3D10mm, >> =A0height=3D254mm, >> =A0header=3D0mm, =A0 =A0 =A0% no header >> =A0headerdistance=3D0mm, >> =A0footer=3D25mm, =A0 =A0 =A0% big footer >> =A0footerdistance=3D5mm, >> =A0grid=3Dyes] > > You have to set only what=92s different from the global layout. > > \definelayout > =A0[first] > =A0[header=3D0mm, > =A0headerdistance=3D0mm, > =A0footer=3D25mm, > =A0footerdistance=3D5mm] > > Wolfgang > _________________________________________________________________________= __________ > 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-co= ntext > webpage =A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =A0: http://foundry.supelec.fr/projects/contextrev/ > wiki =A0 =A0 : http://contextgarden.net > _________________________________________________________________________= __________ Wolfgang and Wagner, thank you for taking the time to respond to this. I am using MkIV. I just updated to the latest beta (I had been running one beta behind). I was intentionally not using layout inheritance in my \definelayout commands to eliminate the possibility of a problem in the inheritance mechanism. Interaction with columnsets also seems to be part of the problem, as I will try to explain. 1. In a layout with no columnset: \definelayout[first] creates a unique layout for the first page and returns to the default layout on page 2. BUT from page 3 onwards, the text does not go all the way to the bottom of the text area (although \showframe indicates that the text area is correct). A workaround is to add \definelayout[current][...parameters that undo the first-page parameters...]. 2. In a layout with a columnset (\definecolumnset[body][n=3D2,balancing=3Dyes]): use of \definelayout[first] causes failure with the error message below. Ignoring warnings and forcing Context to continue results in a pdf with \showframe lines drawn correctly, but text not filling the whole column height, as described previously. ################# ERROR MESSAGE: system > tex > error on line 70 in file J2-pagearea.tex: Emergency stop ... 60 [footer] 61 [footer] 62 63 \starttext 64 \showframe 65 \showgrid 66 67 68 \startcolumnset[body] 69 70 >> \dorecurse{40}{\input tufte \par } 71 72 %\input tufte \par 73 74 \stopcolumnset 75 76 \stoptext 77 \OTRSETdoifcellelse ...er #1:\number #2\endcsname \@EA \secondoftwoargument= s... \@@ar@@3 ...ellelse {\mofcolumns }\columnlastcell {\global \advance \column= l... \redoloop ->\expandrecursecontent \endofloop { 44 \endofloop ...expr \recurselevel +\plusone \relax } ... l.70 \dorecurse{40}{\input tufte \par } End of file on the terminal! ! =3D=3D> Fatal error occurred, no output PDF file produced! -- = Peter Park Nelson peter.park.nelson@gmail.com ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________