From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85321 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: How to use local layout parameters (instead of global ones)? Date: Tue, 19 Nov 2013 01:30:42 +0100 Message-ID: <528AB132.3010506@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1384821048 12746 80.91.229.3 (19 Nov 2013 00:30:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Nov 2013 00:30:48 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 19 01:30:54 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ViZDR-0001uh-4o for gctc-ntg-context-518@m.gmane.org; Tue, 19 Nov 2013 01:30:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1DE5E10260; Tue, 19 Nov 2013 01:30:52 +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 gtDli7rNASMu; Tue, 19 Nov 2013 01:30:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8C59210252; Tue, 19 Nov 2013 01:30:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CDEAB10252 for ; Tue, 19 Nov 2013 01:30:47 +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 937X+R5GjKb2 for ; Tue, 19 Nov 2013 01:30:46 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 58D8E10250 for ; Tue, 19 Nov 2013 01:30:46 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAJ0Uj4q024396 for ; Tue, 19 Nov 2013 01:30:45 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.104; Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 209-1713362 for ; Tue, 19 Nov 2013 01:30:45 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KPcuJ2J - 6a8e3796824f - 20131119 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85321 Archived-At: On 11/18/2013 11:29 PM, G=E9ry Ogam wrote: > Hello, > > > Here is my problem: > > > \setuplayout[% > width=3D0.75\paperwidth, > height=3D\dimexpr\paperheight-1.2\paperwidth+1.2\textwidth+26mm] > > \definelayout[luxury][% > width=3D0.6667\paperwidth, > height=3D\dimexpr\paperheight-1.2\paperwidth+1.2\textwidth+26mm] > > > \starttext > > - textwidth: \the\textwidth \crlf > - textheight: \the\textheight > \page > > \setuplayout[luxury] > > - textwidth: \the\textwidth \crlf > - textheight: \the\textheight % <-- The height (\texteight parameter) > which depends on the width (\textwidth parameter) in my =91luxury=92 layo= ut > has NOT changed though the local width (\textwidth parameter) has > changed. Therefore height used the global parameter \textwidth (defined > in setuplayout) instead of the local parameter \textwidth (defined in > definelayout[luxury]). Question: how to use the local one? > > \stoptext best do that indirect: \definemeasure[w1][0.7500\paperwidth] \definemeasure[w2][0.6667\paperwidth] \definemeasure[h1][1.2\measured{w1}+26mm] \definemeasure[h2][1.2\measured{w2}+26mm] \setuplayout [width=3D\measure{w1}, height=3D\measure{h1}] \definelayout [luxury] [width=3D\measure{w2}, height=3D\measure{h2}] -- = ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________