From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74298 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: Fri, 3 Feb 2012 20:33:05 -0600 Message-ID: References: <9C71A418-5465-4B49-99EF-F9034C3AD5E5@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328322814 27427 80.91.229.3 (4 Feb 2012 02:33:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Feb 2012 02:33:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 04 03:33:31 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RtVRQ-0006UY-Hf for gctc-ntg-context-518@m.gmane.org; Sat, 04 Feb 2012 03:33:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0085CB203; Sat, 4 Feb 2012 03:33: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 WqGe8QhcuKtn; Sat, 4 Feb 2012 03:33:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 48F79CB1F4; Sat, 4 Feb 2012 03:33:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 995CACB1EA for ; Sat, 4 Feb 2012 03:33:22 +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 7qIF8IZDlkh6 for ; Sat, 4 Feb 2012 03:33:11 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 2281ECB1F4 for ; Sat, 4 Feb 2012 03:33:10 +0100 (CET) Original-Received: from mail-tul01m020-f169.google.com (mail-tul01m020-f169.google.com [209.85.214.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q142X5pl029620 for ; Sat, 4 Feb 2012 03:33:10 +0100 Original-Received: by obbta7 with SMTP id ta7so6834116obb.14 for ; Fri, 03 Feb 2012 18:33:05 -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=rQ2F/n5K8GH3xsOvkcS4342etut3i4x5TgTow0CX9tI=; b=iM5ZlkZE4iuLYLT54eRosCw1Y8UdFwIt/Fc0iV6iIkF1D+GBeyj9YCe7WsPd/fWFgl XBggvDbiFEcjVpxOQYizh+lHE6nUey+E3o+gcjtUnPor6ZCifxbTJK6txOAKm9eEHO6T cPIVXpici2HilYnHRr7xc50VbZQyfA2ZQtSt0= Original-Received: by 10.182.86.202 with SMTP id r10mr8776789obz.64.1328322785132; Fri, 03 Feb 2012 18:33:05 -0800 (PST) Original-Received: by 10.182.251.38 with HTTP; Fri, 3 Feb 2012 18:33:05 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0rGtCx52B - 4434f178bbd6 - 20120204 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:74298 Archived-At: Yeah! Woo! On Thu, Jan 26, 2012 at 2:40 PM, Peter Park Nelson wrote: > 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.c60f9c= d5.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 pa= ge should be switched >> back to the global layout with \definelayout[=85][state=3Dstart] (this i= s 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 t= o the Wiki! >> >> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-c= ontext >> 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. =A0In 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. =A0In 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 =A0 =A0 =A0 =A0 =A0> tex > error on line 70 in file J2-pagearea.te= x: > Emergency stop ... > > 60 =A0 =A0 =A0 [footer] > 61 =A0 =A0 =A0 [footer] > 62 > 63 =A0 =A0 \starttext > 64 =A0 =A0 \showframe > 65 =A0 =A0 \showgrid > 66 > 67 > 68 =A0 =A0 \startcolumnset[body] > 69 > 70 >> =A0\dorecurse{40}{\input tufte \par } > 71 > 72 =A0 =A0 %\input tufte \par > 73 > 74 =A0 =A0 \stopcolumnset > 75 > 76 =A0 =A0 \stoptext > 77 > > > \OTRSETdoifcellelse ...er #1:\number #2\endcsname > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0\@EA \secondoftwoarguments... > \@@ar@@3 ...ellelse {\mofcolumns }\columnlastcell > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0{\global \advance \columnl... > \redoloop ->\expandrecursecontent > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\endof= loop > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 { > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A044 > \endofloop ...expr \recurselevel +\plusone \relax > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0} > ... > l.70 \dorecurse{40}{\input tufte \par } > > End of file on the terminal! > > ! =A0=3D=3D> Fatal error occurred, no output PDF file produced! > > -- > Peter Park Nelson > peter.park.nelson@gmail.com -- = 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 ___________________________________________________________________________= ________