13 ms·
I think this is an impossible problem to fix -- inserting page numbers into a document can change formatting enough to cause things to move to a different page.
by CJefferson 6y ago
I think this is an impossible problem to fix -- inserting page numbers into a document can change formatting enough to cause things to move to a different page.
There are LaTeX documents which never reach a fixed point (I've made one by accident exactly once), and need slight adjustment.
- amelius 6y agoThen "iteratively computing a fixed point by simply rerunning the formatter from scratch" is not a solution to the problem. Actually I think you can do it iteratively by never decreasing the space occupied by an element between iterations. Of course this might yield ugly results but at least it halts with a solution.