ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* how can I use framewidth in calculations
@ 2012-03-23 22:55 Thomas A. Schmitz
  2012-03-24  2:27 ` Rogers, Michael K
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Thomas A. Schmitz @ 2012-03-23 22:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-03-24 11:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-23 22:55 how can I use framewidth in calculations Thomas A. Schmitz
2012-03-24  2:27 ` Rogers, Michael K
2012-03-24  7:30   ` Thomas A. Schmitz
2012-03-24  7:44     ` Herbert Voss
2012-03-24  9:18       ` Thomas A. Schmitz
2012-03-24 10:27       ` Hans Hagen
2012-03-24 10:32 ` Wolfgang Schuster
2012-03-24 11:23 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).