diff --git a/news/changelog-1.7.md b/news/changelog-1.7.md index 0e2e00ba705..5beb56c0863 100644 --- a/news/changelog-1.7.md +++ b/news/changelog-1.7.md @@ -2,6 +2,7 @@ ## In this release +- ([#6607](https://github.com/quarto-dev/quarto-cli/issues/6607)): Add missing beamer template update for beamer theme options: `colorthemeoptions`, `fontthemeoptions`, `innerthemeoptions` and `outerthemeoptions`. - ([#12625](https://github.com/quarto-dev/quarto-cli/pull/12625)): Fire resize event on window when light/dark toggle is clicked, to tell widgets to resize. - ([#12657](https://github.com/quarto-dev/quarto-cli/pull/12657)): Load Giscus in generated script tag, to avoid wrong-theming in Chrome. diff --git a/src/resources/formats/beamer/pandoc/template.tex b/src/resources/formats/beamer/pandoc/template.tex index 65883182679..3205847a524 100644 --- a/src/resources/formats/beamer/pandoc/template.tex +++ b/src/resources/formats/beamer/pandoc/template.tex @@ -72,19 +72,19 @@ \usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$} $endif$ $if(colortheme)$ -\usecolortheme{$colortheme$} +\usecolortheme[$for(colorthemeoptions)$$colorthemeoptions$$sep$,$endfor$]{$colortheme$} $endif$ $if(fonttheme)$ -\usefonttheme{$fonttheme$} +\usefonttheme[$for(fontthemeoptions)$$fontthemeoptions$$sep$,$endfor$]{$fonttheme$} $endif$ $if(mainfont)$ \usefonttheme{serif} % use mainfont rather than sansfont for slide text $endif$ $if(innertheme)$ -\useinnertheme{$innertheme$} +\useinnertheme[$for(innerthemeoptions)$$innerthemeoptions$$sep$,$endfor$]{$innertheme$} $endif$ $if(outertheme)$ -\useoutertheme{$outertheme$} +\useoutertheme[$for(outerthemeoptions)$$outerthemeoptions$$sep$,$endfor$]{$outertheme$} $endif$ $font-settings.latex()$ $common.latex()$ @@ -92,10 +92,6 @@ $after-header-includes.latex()$ $hypersetup.latex()$ -$if(nocite-ids)$ -\nocite{$for(nocite-ids)$$it$$sep$, $endfor$} -$endif$ - $before-title.tex()$ $title.tex()$ diff --git a/src/resources/schema/document-options.yml b/src/resources/schema/document-options.yml index 5170a8ac705..6a318ccd541 100644 --- a/src/resources/schema/document-options.yml +++ b/src/resources/schema/document-options.yml @@ -274,32 +274,60 @@ schema: string tags: formats: [beamer] - description: The Beamer color theme for this presentation. + description: The Beamer color theme for this presentation, passed to `\usecolortheme`. + +- name: colorthemeoptions + schema: + maybeArrayOf: string + tags: + formats: [beamer] + description: The Beamer color theme options for this presentation, passed to `\usecolortheme`. - name: fonttheme schema: string tags: formats: [beamer] - description: The Beamer font theme for this presentation. + description: The Beamer font theme for this presentation, passed to `\usefonttheme`. + +- name: fontthemeoptions + schema: + maybeArrayOf: string + tags: + formats: [beamer] + description: The Beamer font theme options for this presentation, passed to `\usefonttheme`. - name: innertheme schema: string tags: formats: [beamer] - description: The Beamer inner theme for this presentation. + description: The Beamer inner theme for this presentation, passed to `\useinnertheme`. + +- name: innerthemeoptions + schema: + maybeArrayOf: string + tags: + formats: [beamer] + description: The Beamer inner theme options for this presentation, passed to `\useinnertheme`. - name: outertheme schema: string tags: formats: [beamer] - description: The Beamer outer theme for this presentation. + description: The Beamer outer theme for this presentation, passed to `\useoutertheme`. + +- name: outerthemeoptions + schema: + maybeArrayOf: string + tags: + formats: [beamer] + description: The Beamer outer theme options for this presentation, passed to `\useoutertheme`. - name: themeoptions schema: maybeArrayOf: string tags: formats: [beamer] - description: Options passed to LaTeX Beamer themes. + description: Options passed to LaTeX Beamer themes inside `\usetheme`. - name: section schema: number