Thu 26 Apr 2012 07:42:33 AM UTC, comment #3:
Trimming the document, it seems like there may be two possible triggers
1. The trigger may be a single trailing paragraph on the page.
On the following update it seems to remember to avoid the trailing paragraph and tighten the spacing.
On the following typeset it either forgets why it did that or finds things to squashed and so the paragraph ends up alone again.
2. Page headers.
I insert a label start of a chunk and also at the end of the chunk. I then compare the page numbers that the labels occur on. If the page numbers are not the same, then I <set-this-page-header|...> to be identical to the chunk header.
This allows chunks that span a page break to have a code header on the new page (instead of the page header).
I figured this should be safe as I don't change the size of the page header (I thought).
But if I don't set the page header, then the problem does not occur.
The implication that in a run of pages up to a page break, setting the page header for a single page in the run can affect typesetting.
I need a way to set the page header without changing it's size.
I altered the code that sets the page header to be:
<set-this-page-header|<value|page-even-header>>
and the problem still occurs, so I need to find out if setting the page header triggers any particular typesetting effects or actions.
|