Command/setupmixedcolumns

From Wiki
Jump to navigation Jump to search


\setupmixedcolumns

Summary

The command \setupmixedcolumns is used to setup “simple” (AKA “mixed”) multi-column layout.

Settings

\setupmixedcolumns[...,...][...=...,...]
[...,...]name
gridsee \definegridsnapping
rulethicknessdimension
methodotr box
beforecommand
aftercommand
distancedimension
nnumber
maxheightdimension
maxwidthdimension
stepdimension
profilename
alignsee \setupalign
setupsname
balanceyes no
splitmethodnone fixed
alternativelocal global
internalgridline halfline
separatorrule
strutyes no
colorcolor
rulecolorcolor
directionnormal reverse
...=...,...inherits from \setupframed

OptionExplanation
rulethickness
width of the line between columns
distance
distance between columns
n
number of columns (2 is default)
balance
try to make the bottom of the columns on the last page even (same number of lines in each column)
internalgrid
align lines on a line or halfline grid
separator
activate the line between columns
rulecolor
color of the line between columns
direction
left to right or right to left

Description

Examples

Background and separator

  • \setupcolumns
      [n=3,
       separator=rule,rulecolor=red,
       background=color,backgroundcolor=green,
      ]
    
    \startcolumns
      % 12 lines, please
      \dorecurse{12}{line\crlf}
    \stopcolumns
    

Balancing

  • \startcolumns[n=2,balance=no]
      \dorecurse{3}{\samplefile{ward}\par}
    \stopcolumns
    
    \hairline
    
    \startcolumns[n=2,balance=yes]
      \dorecurse{3}{\samplefile{ward}\par}
    \stopcolumns
    

Balancing doesn’t seem to work.

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: