Reserve display skips around math
TeX surrounds each display with \abovedisplayskip above and \belowdisplayskip below, but route-D only reserved the paragraph's own spacing, so displays sat directly against the surrounding text. Parse the four registers (including the short forms), default to the article-class 10/11/12pt values, and add them to the math unit and the unit that follows it. The glue parser now also accepts the class-file spelling (`\abovedisplayskip 7\p@ \@plus 2\p@ \@minus 5\p@`), register copies such as `\belowdisplayskip \abovedisplayskip`, `\z@`/`\p@` dimensions and space-separated assignments, which clears the display-skip warnings the arXiv template produced. A page oracle sets a 45pt above skip and pins the display moving to the second page exactly as pdfLaTeX lays it out; unit tests cover the defaults, overrides and the class-file spelling.
This commit is contained in:
1 parent
8ac2e828df
commit
2f9b18c95c
4 files changed
+265
-21
No files matched your search
@@ -48,7 +48,7 @@ floats (`\floatsep`, `\textfloatsep`, `\intextsep`, `\topfraction`,
|
||||
`\bottomnumber`, `\totalnumber`), insertion classes (`\skip`, fraction and
|
||||
absolute limits, splitting), marks, Rust output hook, multi-page PDF, and the
|
||||
route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
|
||||
PDF opt-in with `?engine=route-d`). 963 workspace tests are green and no oracle
|
||||
PDF opt-in with `?engine=route-d`). 967 workspace tests are green and no oracle
|
||||
fixture is ignored. Preview JSON also carries a `warnings` array naming
|
||||
environments route-D cannot lay out and control words that survived layout, so
|
||||
unsupported source is reported instead of being silently typeset.
|
||||
@@ -308,7 +308,10 @@ Two more fixtures pin TeX's orphan and widow controls: `\clubpenalty=-10000`
|
||||
forces a break after a paragraph's first line and `\widowpenalty=-10000` forces
|
||||
one before its last, page for page against pdfLaTeX. The paged builder inserts
|
||||
both penalties between line nodes (150 by default) and refuses any penalty of
|
||||
10000 or more as a breakpoint.
|
||||
10000 or more as a breakpoint. Display math units reserve `\abovedisplayskip`
|
||||
above and `\belowdisplayskip` below (the 10/11/12pt class defaults, overridable
|
||||
from the source in TeX's `7\p@ \@plus 2\p@` spelling too), and a page fixture
|
||||
shows a display near the page goal moving to the next page with pdfLaTeX.
|
||||
|
||||
### P3 — `\halign` / `\valign` (L2)
|
||||
|
||||
|
||||
Reference in new issue
Block a user