Skip to content

Commit ec53d35

Browse files
authored
Keep KOMA classes working with pdf-standard under KOMA-Script 3.49.3 (#15154)
KOMA-Script 3.49.3 turns the \DocumentMetadata check into a fatal error for scrartcl, scrreprt and scrbook without tagging support, so every pdf-standard PDF render failed once TeX Live shipped the new release. Quarto now defines KOMA's documented replacement hook \komascript_documentmetadata_test: as a no-op after \DocumentMetadata, restoring the 3.49.2 behaviour with no change to class or layout. Non-KOMA classes never read the macro. - Define the no-op hook in the pdf-standard template, guarded so an existing definition is kept - Leave document-metadata.latex unchanged so it still matches Pandoc's partial See #14422 for KOMA classes not tagging sectioning commands. Fixes #15143
1 parent 517944d commit ec53d35

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎news/changelog-1.11.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All changes included in 1.11:
88
- ([#14857](https://github.com/quarto-dev/quarto-cli/issues/14857)): Fix `quarto install chrome-headless-shell` (and `quarto install chromium`) failing with a 404 on Linux arm64 due to a stale Playwright CDN URL.
99
- ([#14946](https://github.com/quarto-dev/quarto-cli/issues/14946)): Fix `revealjs` and `dashboard` logos resolving to broken paths in documents in a project subdirectory when the project has a brand (regression introduced in v1.8.22). Logo paths are now always relative to the document; a project-relative logo path in a website with a brand still works but prints a deprecation warning.
1010
- ([#14993](https://github.com/quarto-dev/quarto-cli/issues/14993)): Fix Typst output dropping a brand font from a `font-family` list when another document in the same directory or project was rendered first with different brand fonts.
11+
- ([#15143](https://github.com/quarto-dev/quarto-cli/issues/15143)): Fix PDF rendering with `pdf-standard` failing with `\DocumentMetadata not supported!` after updating to KOMA-Script 3.49.3, which provides the default document classes.
1112

1213
## Dependencies
1314

‎src/resources/formats/pdf/pandoc/template.tex‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
$document-metadata.latex()$
2+
$if(pdfstandard)$
3+
$-- KOMA-Script 3.49.3 aborts on \DocumentMetadata unless \komascript_documentmetadata_test: exists;
4+
$-- a no-op keeps the 3.49.2 behaviour (#15143). The guard keeps a definition made earlier.
5+
\ExplSyntaxOn
6+
\cs_if_exist:NF \komascript_documentmetadata_test:
7+
{ \cs_new:Npn \komascript_documentmetadata_test: { } }
8+
\ExplSyntaxOff
9+
$endif$
210
% Options for packages loaded elsewhere
311
$passoptions.latex()$
412
%

0 commit comments

Comments
 (0)