summaryrefslogtreecommitdiff
path: root/macros/luatex/optex/multicolumns.opm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-04-27 03:03:41 +0000
committerNorbert Preining <norbert@preining.info>2020-04-27 03:03:41 +0000
commitae496a1c963576dfe63885afa818b2af745ed44a (patch)
tree62604706ca603c17f5f56fe646072d8d2cfab60c /macros/luatex/optex/multicolumns.opm
parent7d9d2e08fcab92adcc759e3f1e4bb0a15a63f220 (diff)
CTAN sync 202004270303
Diffstat (limited to 'macros/luatex/optex/multicolumns.opm')
-rw-r--r--macros/luatex/optex/multicolumns.opm13
1 files changed, 12 insertions, 1 deletions
diff --git a/macros/luatex/optex/multicolumns.opm b/macros/luatex/optex/multicolumns.opm
index cf4d26bbb4..c593f72552 100644
--- a/macros/luatex/optex/multicolumns.opm
+++ b/macros/luatex/optex/multicolumns.opm
@@ -5,7 +5,8 @@
\_doc -----------------------------
This code is documented in detail in the \"\TeX/book naruby", pages 244--246,
free available, \url{http://petr.olsak.net/tbn.html}, but in Czech.
- Roughly speaking, macros complete all material between `\begmulti` and `\endmulti`
+ Roughly speaking, macros complete all material between
+ \`\begmulti``<num-columns>` and \`\endmulti`
into one `\vbox 6`. Then the macro measures the amount of free space at the current
page using `\pagegoal` and `\pagtotal` and does `\vsplit` of `\vbox 6` to
columns with height of such free space. This is done only if we have
@@ -49,6 +50,11 @@
\_else \_balancecolumns \_fi % only balancing
\_multiskip\_egroup
}
+
+ \_doc -----------------------------
+ Splitting columns...
+ \_cod -----------------------------
+
\_def\_makecolumns{\_bgroup % full page, destination height: \dimen1
\_vbadness=20000 \_setbox1=\_hbox{}\_tmpnum=0
\_loop \_ifnum\_Ncols>\_tmpnum
@@ -75,6 +81,11 @@
\_else \_balancecolumns % last balancing
\_fi \_fi
}
+
+ \_doc -----------------------------
+ Final balancing of the columns.
+ \_cod -----------------------------
+
\_def\_balancecolumns{\_bgroup \_setbox7=\_copy6 % destination height: \dimen0
\_ifdim\_dimen0>\_baselineskip \_else \_dimen0=\_baselineskip \_fi
\_vbadness=20000