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}]}

works for me

Herbert
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to