Difference between revisions of "Command/setupcolumns"
< Command
Jump to navigation
Jump to search
(Turn into proper table.) |
(move remark to top; stray HTML; proper sentences in table (still needs code markup)) |
||
Line 61: | Line 61: | ||
== Description == | == Description == | ||
+ | |||
+ | Consider using paragraphs ({{cmd|defineparagraphs}} or column sets ({{cmd|startcolumnset}} instead of ‘simple’ columns. | ||
+ | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| n | | n | ||
− | | | + | | Number of columns. Default is n=2. |
|- | |- | ||
| rule | | rule | ||
− | | | + | | Draw a line between the columns. Default is off. |
|- | |- | ||
| tolerance | | tolerance | ||
− | | | + | | Affects spacing. Narrow columns should be set tolerant, verytolerant or stretch |
|- | |- | ||
| distance | | distance | ||
− | | gap between the columns | + | | Size of the gap between the columns. |
|- | |- | ||
| balance | | balance | ||
− | | | + | | Should the columns be balanced, i.e. should they get the same number of lines? |
|- | |- | ||
| align | | align | ||
− | | | + | | Left, right (raggedleft, raggedright). |
|- | |- | ||
| blank | | blank | ||
− | | | + | | Amount of whitespace between paragraphs set in columns. Also accepts a dimension as an argument. Column equivalent of {{cmd|setupwhitespace}}. |
|- | |- | ||
| option | | option | ||
− | | | + | | With option=background you can use everything that \setupframed offers. |
|- | |- | ||
| direction | | direction | ||
− | | | + | | Default is right, i.e. the first column is on the left; 'left' means the first column is the rightmost. |
|- | |- | ||
| height | | height | ||
− | | height is unclear to me | + | | height is unclear to me. |
|- | |- | ||
| ntop | | ntop | ||
| ntop has to do with balancing, but I can't make sense of it. See page-mult.tex / minbalancetoplines. | | ntop has to do with balancing, but I can't make sense of it. See page-mult.tex / minbalancetoplines. | ||
|} | |} | ||
− | |||
− | |||
− | |||
== Example == | == Example == | ||
Line 113: | Line 113: | ||
[[Category:Command/Columns|setupcolumns]] | [[Category:Command/Columns|setupcolumns]] | ||
− | tr | + | /tr> |
Revision as of 18:39, 24 April 2012
\setupcolumns
Syntax
\setupcolumns[...,...=...,...] | |
n | number |
ntop | number |
rule | on off |
height | dimension |
tolerance | verystrict strict tolerant verytolerant stretch |
distance | dimension |
balance | yes no |
align | yes no text |
blank | fixed halfline line flexible big medium small |
option | background |
direction | left right |
[...,...=...,...] | see \setupframed |
Description
Consider using paragraphs (\defineparagraphs or column sets (\startcolumnset instead of ‘simple’ columns.
n | Number of columns. Default is n=2. |
rule | Draw a line between the columns. Default is off. |
tolerance | Affects spacing. Narrow columns should be set tolerant, verytolerant or stretch |
distance | Size of the gap between the columns. |
balance | Should the columns be balanced, i.e. should they get the same number of lines? |
align | Left, right (raggedleft, raggedright). |
blank | Amount of whitespace between paragraphs set in columns. Also accepts a dimension as an argument. Column equivalent of \setupwhitespace. |
option | With option=background you can use everything that \setupframed offers. |
direction | Default is right, i.e. the first column is on the left; 'left' means the first column is the rightmost. |
height | height is unclear to me. |
ntop | ntop has to do with balancing, but I can't make sense of it. See page-mult.tex / minbalancetoplines. |
Example
See also
- \startcolumns to start a columnar environment.
- \column to move to the next column.
- \setupparagraphs for the analogous command for side-by-side paragraphs
Help from ConTeXt-Mailinglist/Forum
All issues with:
- setupcolumns on the mailing list (all results)
- setupcolumns on the mailing list (subject only)
- setupcolumns on stack exchange
- setupcolumns in ConTeXt's source
/tr>