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
Aditya Mahajan wrote:
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.
that's a braindead extension; however, it will be 'autowidth=force' (default value is yes) because otherwise we get conflicts with existing maxwidth usage Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Aditya Mahajan
-
Hans Hagen