Difference between revisions of "Command/setupcolumns"

From Wiki
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
+
| Number of columns. Default is n=2.
 
|-
 
|-
 
| rule  
 
| rule  
| draw a line between the columns, default is off
+
| Draw a line between the columns. Default is off.
 
|-
 
|-
 
| tolerance  
 
| tolerance  
| affects spacing, narrow columns should be set tolerant, verytolerant or stretch
+
| 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?
+
| Should the columns be balanced, i.e. should they get the same number of lines?
 
|-  
 
|-  
 
| align  
 
| align  
| left, right (raggedleft, raggedright)
+
| Left, right (raggedleft, raggedright).
 
|-  
 
|-  
 
| blank  
 
| blank  
| amount of whitespace between paragraphs set in columns. Also accepts a dimension as an argument. Column equivalent of \setupwhitespace
+
| 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
+
| 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.
+
| 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.  
 
|}
 
|}
</pre>
 
 
Consider using paragraphs or column sets instead of "simple" columns.
 
  
 
== Example ==
 
== Example ==
Line 113: Line 113:
  
 
[[Category:Command/Columns|setupcolumns]]
 
[[Category:Command/Columns|setupcolumns]]
tr valign="top" class="first">
+
/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

Help from ConTeXt-Mailinglist/Forum

All issues with:

/tr>