Difference between revisions of "Command/definecolumnset"
< Command
Jump to navigation
Jump to search
Line 88: | Line 88: | ||
== Example - Four Column == | == Example - Four Column == | ||
+ | |||
+ | Copy and paste the example code in its own file then run ConTeXt to see the output: | ||
<context> | <context> |
Revision as of 21:57, 8 December 2019
\definecolumnset
Syntax (autogenerated)
\definecolumnset[...][...][...=...,...] | |
[...] | name |
[...] | name |
...=...,... | inherits from \setupcolumnset |
Syntax
\definecolumnset[...][...] | |
[...] | name |
[...] | setups |
Description
Define a new columnset environment with certain properties.
Header 1 | Header 2 |
---|---|
direction | right
|
balance | no
|
distance | 1.5\bodyfontsize
|
n | 2
|
nleft | Number of columns on left-hand pages
|
nright | Number of columns on right-hand pages
|
width | fit
|
lines | 0
|
start | 0
|
page | Start a page break before the columnset
|
Columnsets are spread-based, i.e. when n=4 you actually have eight columns: four on the left page and four on the right page. A document always opens with a right page.
Example - Two Column
% mode=mkiv \setuppapersize[A5] \definecolumnset[TwoColumns][n=2] \startcolumnset [TwoColumns] \title{Test page} \framed [frame=off, bottomframe=on, width=\textwidth, frameoffset=1mm, foregroundstyle=small, ]{\copyright\ \date[][year] Donald E. Knuth} \input knuth \stopcolumnset
Example - Four Column
Copy and paste the example code in its own file then run ConTeXt to see the output:
See also
Help from ConTeXt-Mailinglist/Forum
All issues with:
- definecolumnset on the mailing list (all results)
- definecolumnset on the mailing list (subject only)
- definecolumnset on stack exchange
- definecolumnset in ConTeXt's source
|