Changes

Jump to navigation Jump to search
142 bytes added ,  19:21, 19 June 2023
m
fix colored separator rule example
There are different possibilities to typeset text in two or more columns:
* columns : for simple cases of multi column text
* mixed columns : the upgraded MkIV version of columns ("a bit better with balancing and penalties for keeping section heads with the text") with many more configurable options.
* paragraphs : if you need a table-like structure (translations, questionaires etc.)
* column sets : the flexible way for varying columns or other complex tasks
Columns and columnsets are different mechanisms to produce a document
with two or more columns of text.
* The <code>columns</code> mechanism is the older one with limited control about the placement of figures but allows you to mix one column and multicolumns text on a page. It remains available in MkIV, but has been superseded for most purposes by <code>mixedcolumns</code>.
* <code>columnsets</code> are meant for magazine-like layouts with more control about the placement of figures and other features like spanned columns etc. (look at the [[Columns#Column_Sets|manual]] for more).
Influencing Changing the color of the separator rule is somewhat tricky:
<context source=yes>
\setuppapersize[A5]
\setupcolors[textcolor=blue]
\color[red] % rule color, but might influence also the color of other elements\startcolumns[n=3,separator=rule] % [rule,rulecolor=onred] seems to be deprecated
\input knuth
\stopcolumns
</texcode>
So you put the part of your document where synchronization should take place between <{{cmd>|StartCouple</cmd> }} and <{{cmd>|StopCouple</cmd>}}. After that , <{{cmd>|Original</cmd> }} and <{{cmd>|Translation</cmd> }} switches between even and odd pages.
Beware, streams don’t work in columns and not very good in columnsets.
Columnsets have a limitation, however: they are very strongly grid-based, and you can't change the interlinespace within the columnset (e.g., if some paragraphs are typed in a smaller font). You can change the interlinespace if the entire text with a smaller interlinespace fits in one column, like a float or a section title (putting it between <code>\startlinecorrection\stoplinecorrection</code>), but if the text with a smaller interlinespace starts in one column and has to continue in the following one, nothing will work, and the layout will be completely messed.
Changing the font weight or shape inbetween <{{cmd>|startcolumnset</cmd> }} and <{{cmd>|stopcolumnset</cmd> }} may cause some columns to be shifted vertically. Then you must use <{{cmd>|restoreinterlinespace</cmd> }} after the font switch (<{{cmd>|bf</cmd>}}, <{{cmd>|ss</cmd>}}) to correct the interline spacing. See [http://thread.gmane.org/gmane.comp.tex.context/20932].
So, if you want columns and one-column floats and don’t have to change the interlinespacing, use Columnsets. If not, you can use Columns with some tricks.
{{Columns navbox}}
 
[[Category:Basics]]
[[Category:Layout]]

Navigation menu