On Wed, 20 Sep 2006 00:04:33 +0200, Henning Hraban Ramm
Thank you, but now I always get:
! Illegal unit of measure (pt inserted). <to be read again> . \figurewidth ->545. 03625pt \dodostartlilypond ...expr (\LPscale \figurewidth ) \ifdim \FigWidth
\localh...
\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 \externalfigure[\lily!img][scale=\dimexpr(1000\LPscale)]% Regards, BG