Hi, How would you create a conditional column break that is only applied if inserting the break does not result in a page break? For example, in the following code the "if" statements exemplify the desired behaviour: \setuphead[chapter][ before={\startcolumns[n=2, balance=no,]}, after={\stopcolumns}, ] % If the section is the last section in the chapter % *and* the section is not in the last column *and* % inserting a column break does not cause pagination... \setuphead[section][ before={% \if_last_section{% \if_not_last_column{% \if_fits_in_last_column_without_pagination{\columnbreak} } } }, ] \starttext \startchapter \startsection[title=Section1] \input knuth \stopsection \startsection[title=Section2] \input zapf \stopsection \startsection[title=Section3] \input knuth \stopsection \stopchapter \stoptext Many kind regards.
participants (1)
-
Thangalin