On Mar 23, 2012, at 6:55 PM, Thomas A. Schmitz wrote:
But is there a method for similar calculations inside a frame? Here's what I tried, but it doesn't give the expected result (the image is much smaller than expected):
\starttext
\framed[width=7cm]{\externalfigure[cow][width=\the\dimexpr0.9\framedparameter{width}\relax]}
\stoptext
Thanks for any pointers!
Thomas
[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.]