ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: Re: \definemeasure / \dimexpr
Date: Thu, 3 Nov 2022 21:51:20 +0100	[thread overview]
Message-ID: <7ffdb8dc-9947-830b-d199-3801103b8c02@freedom.nl> (raw)
In-Reply-To: <b9344667-40ba-3808-48e0-52766cfa4059@fiee.net>

On 11/3/2022 9:32 PM, Henning Hraban Ramm via ntg-context wrote:
> I’m constantly struggling with dimension calculations. Is there anything 
> I can read about the possibilities and limitations?
> 
> e.g. with
> \definemeasure[PageWidth][132mm]
> none of the following works:
> \definemeasure[FlapWidth][0.8 * \measure{PageWidth}]

use \measured (with a "d" to get a dimension)

> \definemeasure[FlapWidth][.8\measure{PageWidth}]
> \definemeasure[FlapWidth][\measure{PageWidth} * 0.8]
> \definemeasure[FlapWidth][\measure{PageWidth}*8/10]
> \definemeasure[FlapWidth][8\measure{PageWidth}/10]
> 
> Hraban
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry 
> to the Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
> ___________________________________________________________________________________

-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2022-11-03 20:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-03 20:32 Henning Hraban Ramm via ntg-context
2022-11-03 20:51 ` Hans Hagen via ntg-context [this message]
2022-11-03 21:43   ` Henning Hraban Ramm via ntg-context
2022-11-04 10:37     ` Henning Hraban Ramm via ntg-context
2022-11-04 10:52       ` Herbert Voss via ntg-context
2022-11-04 11:09         ` Henning Hraban Ramm via ntg-context
2022-11-13 10:37           ` Henning Hraban Ramm via ntg-context
2022-11-13 12:17             ` Wolfgang Schuster via ntg-context
2022-11-13 14:31               ` Henning Hraban Ramm via ntg-context

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=7ffdb8dc-9947-830b-d199-3801103b8c02@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.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).