Changes

Jump to navigation Jump to search
166 bytes removed ,  12:42, 6 July 2012
Make examples narrower
=Columns=
<texcodecontext source=yes>\startcolumnssetuppapersize[n=3A5]\input knuth\stopcolumns</texcode>
<context>
\setupbodyfont[rm, 9pt]
\startcolumns[n=3]
\input knuth
</context>
You can add all the options of <{{cmd>|setupcolumns</cmd> }} to <{{cmd>|startcolumns</cmd>}}. For example, simple ruled columns are easy:
<texcodecontext source=yes>\setupbodyfontsetuppapersize[9ptA5]\startcolumns[n=2,rule=on]\input knuth\stopcolumns</texcode>
<context>
\setupbodyfont[9pt]
\startcolumns[n=2,rule=on]
\input knuth
</context>
Normally, columns are automatically balanced with the text distributed over the number or requested columns. You can provoke a column switch using <{{cmd>|column</cmd>}}.
<texcodecontext source=yes>\startcolumnssetuppapersize[n=2A5]\input knuth\column\input tufte\stopcolumns</texcode>
<context >
\setupbodyfont[9pt]
\startcolumns[n=2]
\input knuthward
\column
\input tufteweisman
\stopcolumns
</context>
For example:
<context source="yes">
\setuppapersize[A5]
\enableregime[utf]
 
\defineparagraphs[TwoThird][n=2]
 
% The width of the second paragraph is automatically calculated if unspecified.
\setupparagraphs[TwoThird][1][width=.66\textwidth]
% The width of the second paragraph is automatically calculated if unspecified.
\startTwoThird
\quotation{...{\it why is there something rather than nothing?}
=(Simple)Columns in a narrow frame=
It is hard to To put multiple columns in a frame (at least for me), but this one works.:
<context source="yes">
\setuppapersize[A5]
 
\framed[width=0.9\hsize,location=middle]\bgroup
\startnarrower[2*middle] \setlocalhsize \hsize\localhsize \startsimplecolumns \input tufte \stopsimplecolumns \stopnarrower
\egroup
</context>
<context source="yes">
\setuppapersize[A5]
 
\setupcolors[state=start]
\definetextbackground [book]
<context source="yes">
\setuppapersize[A5]
 
\definecolumnset[TwoColumns][n=2]

Navigation menu