From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73408 Path: news.gmane.org!not-for-mail From: Peter Park Nelson Newsgroups: gmane.comp.tex.context Subject: Re: \definelayout Date: Tue, 27 Dec 2011 22:19:22 -0600 Message-ID: References: <565DD034-13F3-401E-9964-F2D2ACC6278D@uni-koblenz.de> 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 1325045987 6136 80.91.229.12 (28 Dec 2011 04:19:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Dec 2011 04:19:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 28 05:19:43 2011 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 1RfkzO-0004ER-Vl for gctc-ntg-context-518@m.gmane.org; Wed, 28 Dec 2011 05:19:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4E23CB1AD; Wed, 28 Dec 2011 05:19:41 +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 ufVeBbDkeRcb; Wed, 28 Dec 2011 05:19:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBF2ACB1A2; Wed, 28 Dec 2011 05:19:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1AFE8CB1A2 for ; Wed, 28 Dec 2011 05:19:37 +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 lE1hhn3zAIx6 for ; Wed, 28 Dec 2011 05:19:25 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id D0298CB170 for ; Wed, 28 Dec 2011 05:19:24 +0100 (CET) Original-Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBS4JN9G008775 for ; Wed, 28 Dec 2011 05:19:23 +0100 Original-Received: by wgbds13 with SMTP id ds13so17876366wgb.2 for ; Tue, 27 Dec 2011 20:19:23 -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=TXtL3ugwjgM1QkkDxiGSmKzYn60z4OLIKV+JxubZJog=; b=PfNHCSLhQyc7BMWWpUmtCoI4+3p6ZB5q9HV/rvJEehT6WFYryHzqY9JSEO58Ybky1K pXLlVctHuEBy4NRtZAA5vXEgFrjpdrhkAE/2FcwY9uUqaLQVE1SQzPvpp5ynOjRyAYa7 rT9JFC/h6UbhOkYfLGq6zNAgOBOgGSJV5TAqA= Original-Received: by 10.227.59.203 with SMTP id m11mr29829092wbh.18.1325045962875; Tue, 27 Dec 2011 20:19:22 -0800 (PST) Original-Received: by 10.223.71.208 with HTTP; Tue, 27 Dec 2011 20:19:22 -0800 (PST) In-Reply-To: <565DD034-13F3-401E-9964-F2D2ACC6278D@uni-koblenz.de> 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: 0aGesjnu5 - 4ade36ccfe92 - 20111228 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:73408 Archived-At: The example is not working correctly for me with the 23 Dec. beta. If I set a larger footer size for the first page, that larger size is carried over to all the rest of the document. Here's my code: \setuplayout[% width=3Dmiddle, backspace=3D15mm, topspace=3D10mm, height=3D254mm, header=3D5mm, headerdistance=3D5mm, footer=3D5mm, % Normal footer size footerdistance=3D5mm, grid=3Dtolerant] \definelayout[first][% Larger footer on first page footer=3D15mm, footerdistance=3D5mm] On Tue, Dec 13, 2011 at 12:20 PM, Andreas Harder w= rote: > > On 13.12.2011, at 16:44, Wolfgang Schuster wrote: > >> >> Am 13.12.2011 um 16:26 schrieb Andreas Harder: >> >>> Hi all, >>> >>> would someone please enlighten me. What is the correct usage of \define= layout? >>> >>> \definelayout[default][width=3Dmiddle,height=3Dmiddle,header=3D0pt,foot= er=3D0pt] >>> % \setuplayout[default] % needed? >>> \definelayout[first] =A0[default][header=3D2cm] >>> \definelayout[unknown][default]%[reset] >>> % \definelayout[2] =A0 =A0 =A0[default]%[reset] >>> \definelayout[last] =A0 [default][footer=3D2cm] >>> >>> \starttext =A0\showframe % \checkcurrentlayout >>> %% Variant A: fails with \default[unknown] >>> first\page unknown=3D(2)\page \page unknown=3D(3)\page last >>> >>> %% Variant B: fails with \definelayout[2] >>> % first\page unknown=3D(2)=3Dlast >>> \stoptext >>> >>> By the way the output differs with the latest beta in comparison with t= he latest experimental. >> >> Hans changed part of the \setuplayout code in the last betas (there are = more than you can see in the ctx suite). >> >> When context checks the layout (happens with \starttext and when it star= ts a new page) it test for the following defined layouts: >> >> =95 =93=94 >> =95 =93-=94 >> =95 =93last=94 (is only used for the last page of the document) >> =95 =93first=94 (is only used for the first page of the document) >> =95 =93unknown=94 >> =95 =93current=94 >> =95 =93odd=94 and =93even=94 (used for left and right pages) >> >> All entries in this list are reserved names but you can also define your= own layout but in this case >> you have to enable it with \setuplayout[]. >> >> One of the new features in MkIV is that layout parameters can be inherit= ed, e.g. when >> you define a layout with the name =93one=94 {\definelayout[one][..,..=3D= ..,..]) and another one with >> the name two (\definelayout[two][one][..,..=3D..,..]) this will take the= values from one of there >> are nothing set for a value from one and when there is also nothing set = for one the global >> values are used (\setuplayout[..,..=3D..,..]). > > Hi Wolfgang, > > I modified the example (hopefully in a meaningful manner). I get the desi= red output with the old beta, but it still fails with todays beta. > > \setuplayout [width=3Dmiddle,height=3Dmiddle,header=3D0pt,footer=3D0pt] > \definelayout[first] =A0[header=3D2cm] > \definelayout[last] =A0 [footer=3D2cm] > \definelayout[current] > > \starttext =A0\showframe % \checkcurrentlayout > =A0% \dorecurse{2}{test\page} % last is wrong > =A0\dorecurse{5}{test\page} % page 2 and =84last=93 are wrong > \stoptext > > > Andreas > _________________________________________________________________________= __________ > 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 > _________________________________________________________________________= __________ -- = 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 ___________________________________________________________________________= ________