[NTG-context] calculations

nico nicolas.marsgui at libertysurf.fr
Tue Sep 19 23:34:29 CEST 2006


On Tue, 19 Sep 2006 22:53:18 +0200, Henning Hraban Ramm <hraban at fiee.net>  
wrote:

> I need to downscale every score to 63%, and the shown width check
> should use the corrected width.
> How can I do that? (FigWidth should be LPscale * figurewidth)

I don't know what you really want to do, but an example of computation  
could look like this:

\newdimen\myfigwidth
\newdimen\myfigurewidth
\def\myscale{.63}

\figurewidth=23pt
\myfigwidth=\dimexpr(\myscale\myfigurewidth)

\starttext
\the\myfigwidth
\stoptext

Regards,
BG


More information about the ntg-context mailing list