From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74136 Path: news.gmane.org!not-for-mail From: Wagner Macedo Newsgroups: gmane.comp.tex.context Subject: Re: \definelayout[first] does not yield to default layout on page 2 Date: Thu, 26 Jan 2012 11:18:24 -0300 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1919111245==" X-Trace: dough.gmane.org 1327587563 28462 80.91.229.12 (26 Jan 2012 14:19:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2012 14:19:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 26 15:19:16 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 1RqQAT-0006bh-37 for gctc-ntg-context-518@m.gmane.org; Thu, 26 Jan 2012 15:19:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9F988CB1F8; Thu, 26 Jan 2012 15:19:10 +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 117zkF4sQwoZ; Thu, 26 Jan 2012 15:19:04 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5FB91CB1F3; Thu, 26 Jan 2012 15:19:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 54DEDCB1F3 for ; Thu, 26 Jan 2012 15:19:02 +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 pnwR4zMkT1xM for ; Thu, 26 Jan 2012 15:18:47 +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 10491CB1ED for ; Thu, 26 Jan 2012 15:18:47 +0100 (CET) Original-Received: from mail-iy0-f169.google.com (mail-iy0-f169.google.com [209.85.210.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0QEIj7S021796 for ; Thu, 26 Jan 2012 15:18:46 +0100 Original-Received: by iadk27 with SMTP id k27so1126142iad.14 for ; Thu, 26 Jan 2012 06:18:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Cxsq2VcR0Bu9BbpED4Vfx4DX8KcOnzoZCKoXTD+bANs=; b=fBBHvJfRbP/cF8HZy3Oz1OBjVqg7VyBSFuVcNR9dIpgTu7cvxUoRyV2Y/ky30XP0Mj o0fRhgyPi02m2+FI2tcKxQzVm1vbbfeF7wh4vxdMYv8GJcrKoUZpvMC+CPKSNim3QGQQ UAqHJJZt450pA+9iF+uRGGw9VkhxO8KvsEd2Q= Original-Received: by 10.50.195.129 with SMTP id ie1mr2314607igc.29.1327587524409; Thu, 26 Jan 2012 06:18:44 -0800 (PST) Original-Received: by 10.231.80.70 with HTTP; Thu, 26 Jan 2012 06:18:24 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.210.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: 0rGqeiJWW - 5aef188d89a6 - 20120126 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:74136 Archived-At: --===============1919111245== Content-Type: multipart/alternative; boundary=14dae9340863ccfaec04b76f0e93 --14dae9340863ccfaec04b76f0e93 Content-Type: text/plain; charset=ISO-8859-1 According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you can 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 > [width=middle, > backspace=15mm, > topspace=10mm, > height=254mm, > header=10mm, % normal header > headerdistance=5mm, > footer=5mm, > footerdistance=5mm, > grid=yes] > > \definelayout > [first] > [width=middle, > backspace=15mm, > topspace=10mm, > height=254mm, > header=0mm, % no header > headerdistance=0mm, > footer=25mm, % big footer > footerdistance=5mm, > grid=yes] > > \definecolumnset[body][n=2,balancing=yes] > > \setupheadertexts > [This is a header] > [pagenumber] > [pagenumber] > [Some text] > > \setupfootertexts > [footer] > [footer] > [footer] > [footer] > > \starttext > > \startcolumnset[body] > > \dorecurse{20}{\input tufte\par} > > \stopcolumnset > > \stoptext > > --14dae9340863ccfaec04b76f0e93 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you can do t= his by using the commands \setuplayout[yourcustomlayout] and \setuplayout[r= eset] at the location you want to change the layout.

--
Wagner Macedo


On 25 January 2012 23:41, Peter Park Nel= son <pe= ter.park.nelson@gmail.com> 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/messa= ge/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

--14dae9340863ccfaec04b76f0e93-- --===============1919111245== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1919111245==--