diff --git a/news/changelog-1.10.md b/news/changelog-1.10.md index c2fcee0b8b8..9a0536b6955 100644 --- a/news/changelog-1.10.md +++ b/news/changelog-1.10.md @@ -2,6 +2,8 @@ ## In this release +- ([#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. + ## In previous releases - ([#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`. diff --git a/src/resources/formats/pdf/pandoc/template.tex b/src/resources/formats/pdf/pandoc/template.tex index 5ce3e586c35..00ba246571a 100644 --- a/src/resources/formats/pdf/pandoc/template.tex +++ b/src/resources/formats/pdf/pandoc/template.tex @@ -1,4 +1,12 @@ $document-metadata.latex()$ +$if(pdfstandard)$ +$-- KOMA-Script 3.49.3 aborts on \DocumentMetadata unless \komascript_documentmetadata_test: exists; +$-- a no-op keeps the 3.49.2 behaviour (#15143). The guard keeps a definition made earlier. +\ExplSyntaxOn +\cs_if_exist:NF \komascript_documentmetadata_test: + { \cs_new:Npn \komascript_documentmetadata_test: { } } +\ExplSyntaxOff +$endif$ % Options for packages loaded elsewhere $passoptions.latex()$ %