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
    \ifvmode
       \getfiguredimensions[\bufferprefix lilypond-\the\lily! 
figures.pdf][]%
%      \def\FigWidth{\LPscale\figurewidth}
       \leavevmode
       \ifdim\FigWidth>\localhsize
         \!!dimena=\localhsize
         \advance\!!dimena by-\FigWidth
         \noindent\hskip\!!dimena
       \fi
    \fi
    \externalfigure[\lily!img][scale=1000\LPscale]%
    \egroup%

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!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to