[NTG-context] how can I use framewidth in calculations
Thomas A. Schmitz
thomas.schmitz at uni-bonn.de
Fri Mar 23 23:55:24 CET 2012
Hi all,
maybe I'm overlooking something obvious, but...: when I have a figure, I
can calculate its width dependent on the page width, and it will adapt:
\starttext
\externalfigure[cow][width=0.6\textwidth]
\stoptext
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
More information about the ntg-context
mailing list