And I’m hitting the 5 iteration convergence threshold. In my understanding, layout is computed from top to bottom, which should make this converge in 1 iteration (the ~ at the beginning is here to make sure that the y-coordinate doesn’t actually change). How can I fix this ? The behavior I want is that if a heading ends up too far down a page, I want to move it to the next page.
Hi @T.C, welcome to the forum! I have edited the title of your question to follow our guidelines.
My guess for the convergence issue is that after one pass, some of the tests for > 650pt return true, which causes the insertion of a few pagebreaks. The first of these pagebreaks causes a relayout for everything after it. Then in this relayout, some previously inserted pagebreaks might be removed, and some others might be added. The first of these changes will cause a relayout of everything below, etc. But it’s just an idea, I don’t know if that’s really what happens.