Difference between revisions of "Command/startcolumnset"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \startcolumnset ... \stopcolumnset") |
(No difference)
|
Revision as of 09:30, 14 September 2023
Contents
\startcolumnset ... \stopcolumnset
Summary
The environment \startcolumnset ... \stopcolumnset is used for material in columns.
Settings
\startcolumnset[...][...=...,...] ... \stopcolumnset | |
[...] | name |
...=...,... | inherits from \setupcolumnset |
Description
Start a column environment using the columnset mechanism.
Examples
Example 1
\starttext \setuppapersize[A6,landscape] \definecolumnset[TwoColumns][n=2] \startcolumnset [TwoColumns] \startalignment[justified,verytolerant] \input knuth \blank \framed [frame=off, bottomframe=on, width=\textwidth, frameoffset=1mm, foregroundstyle=small, ]{\copyright\ Donald E. Knuth} \input zapf \blank \framed [frame=off, bottomframe=on, width=\textwidth, frameoffset=1mm, foregroundstyle=small, ]{\copyright\ Hermann Zapf} \stopalignment \stopcolumnset \stoptext
Overlapping lines problems
Using columnsets may cause overlapping lines at the end of columns.
To avoid this, \setuplayout[grid=yes]
must be placed in the preamble of the document.
\setuppapersize[A6,landscape] \definecolumnset[example][n=3,balancing=no] \definecolumnsetspan[wide][n=2] \setupexternalfigures[location=default] \setuplayout[grid=yes] % Without this, last lines in the first column overlap % \starttext \noheaderandfooterlines \startcolumnset[example] \startcolumnsetspan[wide] \externalfigure[hacker][width=60mm] \stopcolumnsetspan \input knuth \stopcolumnset \stoptext
Notes
See also
- \definecolumnset
- \setupcolumnset
- page-cst.mkiv
- \startcolumns for an alternative column mechanism