Changes

Jump to navigation Jump to search
826 bytes added ,  09:29, 18 April 2008
== Preventing hyphenation ==
One can prevent hypenation hyphenation 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">
* You can only fill the frame with a background color if the corner shape is closed. Otherwise, the backgroundcolor option will be silently ignored.
 
 
== Coloring frame background and framed text ==
 
First you have to turn on colors with <cmd>setupcolors</cmd><tt>[state=start]</tt>. Then you can define the background and foreground (=text) colors:
 
<texcode>\framed[background=color,backgroundcolor=....,foreground=color,foregroundcolor=...]{...}</texcode>
 
If you want to make the frame itself disappear, add a <tt>frame=off<tt> to the setups.
 
 
<context>
\setupcolors[state=start]
\framed
[background=color,backgroundcolor=darkblue,
foreground=color,foregroundcolor=white]
{\ssx \bf Bold white on dark blue}
</context>
 
<context>
\setupcolors[state=start]
\framed
[background=color,backgroundcolor=yellow,
frame=off]
{\tfx Who needs highlighter pens, anyway?}
</context>
 
See the [[Colors]] section for more information on available colors and color usage.
= Similar topics =
102

edits

Navigation menu