Draw the rule body of fbox figures

Parse the first non-zero \rule{width}{height} in a figure without a decoded
image and use it as the float dimensions, so the arXiv sample gets its black
rule body instead of a caption-only float. The fbox frame and vector images are
still unsupported.

This changes the arXiv corpus preview to 3 pages, matching TeX; update the
corpus expectation. Test count stays 1073.
This commit is contained in:
gloamxun committed 2026-10-27 22:55:52 +08:00
1 parent 5c281d70cc
commit c5bf150449
2 files changed
+30 -2

No files matched your search

+1 -1
View File
@@ -2535,7 +2535,7 @@ fn corpus_documents_preview_without_warnings() {
"examples/hello.tex" => 1,
"examples/boxes.tex" => 1,
"examples/compat.tex" => 1,
"fixtures/arxiv-template/template.tex" => 2,
"fixtures/arxiv-template/template.tex" => 3,
other => panic!("unexpected corpus document {other}"),
};
assert_eq!(