Files
docx/scripts
Dolan 070e104c68 feat(layout): lay out the footnotes word-watertight-notes settled, as Word does (#3658)
* feat(layout): lay out the footnotes word-watertight-notes settled, as Word does

Word's PDF of word-watertight-notes.docx (round 10, FN1 to FN15) showed what
it does where docx/layout still stopped at footnotes after #3651:

- FN1: a reference that moves on when its columns are laid out again for its
  footnote leaves the page as it was without the footnote
- FN2, FN3: a footnote continues in columns from the top of the page's
  columns, or of a column a section starts in, as far as it fits below the
  lines of every column, with the text going on above it
- FN4, FN5: the rest of a footnote has pages of its own before any section,
  and a continuous one starts on a new page after them
- FN6 to FN8: text and footnotes after one that starts on the next page go
  after it, and a reference below a page's top moves to the next page first
- FN9, FN10, FN12: a footnote breaks before a kept paragraph, before those
  kept with the next, and before a table whose header row would be alone
- FN13: the footnote of a line kept with a table goes below its first row
- FN14, FN15: footnotes of other sections go in the first one's columns

FN11 (a row broken in a footnote) and FN3's case from below the top of the
columns, which Word lays out again, still stop.

* fix(layout): check and measure a footnote split in the columns the page's footnotes are in

splitLast took the columns from the section being laid out, while the
page's footnotes are laid out in its first footnote's section's columns
(word-watertight-notes.docx FN14, FN15), so a split could be checked for
columns of different widths, and given its room, by the wrong section's
columns.
2026-10-03 01:04:02 +01:00
..