Skip to content

[backport] Fix pdf-standard with KOMA classes under KOMA-Script 3.49.3 - #15158

Merged
cderv merged 2 commits into
v1.10from
backport/15143
Oct 22, 2026
Merged

cderv merged 2 commits into
v1.10from
backport/15143

Conversation

@cderv

@cderv cderv commented Oct 22, 2026

Copy link
Copy Markdown
Member

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! when pdf-standard is set, so a TeX Live update breaks all pdf-standard PDF 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):

  • referenced the GitHub issue this PR closes
  • updated the appropriate changelog in the PR
  • ensured the present test suite passes
  • added new tests
  • created a separate documentation PR in Quarto's website repo and linked it to this PR
AI-assisted PR
  • AI tool used: Claude Code
  • Codebase grounding: local clone
  • Human review: I have reviewed, tested, and verified the AI-generated content before submitting.

Note: autonomous AI agents submitting PRs without human oversight are not permitted — see the Code of Conduct.

cderv added 2 commits October 22, 2026 14:58
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)
@posit-snyk-bot

posit-snyk-bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cderv
cderv merged commit 8a2fa52 into v1.10 Oct 22, 2026
44 checks passed
@cderv
cderv deleted the backport/15143 branch October 22, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants