Reserve title footnote space on the first page
This commit is contained in:
1 parent
09781d40e9
commit
9dc1f59f8e
4 files changed
+84
-3
No files matched your search
@@ -76,6 +76,7 @@ fn hello_compiles_to_pdf() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
fn arxiv_fixture_is_three_letter_pages() {
|
||||
let path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("fixtures")
|
||||
@@ -98,6 +99,12 @@ fn arxiv_fixture_is_three_letter_pages() {
|
||||
assert!(first_page.contains("REPRINT"), "missing undertitle");
|
||||
assert!(first_page.contains("Hippocampus"), "missing author column");
|
||||
assert!(first_page.contains("October"), "missing date");
|
||||
let body_y = text_y(&first_page, "See");
|
||||
let note_y = text_y(&first_page, "Use");
|
||||
assert!(
|
||||
note_y > body_y + 4.0,
|
||||
"title footnote must reserve space below the body: {body_y} vs {note_y}"
|
||||
);
|
||||
let third_page = page_svg(&value, 2);
|
||||
let entry_x = text_x(&third_page, "Geor");
|
||||
let continuation_x = text_x(&third_page, "Recognition");
|
||||
|
||||
Reference in new issue
Block a user