From: "Géry Ogam" <maggyero@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: How to use local layout parameters (instead of global ones)?
Date: Tue, 19 Nov 2013 11:20:00 +0100 [thread overview]
Message-ID: <CAJ2CwZ1_-e2kwYRpe0L2w0cy1jTTwJCxH7L_EW3VEBjMCkKhjg@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1663 bytes --]
> \definemeasure[h1][1.2\measured{w1}+26mm]
> \definemeasure[h2][1.2\measured{w2}+26mm]
\measured gives me this error (*Undefined control sequence*):
*\17>>h1 ^^@-1.2\measured*
* {w1}+26mm*
*\measure ...sname \csname \??measure #1\endcsname*
* \else \zeropoint \fi*
*\page_layouts_synchronize ...tparameter \c!height*
* }\ifx
\p_page_layouts_heig...*
*<inserted text> ...yout \previouslayout \page_layouts_synchronize*
* \page_layouts_check_next
\...*
*\setup_layout ...out :}[#1]\the \everysetuplayout*
* \the \everyswitchlayout
\l...*
*\syst_helpers_double_empty_one_spaced ...1[{#2}][]*
I am using ConTeXt ver: 2013.04.20. So I tried to use \dimexpr:
\definemeasure[h1][\the\dimexpr 1.2\measure{w1}+26mm\relax]
\definemeasure[h2][\the\dimexpr 1.2\measure{w2}+26mm\relax]
but it gives me this error (there is a problem with the decimal point in
1.2 because there is no error when I put an integer instead):
*\17>>w1 .-0.*
* 7500\paperwidth*
*\measure ...sname \csname \??measure #1\endcsname*
* \else \zeropoint \fi*
*\17>>h1 r-\the \dimexpr 1.2\measure {w1}*
* + 26mm \relax*
*\measure ...sname \csname \??measure #1\endcsname*
* \else \zeropoint \fi*
*\page_layouts_synchronize ...tparameter \c!height*
* }\ifx
\p_page_layouts_heig...*
[-- Attachment #1.2: Type: text/html, Size: 2941 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2013-11-19 10:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-19 10:20 Géry Ogam [this message]
2013-11-19 10:27 ` Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2013-11-19 22:50 Géry Ogam
2013-11-18 22:29 Géry Ogam
2013-11-19 0:30 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ2CwZ1_-e2kwYRpe0L2w0cy1jTTwJCxH7L_EW3VEBjMCkKhjg@mail.gmail.com \
--to=maggyero@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).