Am 2006-09-25 um 11:46 schrieb Peter Rolf:
\externalfigure[\lily!img][scale=\dimexpr(1000\LPscale)]%
\numexpr should work here ..[scale=\numexpr1000\LPscale\relax]%
thank you, that seemed what I looked for, but: ! You can't use `\numexpr' in horizontal mode.
One of my favourite errors. Everytime it occurs I'm a bit puzzled, as I've no general solution for this. I can only tell you what I do in such a case. - check every parameter of the expression If the expression itself is ok - check the correct grouping of prior commands (boxes, conditionals,..) - try to calculate the expression before you pass it \newcount\Myscale \Myscale\numexpr1000\LPscale\relax ..[scale=\the\Myscale] But in the end it is more try and error than a systematic action. If there is a more general approach to solve this, I would be happy to hear it.
I think I tried everything but didn't get it to work. For the moment I use: \def\LPscale{0.6315789} % downscale the image \def\LPkscale{632} % doesn't work: \def\LPkscale{\numexpr1000\LPscale\relax} But anyway - my problem is caused by LilyPond not obeying its size commands in EPS mode, so the simple scaling doesn't help... Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer)