Re: [NTG-context] \definemeasure / \dimexpr

2022-11-13 Thread Henning Hraban Ramm via ntg-context
Yes! Finally! Thank you, Wolfgang! Am 13.11.22 um 13:17 schrieb Wolfgang Schuster via ntg-context: Henning Hraban Ramm via ntg-context schrieb am 13.11.2022 um 11:37: \definemeasure[SpineWidth][2mm + (0.135mm * \noffigurepages/2)] You can try     \expanded{\definemeasure[SpineWidth][...]}

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-13 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 13.11.2022 um 11:37: One problem left with dimensions that I can’t reproduce in a minimal example: I want to calculate the spine width of the cover from the number of content pages: \useexternalfigure[CONTENT][book.pdf]

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-13 Thread Henning Hraban Ramm via ntg-context
One problem left with dimensions that I can’t reproduce in a minimal example: I want to calculate the spine width of the cover from the number of content pages: \useexternalfigure[CONTENT][book.pdf] \getfiguredimensions[CONTENT] \definemeasure[SpineWidth][2mm + (0.135mm * \noffigurepages/2)]

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-04 Thread Henning Hraban Ramm via ntg-context
Am 04.11.22 um 11:52 schrieb Herbert Voss via ntg-context: \definemeasure[FlapWidth][\measured{PageWidth} * 0.8] \definemeasure[FlapWidth][0.8\measured{PageWidth}] works Yes, thank you! That’s why I asked for the basics in my first post – which operators can I use how, in which order?

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-04 Thread Herbert Voss via ntg-context
Am 04.11.22 um 11:37 schrieb Henning Hraban Ramm via ntg-context: Am 03.11.22 um 22:43 schrieb Henning Hraban Ramm via ntg-context: Am 03.11.22 um 21:51 schrieb Hans Hagen via ntg-context: On 11/3/2022 9:32 PM, Henning Hraban Ramm via ntg-context wrote: I’m constantly struggling with

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-04 Thread Henning Hraban Ramm via ntg-context
Am 03.11.22 um 22:43 schrieb Henning Hraban Ramm via ntg-context: Am 03.11.22 um 21:51 schrieb Hans Hagen via ntg-context: 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

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-03 Thread Henning Hraban Ramm via ntg-context
Am 03.11.22 um 21:51 schrieb Hans Hagen via ntg-context: 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]

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-03 Thread Hans Hagen via ntg-context
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 *

[NTG-context] \definemeasure / \dimexpr

2022-11-03 Thread Henning Hraban Ramm via ntg-context
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}]