Skip to content

Commit 8a2fa52

Browse files
authored
Merge pull request #15158 from quarto-dev/backport/15143
[backport] Fix pdf-standard with KOMA classes under KOMA-Script 3.49.3
1 parent 35f1a64 commit 8a2fa52

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎news/changelog-1.10.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## In this release
44

5+
- ([#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.
6+
57
## In previous releases
68

79
- ([#14920](https://github.com/quarto-dev/quarto-cli/issues/14920)): Correct the Windows ARM diagnostic for x64 R crashes with stable native ARM64 R installation guidance, including reinstalling packages and configuring `QUARTO_R`.

‎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)