From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74138 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 11:04:47 -0600 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1327597517 10213 80.91.229.12 (26 Jan 2012 17:05:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2012 17:05:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 26 18:05:12 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 1RqSl6-0006HM-9M for gctc-ntg-context-518@m.gmane.org; Thu, 26 Jan 2012 18:05:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 43334CB1FD; Thu, 26 Jan 2012 18:05:11 +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 lLihTNi2dr0f; Thu, 26 Jan 2012 18:05:05 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2E303CB1F8; Thu, 26 Jan 2012 18:05:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DB1D5CB1F8 for ; Thu, 26 Jan 2012 18:05:03 +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 0jEnFXZ2Tcbu for ; Thu, 26 Jan 2012 18:04:49 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 03182CB1F5 for ; Thu, 26 Jan 2012 18:04:48 +0100 (CET) Original-Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0QH4lxB012548 for ; Thu, 26 Jan 2012 18:04:47 +0100 Original-Received: by wgbdt12 with SMTP id dt12so745504wgb.2 for ; Thu, 26 Jan 2012 09:04:47 -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=F0g7cns/XZlMFLZBjDF/STWIVZ+MihtYfWvLtDqZN/A=; b=U/ejxoeo9LoFrJ7p9fvgWecg2aU/+eUFaNwufuHhXp733JZjKAjsm6gi2kS6Fl0tA+ Z5sMY3Lg2g9HaB4AN+rKpx0m7r1J8ScpPGMUMgFM6TUSsaie9QJc7c2vrW/nKRmp14Ob b/8z4AoBcwTwNdVvD51Wng92fQaJLnulKuRsU= Original-Received: by 10.180.93.193 with SMTP id cw1mr5128858wib.5.1327597487393; Thu, 26 Jan 2012 09:04:47 -0800 (PST) Original-Received: by 10.223.69.143 with HTTP; Thu, 26 Jan 2012 09:04:47 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.45; 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: 0dGqh4LvD - e163f33b59f8 - 20120126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:74138 Archived-At: Wagner, Thanks for pointing this out, it works: \definelayout [1] [first page layout...] \definelayout [2] [reset] % call for a reset when the second page is reached \setuplayout [default layout...] But the question of why \definelayout[first] does not work correctly remains. Perhaps the developers will look into it. PPN On Thu, Jan 26, 2012 at 8:18 AM, Wagner Macedo w= rote: > According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you c= an > do this by using the commands \setuplayout[yourcustomlayout] and > \setuplayout[reset] at the location you want to change the layout. > > -- > Wagner Macedo > > > On 25 January 2012 23:41, Peter Park Nelson > wrote: >> >> 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.c60f9cd5.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]. >> >> %%------------------------------------------------------------------- >> >> setuppapersize[letter][letter] >> \setupindenting[yes, medium] >> >> \setuplayout >> =A0[width=3Dmiddle, >> =A0backspace=3D15mm, >> =A0topspace=3D10mm, >> =A0height=3D254mm, >> =A0header=3D10mm, =A0% normal header >> =A0headerdistance=3D5mm, >> =A0footer=3D5mm, >> =A0footerdistance=3D5mm, >> =A0grid=3Dyes] >> >> \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] >> >> \definecolumnset[body][n=3D2,balancing=3Dyes] >> >> \setupheadertexts >> =A0[This is a header] >> =A0[pagenumber] >> =A0[pagenumber] >> =A0[Some text] >> >> \setupfootertexts >> =A0[footer] >> =A0[footer] >> =A0[footer] >> =A0[footer] >> >> \starttext >> >> \startcolumnset[body] >> >> \dorecurse{20}{\input tufte\par} >> >> \stopcolumnset >> >> \stoptext >> > > _________________________________________________________________________= __________ > 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 =A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =A0: http://foundry.supelec.fr/projects/contextrev/ > wiki =A0 =A0 : http://contextgarden.net > _________________________________________________________________________= __________ -- = 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 ___________________________________________________________________________= ________