On 11/18/2013 11:29 PM, Géry Ogam wrote:
Hello,
Here is my problem:
\setuplayout[% width=0.75\paperwidth, height=\dimexpr\paperheight-1.2\paperwidth+1.2\textwidth+26mm]
\definelayout[luxury][% width=0.6667\paperwidth, height=\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 ‘luxury’ 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 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=\measure{w1}, height=\measure{h1}] \definelayout [luxury] [width=\measure{w2}, height=\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 -----------------------------------------------------------------