diff --git a/news/changelog-1.8.md b/news/changelog-1.8.md index 21d8dfe93c..f305358056 100644 --- a/news/changelog-1.8.md +++ b/news/changelog-1.8.md @@ -25,6 +25,7 @@ All changes included in 1.8: ### `typst` - ([#12554](https://github.com/quarto-dev/quarto-cli/pull/12554)): CSS properties `font-weight` and `font-style` are translated to Typst `text` properties. +- ([#12739](https://github.com/quarto-dev/quarto-cli/pull/12739)): Remove unused variable `heading-background-color` and `heading-decoration` from Typst's templates. They are leftover from previous change, and not part of Brand.yml schema for typography of headings. ## Projects diff --git a/src/resources/create/extensions/format-typst/_extensions/qstart-filesafename-qend/typst-show.typ b/src/resources/create/extensions/format-typst/_extensions/qstart-filesafename-qend/typst-show.typ index 84a8fe3e8c..1c8649660f 100644 --- a/src/resources/create/extensions/format-typst/_extensions/qstart-filesafename-qend/typst-show.typ +++ b/src/resources/create/extensions/format-typst/_extensions/qstart-filesafename-qend/typst-show.typ @@ -69,9 +69,6 @@ $endif$ $if(brand.typography.headings.style)$ heading-style: "$brand.typography.headings.style$", $endif$ -$if(brand.typography.headings.decoration)$ - heading-decoration: "$brand.typography.headings.decoration$", -$endif$ $if(brand.typography.headings.color)$ heading-color: $brand.typography.headings.color$, $endif$ diff --git a/src/resources/create/extensions/format-typst/_extensions/qstart-filesafename-qend/typst-template.typ b/src/resources/create/extensions/format-typst/_extensions/qstart-filesafename-qend/typst-template.typ index 2d167de39c..5f672495b6 100644 --- a/src/resources/create/extensions/format-typst/_extensions/qstart-filesafename-qend/typst-template.typ +++ b/src/resources/create/extensions/format-typst/_extensions/qstart-filesafename-qend/typst-template.typ @@ -55,8 +55,7 @@ align(center)[#block(inset: 2em)[ #set par(leading: heading-line-height) #if (heading-family != none or heading-weight != "bold" or heading-style != "normal" - or heading-color != black or heading-decoration == "underline" - or heading-background-color != none) { + or heading-color != black) { set text(font: heading-family, weight: heading-weight, style: heading-style, fill: heading-color) text(size: title-size)[#title] if subtitle != none { diff --git a/src/resources/formats/typst/pandoc/quarto/typst-show.typ b/src/resources/formats/typst/pandoc/quarto/typst-show.typ index d984bc327e..d87371e129 100644 --- a/src/resources/formats/typst/pandoc/quarto/typst-show.typ +++ b/src/resources/formats/typst/pandoc/quarto/typst-show.typ @@ -55,9 +55,6 @@ $endif$ $if(brand.typography.headings.style)$ heading-style: "$brand.typography.headings.style$", $endif$ -$if(brand.typography.headings.decoration)$ - heading-decoration: "$brand.typography.headings.decoration$", -$endif$ $if(brand.typography.headings.color)$ heading-color: $brand.typography.headings.color$, $endif$ diff --git a/src/resources/formats/typst/pandoc/quarto/typst-template.typ b/src/resources/formats/typst/pandoc/quarto/typst-template.typ index ad3b0ebb6e..f8b4683d7c 100644 --- a/src/resources/formats/typst/pandoc/quarto/typst-template.typ +++ b/src/resources/formats/typst/pandoc/quarto/typst-template.typ @@ -44,8 +44,7 @@ align(center)[#block(inset: 2em)[ #set par(leading: heading-line-height) #if (heading-family != none or heading-weight != "bold" or heading-style != "normal" - or heading-color != black or heading-decoration == "underline" - or heading-background-color != none) { + or heading-color != black) { set text(font: heading-family, weight: heading-weight, style: heading-style, fill: heading-color) text(size: title-size)[#title] if subtitle != none {