Difference between revisions of "Framed"

From Wiki
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=2cm,
+
{\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
   {Left-aligned with no hyphenation}
+
   {\input ward \endgraf}}
\framed
+
{flushleft,\crlf nothypenated, \crlf verytolerant}
  [width=2cm,
+
\stopcombination
    align={flushleft}]
 
  {Left-aligned with hyphenation}
 
 
</context>
 
</context>
 
''(A better example should be put here, where the frame is big enough, so that words fit into a one line.)''
 
  
 
== 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

Similar topics