Difference between revisions of "Command/testcolumn"

From Wiki
Jump to navigation Jump to search
Line 51: Line 51:
<cd:wikipage page="Columns"></cd:wikipage>
<cd:wikipage page="Columns"></cd:wikipage>
<cd:commandref name="column"></cd:commandref>
<cd:commandref name="column"></cd:commandref>
<cd:commandref name="startpagecolumns"></cd:commandref></cd:seealso>
<cd:commandref name="startpagecolumns"></cd:commandref>
<cd:commandref name="testpage"></cd:commandref></cd:seealso>

Latest revision as of 10:57, 3 December 2021



The command \testcolumn checks for free space in a column




The command \testcolumn[n] causes a column break if there are not at least n lines of space remaining in the current column.

This helps avoid orphans (clubs) at the bottom of columns, by ensuring sufficient room for a given number of lines prior to starting a new heading or paragraph.

This command does not work in the simple column modes, as it needs to be able to know the desired height of the column, and that is only possible with full page style columns.


Example 1



    \dorecurse{5}{ \startitem List item. \stopitem }

      \dorecurse{3}{ \startitem List item. \stopitem }



See also

Help from ConTeXt-Mailinglist/Forum

All issues with: