Put the page number in the header for headings style

\pagestyle{headings} and {myheadings} were ignored, leaving the number in the
footer. The parser now records the headings styles; the running-head pass paints
a right-aligned 9pt page number at the head baseline on pages after the first
(LaTeX's plain first page), and the footer number is skipped for those styles.
Section titles in the header are still not modelled.

A two-page preview test checks "2" sits above the body on page 2, right-aligned
past x=400, with no warnings.
This commit is contained in:
gloamxun committed 2026-10-27 02:38:26 +08:00
1 parent 9f642a2bbd
commit 22d5332658
4 files changed
+63 -9

No files matched your search

+2 -2
View File
@@ -14,12 +14,12 @@ cargo fmt --all -- --check
cargo test --workspace --offline
```
The workspace currently passes **1031 tests**:
The workspace currently passes **1032 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 437 |
| engine binary unit | 402 |
| engine binary unit | 403 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |