Preview the arXiv template without warnings
The archived class file expands \maketitle, \section and \keywords into LaTeX internals that route-D does not model, so the template's title block, headings and keywords were replaced by LaTeX machinery and 20+ control words reached layout. Keep \maketitle, \thanks and the heading commands out of generic macro expansion so the native title block and section parser see them; scrub the author metadata (\href labels, ORCID \includegraphics, text-style wrappers, line breaks and \And) into plain text; turn \keywords into a "Keywords: ..." paragraph; expand \lipsum[n]/[a-b] to filler paragraphs; drop `%` comments and external \bibliography/\bibliographystyle commands (an inline thebibliography still supplies References); and start a new block when center/flushleft/ flushright follows text on the same chunk. The arXiv fixture now previews with zero warnings in two pages, covered by a JSON-level regression test. Remaining class support is still semantic rather than a TeX VM.
This commit is contained in:
1 parent
1b7baa0257
commit
21d48866de
3 files changed
+371
-10
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`). 971 workspace tests are green and no oracle
|
||||
PDF opt-in with `?engine=route-d`). 975 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.
|
||||
@@ -381,6 +381,14 @@ Acceptance: `article.cls` at 10/11/12pt matches pdfLaTeX page count exactly;
|
||||
the journal class matches page count within one page and column geometry within
|
||||
1mm.
|
||||
|
||||
Progress: the arXiv template's class (`arxiv.sty`) previews with no warnings in
|
||||
two pages. `\title`/`\author`/`\thanks` stay on the native title path, heading
|
||||
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.
|
||||
|
||||
### P7 — Service and incrementality
|
||||
|
||||
Scope:
|
||||
|
||||
Reference in new issue
Block a user