gloamxun
8ac2e828df
Honour club and widow penalties on paragraph lines
...
Route-D expanded a paragraph into one node per line without TeX's
\clubpenalty/\widowpenalty, so a page break could orphan the first line or
widow the last. Insert the penalties between line nodes (150 by default, read
from the source registers) and make the page builder reject any penalty of
10000 or more as a breakpoint. Forced -10000 values now break exactly where
pdfLaTeX does; two page oracle fixtures compare per-page text, and unit tests
cover the node order and the forbidden breakpoint.
2026-10-26 22:14:01 +08:00
gloamxun
0805f3c932
Reserve insertion class skip in the paged builder
2026-10-24 00:23:55 +08:00
gloamxun
bf31936146
Prefer the later equal-cost page break
2026-10-23 23:58:28 +08:00
gloamxun
4dd28b3aa7
Defer bottom floats like TeX page building
2026-10-23 23:48:28 +08:00
gloamxun
17638996a1
Defer bottom floats inside the page builder
2026-10-23 23:43:32 +08:00
gloamxun
0f4c1f85ae
Report paragraph depth to the page builder
2026-10-23 23:31:47 +08:00
gloamxun
db1cc98338
Place top floats on the page they appear on
2026-10-23 23:15:56 +08:00
gloamxun
2b2ccd511c
Break pages only at legal glue points
2026-10-23 14:38:35 +08:00
gloamxun
8007fd1b6c
Report TeX outputpenalty for glue breaks
2026-10-23 14:22:34 +08:00
gloamxun
c6ebbea58d
Let the output routine retarget later pages with vsize
2026-10-23 13:02:47 +08:00
gloamxun
66dfb10b60
Ship float-heavy pages without body material
2026-10-23 12:45:53 +08:00
gloamxun
54a8488fa2
Limit paged floats by topnumber and bottomnumber
2026-10-23 12:32:02 +08:00
gloamxun
a4388942f0
Expose per-order page stretch to the output routine
2026-10-23 04:22:27 +08:00
gloamxun
52e3e0647c
Set pages with TeX glue orders
2026-10-23 04:18:14 +08:00
gloamxun
00c23a3511
Set vertical glue for ragged and flushed pages
2026-10-23 04:13:12 +08:00
gloamxun
14ca3b91d9
Place bottom floats through the paged builder
2026-10-23 03:57:44 +08:00
gloamxun
043ae7f072
Replay paged layouts from the edited page
2026-10-23 03:46:12 +08:00
gloamxun
aa081e3dc6
Place top floats through the paged builder
2026-10-23 03:30:15 +08:00
gloamxun
ca36c94eb3
Expose page stretch and shrink to the output routine
2026-10-23 03:23:57 +08:00
gloamxun
a2a2eafab5
Read output penalty and page number in the output routine
2026-10-23 03:04:58 +08:00
gloamxun
6cf8221ba7
Lay out insertion classes through the page builder
2026-10-23 02:53:04 +08:00
gloamxun
169119a48d
Cap page depth at Document max_depth
2026-10-23 01:48:21 +08:00
gloamxun
d4a9c6b4fd
Add a TeX page builder over vertical lists
2026-10-23 01:41:06 +08:00