Compact consecutive Times heading glue

This commit is contained in:
gloamxun committed 2026-10-28 23:39:01 +08:00
1 parent 16a795bca2
commit 13b85b542a
7 files changed
+87 -8

No files matched your search

+16
View File
@@ -108,3 +108,19 @@ The 3.2 body starts at 589.2 vs TeX 523.5 (+65.7) and ends before the footnote
at y=704. The two largest single jumps are `2.1 -> 2.1.1` (+20.4 rather than
the TeX 131.8 pt gap) and `3 -> 3.1` (+42.9 rather than 24.3). A trial reducing
all ptm heading space by 10 pt still left 3.3 on page 3 and was reverted.
## Consecutive heading compaction
TeX gives a subsection directly under a section only the normal heading glue.
Route adds the section's and subsection's `space_before` values. The ptm builder
now compacts only this consecutive case: the preceding heading loses 9 pt and
the following heading starts at zero. Measured baselines moved:
```text
3.1 456.4 -> 437.4
3.2 564.7 -> 545.7
```
The 3.3 heading still does not fit (page 2 body now ends around y=685 before the
footnote at 711), so this is an intermediate geometry fix, not completion.