From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85316 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?G=C3=A9ry_Ogam?= Newsgroups: gmane.comp.tex.context Subject: How to use local layout parameters (instead of global ones)? Date: Mon, 18 Nov 2013 23:29:35 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1036592723==" X-Trace: ger.gmane.org 1384813774 31498 80.91.229.3 (18 Nov 2013 22:29:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2013 22:29:34 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 18 23:29:40 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 1ViXK8-00050q-GF for gctc-ntg-context-518@m.gmane.org; Mon, 18 Nov 2013 23:29:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C929E10257; Mon, 18 Nov 2013 23:29:39 +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 sv-GHNN6B-h8; Mon, 18 Nov 2013 23:29:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4C0C51024E; Mon, 18 Nov 2013 23:29:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 52A371024E for ; Mon, 18 Nov 2013 23:29: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 lgVMYDVr96-f for ; Mon, 18 Nov 2013 23:29:36 +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 86DEF10249 for ; Mon, 18 Nov 2013 23:29:36 +0100 (CET) Original-Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAIMTZci005123 for ; Mon, 18 Nov 2013 23:29:35 +0100 Original-Received: by mail-wg0-f52.google.com with SMTP id z12so6901170wgg.19 for ; Mon, 18 Nov 2013 14:29:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ZfPYlocQ/0Fp+QKZpPbpa7PU8jIrhVh/UkU2gUvUpxg=; b=JCpHlxKt8k8zRdlgUYVV0ts3TFgfDGV6qN2HrKeAaN1L+c6sOTOqJ/cmlHXTLx80qy FujT6R4kw2xUEDGed3FOlL5TrTdCYAS2vrJuN9a5cVfz1zss27agRH3WF4tZOvUnNKZK dM00qbvkRNgO2+Y1of86JPcX0ua0UhlndJjz2q22bAURH/xmlXtApjtoATiea0LcNjAe rhzsEJxVzlbxXjPEokCDeDPiCPre1P49f1AEvO+equySFs6ZJvTd0Cd7kcLKNR5uqlmn 7TQYoVKe1Nq8ToJQaZF7SHajvbNlm98vLiNWVlY6uteKLsZH5Z6lUIRBBMHtRUPfvU5F UlZA== X-Received: by 10.180.198.79 with SMTP id ja15mr18480731wic.36.1384813775692; Mon, 18 Nov 2013 14:29:35 -0800 (PST) Original-Received: by 10.216.244.4 with HTTP; Mon, 18 Nov 2013 14:29:35 -0800 (PST) X-Bayes-Prob: 0.9999 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::234; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KPatz1t - 20d6c029d07a - 20131118 X-Scanned-By: CanIt (www . roaringpenguin . com) 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:85316 Archived-At: --===============1036592723== Content-Type: multipart/alternative; boundary=047d7b6242522e280a04eb7b1564 --047d7b6242522e280a04eb7b1564 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 =E2=80=98luxury=E2=80=99 = layout 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 regards. --047d7b6242522e280a04eb7b1564 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,


Here i= s my problem:


\setuplayout[%
<= div>=C2=A0 =C2=A0 width=3D0.75\paperwidth,
=C2=A0 =C2=A0 height= =3D\dimexpr\paperheight-1.2\paperwidth+1.2\textwidth+26mm]

\definelayout[luxury][%
=C2=A0 =C2=A0 width= =3D0.6667\paperwidth,
=C2=A0 =C2=A0 height=3D\dimexpr\paperheight= -1.2\paperwidth+1.2\textwidth+26mm]


\starttext

- textwidth: \the\textwidth \crlf
- textheight: \t= he\textheight
\page

\setuplayout[luxury]=

- textwidth: \the\textwidth \crlf
- tex= theight: \the\textheight % <-- The height (\texteight parameter) which d= epends on the width (\textwidth parameter) in my =E2=80=98luxury=E2=80=99 l= ayout has NOT changed though the local width (\textwidth parameter) has cha= nged. Therefore height used the global parameter \textwidth (defined in set= uplayout) instead of the local parameter \textwidth (defined in definelayou= t[luxury]). Question: how to use the local one?

\stoptext


Best = regards.
--047d7b6242522e280a04eb7b1564-- --===============1036592723== 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 ___________________________________________________________________________________ --===============1036592723==--