Place the page body below geometry's top margin
The geometry package's top/bottom margins were only used to derive a text height; the laid-out body still started at the very top of the sheet, so the arXiv template's 1in top margin was ignored and text sat on the paper edge. Record top/bottom margins on PageGeometry and add the top margin to the page body's vertical offset, which both the SVG preview and the PDF writer honour; the page number and footer baseline move with the body. An explicit textheight still wins over the margin-derived one. The arXiv template's first baseline now sits at 1in + 12pt, still with zero warnings in two pages. Unit tests cover the margin parse/derive and a preview whose first baseline shifts by exactly one inch.
This commit is contained in:
1 parent
21d48866de
commit
7a615a8639
3 files changed
+50
-4
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`). 975 workspace tests are green and no oracle
|
||||
PDF opt-in with `?engine=route-d`). 977 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.
|
||||
@@ -387,7 +387,9 @@ commands are kept for the native section parser instead of expanding their class
|
||||
redefinitions, `\keywords` becomes a plain paragraph, `\lipsum[n]` expands to
|
||||
filler text, comments and external `\bibliography` commands are dropped, and a
|
||||
`center`/`flushleft`/`flushright` environment that follows text starts its own
|
||||
block. Class files are still mapped semantically rather than executed by a VM.
|
||||
block, and `geometry`'s `top`/`bottom` margins offset the page body (the arXiv
|
||||
first baseline is at 1in + 12pt) while an explicit `textheight` wins over the
|
||||
margins. Class files are still mapped semantically rather than executed by a VM.
|
||||
|
||||
### P7 — Service and incrementality
|
||||
|
||||
|
||||
Reference in new issue
Block a user