From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73160 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \definelayout Date: Tue, 13 Dec 2011 16:44:40 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1323791113 9388 80.91.229.12 (13 Dec 2011 15:45:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2011 15:45:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 13 16:45:08 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 1RaUXT-0007U3-Cz for gctc-ntg-context-518@m.gmane.org; Tue, 13 Dec 2011 16:45:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F1F85CB16A; Tue, 13 Dec 2011 16:45:05 +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 JxRh42OP4Szi; Tue, 13 Dec 2011 16:44:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BEDA3CB145; Tue, 13 Dec 2011 16:44:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E62FCB145 for ; Tue, 13 Dec 2011 16:44:58 +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 qK6iYfUGThIC for ; Tue, 13 Dec 2011 16:44:56 +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 AB892CABBD for ; Tue, 13 Dec 2011 16:44:56 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBDFitjm030516 for ; Tue, 13 Dec 2011 16:44:55 +0100 Original-Received: by eekc41 with SMTP id c41so4028164eek.14 for ; Tue, 13 Dec 2011 07:44:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=eCxFMYbprayYQ3pgehg6TD4HFNrW3XPcn6zSyf9UXhw=; b=RbiC6rDRPFSnTloL2waXuQ9WpVSittY+ffXBFesbReB8pljA/qVLi+peREEsgZxcHX aA2KLi9PyLojD9skzECXcvyA0wbd4dl0PLMnxr7f+tM8V1p3FGcZeBVPn1p3wgt5y4da o3bVcoAx4mQU6JOp+iOVfZG/sgQVuVkAiLRUk= Original-Received: by 10.14.11.229 with SMTP id 77mr4431819eex.126.1323791089040; Tue, 13 Dec 2011 07:44:49 -0800 (PST) Original-Received: from [192.168.2.35] (p57AFB190.dip.t-dialin.net. [87.175.177.144]) by mx.google.com with ESMTPS id 39sm25239083eei.1.2011.12.13.07.44.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Dec 2011 07:44:42 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; 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: 08G8DITz4 - 6a776f7fafc9 - 20111213 (trained as not-spam) 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:73160 Archived-At: Am 13.12.2011 um 16:26 schrieb Andreas Harder: > Hi all, > = > would someone please enlighten me. What is the correct usage of \definela= yout? > = > \definelayout[default][width=3Dmiddle,height=3Dmiddle,header=3D0pt,footer= =3D0pt] > % \setuplayout[default] % needed? > \definelayout[first] [default][header=3D2cm] > \definelayout[unknown][default]%[reset] > % \definelayout[2] [default]%[reset] > \definelayout[last] [default][footer=3D2cm] > = > \starttext \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 the= latest experimental. Hans changed part of the \setuplayout code in the last betas (there are mor= e than you can see in the ctx suite). When context checks the layout (happens with \starttext and when it starts = 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 ow= n 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 inherited,= 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 va= lues 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..,..]). Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________