Difference between revisions of "Framed"
Jump to navigation
Jump to search
m (stub; only "preventing hyphenation" is here for now) |
(→Preventing hyphenation: A bit of explaination and a bigger example) |
||
Line 2: | Line 2: | ||
== Preventing hyphenation == | == Preventing hyphenation == | ||
+ | |||
+ | One can prevent hypenation inside a frame by passing <code>nothypenated</code> option to <code>align</code>. It is also a good idea to add <code>verytolerant</code> and <code>strectch</code> options. | ||
<context source="yes"> | <context source="yes"> | ||
− | \framed | + | \startcombination[2*1] |
− | [width= | + | {\framed |
+ | [width=5cm, | ||
+ | align={flushleft}] | ||
+ | {\input ward \endgraf}} | ||
+ | {flushleft} | ||
+ | {\framed | ||
+ | [width=5cm, | ||
align={flushleft,nothyphenated,verytolerant}] % maybe also stretch | align={flushleft,nothyphenated,verytolerant}] % maybe also stretch | ||
− | { | + | {\input ward \endgraf}} |
− | \ | + | {flushleft,\crlf nothypenated, \crlf verytolerant} |
− | + | \stopcombination | |
− | |||
− | |||
</context> | </context> | ||
− | |||
− | |||
== Similar topics == | == Similar topics == |
Revision as of 19:11, 19 July 2006
TODO: the page devoted to all kinds of framed stuff (See: To-Do List) |
Preventing hyphenation
One can prevent hypenation inside a frame by passing nothypenated
option to align
. It is also a good idea to add verytolerant
and strectch
options.
\startcombination[2*1] {\framed [width=5cm, align={flushleft}] {\input ward \endgraf}} {flushleft} {\framed [width=5cm, align={flushleft,nothyphenated,verytolerant}] % maybe also stretch {\input ward \endgraf}} {flushleft,\crlf nothypenated, \crlf verytolerant} \stopcombination