[NTG-context] \definemeasure / \dimexpr

Hans Hagen j.hagen at freedom.nl
Thu Nov 3 21:51:20 CET 2022


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 at 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
-----------------------------------------------------------------



More information about the ntg-context mailing list