[NTG-context] calculations

Henning Hraban Ramm hraban at fiee.net
Tue Sep 19 22:53:18 CEST 2006

Sorry, I skimmed the TeXbook for an hour but couldn't find how to do  
simple calculations in TeX...

This is a snippet from t-lilypond.tex:

\def\LPscale{0.6315789} % downscale the image
       \getfiguredimensions[\bufferprefix lilypond-\the\lily! 
%      \def\FigWidth{\LPscale\figurewidth}
         \advance\!!dimena by-\FigWidth

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)

Greetlings from Lake Constance!
http://www.cacert.org (I'm an assurer)

More information about the ntg-context mailing list