ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Specifying maximum width of a frame
@ 2006-06-13 16:36 Aditya Mahajan
  2006-06-15 14:07 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Aditya Mahajan @ 2006-06-13 16:36 UTC (permalink / raw)


Hi,

  I want to specify the maximum width of a frame. If the size of the 
box is smaller than the maximum width, I want a tight box. Something 
like

\frame[maxwidth=5cm,align=middle]{Small} should give

+-----+
|small|
+-----+

while \frame[maxwidth=5cm,align=middle]{A very very long line that is 
split at 5cm} should give

+----------------------+
|   A very very long   |
|  line that is split  |
|      at 5cm          |
+----------------------+

Is there something builtin that does this, or do I need to play with 
scratchbox cum suis.

Aditya

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

end of thread, other threads:[~2006-06-15 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-13 16:36 Specifying maximum width of a frame Aditya Mahajan
2006-06-15 14:07 ` Hans Hagen

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).