Skip to content

Commit 7439715

Browse files
claude: Fix latex-ua1-filtered test expectations
The test expected both standards (a-2b, ua-1) to appear in DocumentMetadata, but quarto filters out unsupported standards before passing to pandoc. Updated test to expect only the supported standard (a-2b) in the output. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1ad254f commit 7439715

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/docs/smoke-all/pdf-standard/latex-ua1-filtered.qmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ _quarto:
1212
pdf:
1313
noErrors: default
1414
ensureLatexFileRegexMatches:
15-
# LaTeX receives ua-1 in pdfstandard (it accepts it syntactically)
16-
- ['\\DocumentMetadata\{', 'pdfstandard=\{a-2b,ua-1\}', 'tagging=on']
15+
# Quarto filters out unsupported ua-1, only a-2b is passed to LaTeX
16+
- ['\\DocumentMetadata\{', 'pdfstandard=\{a-2b\}']
1717
- []
1818
printsMessage:
1919
# ua-1 should be warned about as unsupported
2020
level: WARN
2121
regex: "PDF standard 'ua-1' is not supported by LaTeX"
2222
---
2323

24-
# Test: LaTeX Filters Unsupported Standards from Validation
24+
# Test: Quarto Filters Unsupported Standards
2525

2626
This test verifies that when `pdf-standard: [a-2b, ua-1]` is specified:
2727

28-
1. LaTeX receives both standards in `\DocumentMetadata{pdfstandard={a-2b,ua-1}}`
29-
2. A warning is emitted that ua-1 is not supported by LaTeX
28+
1. Quarto warns that ua-1 is not supported by LaTeX
29+
2. Only supported standards (a-2b) are passed to LaTeX in `\DocumentMetadata{pdfstandard={a-2b}}`
3030
3. verapdf validates ONLY against a-2b (not ua-1)
31-
4. The render succeeds because we don't try to validate unsupported standards
31+
4. The render succeeds because unsupported standards are filtered out
3232

3333
Without filtering, verapdf would fail because the PDF isn't actually PDF/UA-1 compliant
3434
(LaTeX only supports ua-2 for PDF/UA).

0 commit comments

Comments
 (0)