3 % Synopsis: collectmore causes overfull pages with multicol
7 % The attached file shows, that some combinations of page height and
8 % the amount of available text in the multicols environment cause
9 % LaTeX to produce overfull pages.
11 % It seems that multicols takes its decision to balance columns
12 % without checking whether the lines gathered so far will actually
13 % fit on the current page. They may not fit, if the collectmore
14 % parameter is positive (in fact, if it is larger than minus number
17 % Notes below refer to the situation n the past, by now overflow in
18 % balancing are automatically detected and if too much will result
19 % in cutting a normal page (so only page 5 will get 93 lines, all
20 % others will now produce 2 pages.
23 \AUTHOR{Frank Mittelbach}
26 \documentclass{article}
27 \usepackage[balancingshow]
32 \newcommand*{\test}[1]{%
37 Test line \number\lineno.\par
46 \setcounter{collectmore}{5}
48 % Here we see the length of the page, 92 lines:
52 % This page has 5 lines too many, fortunately with an overfull vbox
57 % This page is one line too long without any diagnostics:
58 \setcounter{collectmore}{0}
62 % We need to set collectmore to minus number of columns to get this
63 % page right (-1 is not enough, but -3 would already shorten the
65 \setcounter{collectmore}{-2}