Open main menu
Wiki
Search
Changes
← Older edit
Newer edit →
Framed
(view source)
Revision as of 02:44, 3 November 2006
439 bytes added
,
02:44, 3 November 2006
→Preventing hyphenation
:
autowidth=force
{flushleft,\crlf nothypenated, \crlf verytolerant}
\stopcombination
</context>
== Specify the width no longer than needed ==
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. This can be done using the <code>autowidth=force</cmd> option to framed.
<context source="yes">
\defineframed
[tightframed][width=5cm,autowidth=force,align=middle]
\tightframed{Small}
\tightframed{A really really long line that is split at 5cm}
</context>
Adityam
Administrators
869
edits