[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
\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)
More information about the ntg-context
mailing list