Cover structured SIVP front matter and body layout
This commit is contained in:
1 parent
fcbbbb0ab4
commit
77f672f156
2 files changed
+31
-2
No files matched your search
+2
-2
@@ -129,7 +129,7 @@ See `docs/ROADMAP.md` for concrete implementation plans.
|
||||
0.29 MB and `pdffonts` reports only embedded CID TrueType faces); this avoids
|
||||
viewer-dependent glyph substitution. Tables use natural column widths and
|
||||
centered rules; preview and PDF share the same table line coordinates.
|
||||
- `cargo fmt --check` passes; `cargo test --offline` (78 tests: 70 compiler
|
||||
- `cargo fmt --check` passes; `cargo test --offline` (79 tests: 71 compiler
|
||||
integration tests + 4 server tests + 4 unit tests) covers the three examples, the arXiv
|
||||
fixture, figure/table floats (top and bottom), newpage, page styles and `\thispagestyle`, SVG/PDF output,
|
||||
project API, static frontend assets, path traversal, the legacy
|
||||
@@ -138,7 +138,7 @@ See `docs/ROADMAP.md` for concrete implementation plans.
|
||||
|
||||
## Verification snapshot
|
||||
|
||||
- Compiler integration tests: 70; server tests: 4; unit tests: 4; total 78.
|
||||
- Compiler integration tests: 71; server tests: 4; unit tests: 4; total 79.
|
||||
- `cargo fmt --check` passes.
|
||||
- arXiv fixture: 3 Letter pages, ~0.29 MB; four serif faces and one monospace face embedded (bold/italic monospace falls back to the regular face). The bundled SubsetTTF faces are pyftsubset outputs with retained glyph ids and a filtered legacy kern table; a third 110-glyph ASCII/typographic tier is selected when the document charset fits.
|
||||
- Title/author/date/Introduction baselines within 0.3 pt of the XeLaTeX
|
||||
|
||||
@@ -1892,6 +1892,35 @@ fn geometry_text_sets_the_text_block() {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sivp_frontmatter_survives_the_journal_layout() {
|
||||
let fixture = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("..")
|
||||
.join("..")
|
||||
.join("projects")
|
||||
.join("_sivp__")
|
||||
.join("sn-article.tex");
|
||||
if !fixture.exists() {
|
||||
return;
|
||||
}
|
||||
let source = std::fs::read_to_string(&fixture).expect("read SIVP fixture");
|
||||
let value = fresh_preview(&source, "sn-article.tex");
|
||||
assert_eq!(value["status"], "ok");
|
||||
let first = page_svg(&value, 0);
|
||||
for needle in ["Wu", "Zhao", "Department", "Abstract", "Keywords"] {
|
||||
assert!(
|
||||
first.contains(&format!(">{needle}</text>")),
|
||||
"SIVP first page should contain {needle}: {}",
|
||||
&first[..first.len().min(300)]
|
||||
);
|
||||
}
|
||||
let body = page_svg(&value, 2);
|
||||
assert!(
|
||||
body.contains(">Vanilla</text>"),
|
||||
"SIVP body text should be laid out after the title block"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sivp_project_previews_and_exports_a_pdf() {
|
||||
let source = std::fs::read_to_string("projects/_sivp__/sn-article.tex").unwrap();
|
||||
|
||||
Reference in new issue
Block a user