From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74140 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 15:11:06 -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="===============2096271135==" X-Trace: dough.gmane.org 1327601516 8731 80.91.229.12 (26 Jan 2012 18:11:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2012 18:11:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 26 19:11:52 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 1RqTnc-0005Rf-JZ for gctc-ntg-context-518@m.gmane.org; Thu, 26 Jan 2012 19:11:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 07F8ECB1FD; Thu, 26 Jan 2012 19:11:51 +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 RgJlQxHboZNf; Thu, 26 Jan 2012 19:11:45 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F1FAECB1F8; Thu, 26 Jan 2012 19:11:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69B02CB1F8 for ; Thu, 26 Jan 2012 19:11:43 +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 Muw7dGNXaF9v for ; Thu, 26 Jan 2012 19:11:28 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id C88E2CB1F5 for ; Thu, 26 Jan 2012 19:11:28 +0100 (CET) Original-Received: from mail-iy0-f169.google.com (mail-iy0-f169.google.com [209.85.210.169]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0QIBQea006937 for ; Thu, 26 Jan 2012 19:11:27 +0100 Original-Received: by iadk27 with SMTP id k27so1469410iad.14 for ; Thu, 26 Jan 2012 10:11:26 -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=mbUNDx3IOfTbNFToIscZwWx2iLMCXzYVbmr0WNQxgUA=; b=PPnTKrTgn2Wn3r+cN6xzlNl/k+e2/HJVNFFr1zhT4Zuyihir0M4WeKisVMZ1OSLCab s8D6keqjal+jb7MxP3OzQ+BY8lbUIJgyDKE46JKQxIf4VD9oEbyD8yCeFXDiTbca4mXu VjYn7wgKFvsDXkrqX1+AVdjs16Zcp5x5Nr6bQ= Original-Received: by 10.50.77.234 with SMTP id v10mr3625627igw.29.1327601486400; Thu, 26 Jan 2012 10:11:26 -0800 (PST) Original-Received: by 10.231.80.70 with HTTP; Thu, 26 Jan 2012 10:11:06 -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: 08Gqibrrm - 2493e684fd8f - 20120126 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:74140 Archived-At: --===============2096271135== Content-Type: multipart/alternative; boundary=e89a8f3ba887000cfb04b7724f56 --e89a8f3ba887000cfb04b7724f56 Content-Type: text/plain; charset=ISO-8859-1 Well, I never need this, so I thought that information was correct. I will do some tests when I'll have time to see if works for me. -- Wagner Macedo On 26 January 2012 14:40, Peter Park Nelson wrote: > Oh crap, I thought Wagner's solution worked but it doesn't -- quite. > > \showframe indicates that the page areas are defined correctly, and > the footer frame on page 2 and later is the correct size. But Context > is not filling the text columns all the way to the bottom; The body > text is still stopping short as though the larger footer was still in > effect. > > Frustrating. > > On Thu, Jan 26, 2012 at 8:18 AM, Wagner Macedo > wrote: > > 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 > >> > > > > > ___________________________________________________________________________________ > > 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 > > > ___________________________________________________________________________________ > > > > -- > Peter Park Nelson > peter.park.nelson@gmail.com > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > --e89a8f3ba887000cfb04b7724f56 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Well, I never need this, so I thought that information was correct.

= I will do some tests when I'll have time to see if works for me.
--
Wagner Macedo


On 26 January 2012 14:40, Peter Park Nel= son <pe= ter.park.nelson@gmail.com> wrote:
Oh crap, I thought Wagner's solution worked but it doesn't -- quite= .

\showframe indicates that the page areas are defined correctly, and
the footer frame on page 2 and later is the correct size. But Context
is not filling the text columns all the way to the bottom; The body
text is still stopping short as though the larger footer was still in
effect.

Frustrating.

On Thu, Jan 26, 2012 at 8:18 AM, Wagner Macedo <wagnerluis1982@gmail.com> wrote:
> According to ht= tp://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 <peter.park.nelson@gmail.com>
> wrote:
>>
>> First-page layout is an issue that I have asked about before, but<= br> >> maybe I am doing something wrong. Here is my question in an earlie= r
>> thread:
>> http://archive.contextgarden.net/mess= age/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 th= e
>> document. The effect is the same when using \definelayout[first] a= nd
>> \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: ht= tp://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<= /a>
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist :
ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >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
___________________________________________________________________________= ________

--e89a8f3ba887000cfb04b7724f56-- --===============2096271135== 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 ___________________________________________________________________________________ --===============2096271135==--