How to pagebreak before an heading, only if a certain condition is achieved?

It does work, the layout converges but not in 5 attempts. I guess it’s better to have a compile option to specify the maximum attempts. BTW, your solution generates the same warning as the count of heading increases.

2 Likes