Repository navigation
[backport] Fix pdf-standard with KOMA classes under KOMA-Script 3.49.3 - #15158
Merged
Merged
Conversation
KOMA-Script 3.49.3 turned the 3.49.2 warning about \DocumentMetadata into a fatal error for every KOMA class (scrartcl, scrreprt, scrbook) that has no tagging support file. Quarto emits \DocumentMetadata whenever pdf-standard is set and defaults to scrartcl, so every pdf-standard PDF render fails once TeX Live ships the new KOMA-Script. KOMA documents \komascript_documentmetadata_test: as the hook packages and wrapper classes define before loading the class to replace this check. Defining it as a no-op right after \DocumentMetadata restores the 3.49.2 behaviour, i.e. what 1.9 and 1.10 produced, with no change in class or layout. The cs_if_exist guard keeps an existing definition. Non-KOMA classes never read the macro. Known tradeoff: this bypasses a deliberate KOMA check, and KOMA classes still do not tag sectioning commands (#14422); that is addressed separately. KOMA calls the hook provisional, so a later release may need a different approach. Fixes #15143 (cherry picked from commit 03c9314)
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Backport from #15154
Backport of the fix for #15143: KOMA-Script 3.49.3 aborts every KOMA class (
scrartcl,scrreprt,scrbook) with\DocumentMetadata not supported!whenpdf-standardis set, so a TeX Live update breaks allpdf-standardPDF renders. The template now defines the no-op\komascript_documentmetadata_test:hook KOMA documents for this case, which restores the pre-3.49.3 output.Checklist
I have (if applicable):
AI-assisted PR
Note: autonomous AI agents submitting PRs without human oversight are not permitted — see the Code of Conduct.