I have sections that flow over into the following page by about 1 or 2 \baselineskips. This is easy to solve with an \enlargethispage{} and prevents the 2-line widows. Lateron, I may make a few more changes, and everything reflows. Now the problem is that the page with the enlargethispage is still a little longer, unless I go back and remove it.
What I would rather tell latex is to be more tolerant just on this particular page about to meet its widowing niceness criteria, and that it should only apply at the current page.
Easy or hard?
\enlargethispagedirectly use a custom command such as\WibbleChapterAenlargethispagethen you can easily define that to be nothing and reflow that chapter adding them back if needed without disturbing the rest of the document. – David Carlisle Dec 03 '21 at 07:50\WibbleChapterAenlargethispage.) I think widowpenalty solves the problem not with an\enlargethispagebut with an earlier break only. – ivo Welch Dec 03 '21 at 22:42