Henning Hraban Ramm wrote:
Am 2006-09-20 um 00:40 schrieb nico:
\figurewidth is not a dimension. I guess the following should work:
\def\LPscale{.6315789} % downscale the image \ifvmode \getfiguredimensions[\bufferprefix lilypond-\the\lily!figures.pdf][]% \leavevmode% \newdimen\FigWidth \newdimen\FigWidthReal=\figurewidth \FigWidth=\dimexpr(\LPscale\FigWidthReal) \ifdim\FigWidth>\localhsize \!!dimena=\localhsize \advance\!!dimena by-\FigWidth \noindent\hskip\!!dimena \fi \fi
Thank you very much, that works indeed.
\externalfigure[\lily!img][scale=\dimexpr(1000\LPscale)]%
But here \dimexpr is nonsense (should have seen that before). But "scale=1000\LPscale" just concatenates the two "strings", and TeX doesn't seem to reckognize a *
How can I multiply two values? Di I need some expansion magick or just something like "eval()"?
\numexpr should work here ..[scale=\numexpr1000\LPscale\relax]% Greetings, Peter
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