On 24-3-2012 08:44, Herbert Voss wrote:
Am 24.03.2012 08:30, schrieb Thomas A. Schmitz:
On 03/24/12 03:27, Rogers, Michael K wrote:
Try
\framed[width=7cm]{\externalfigure[cow][width=\dimexpr\framedparameter{width}*9/10]}
[I don't understand \dimexpr. For instance 7cm = ~198pt, 0.9 * 7 cm = ~179pt, but \dimexpr0.9\framedparameter{width} yields 27.5992pt. It doesn't seem to work well with decimals. No wiki page for it, that I can find.]
Thank you, that is exactly what I needed! I'll see if I can find some more information about \dimexpr now!
\framed[width=7cm]{\externalfigure[cow][width=0.75\expandafter\dimexpr\framedparameter{width}]}
there is no need for \expandafter here as \dimexpr will expand what comes after it anyway ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------