Skip to content

Commit 4b9e8db

Browse files
authored
Merge pull request #12680 from quarto-dev/beamer/new-options
Beamer template update for new options
2 parents 7d2b828 + e0cb857 commit 4b9e8db

File tree

2 files changed

+37
-13
lines changed

2 files changed

+37
-13
lines changed

src/resources/formats/beamer/pandoc/template.tex

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,30 +72,26 @@
7272
\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}
7373
$endif$
7474
$if(colortheme)$
75-
\usecolortheme{$colortheme$}
75+
\usecolortheme[$for(colorthemeoptions)$$colorthemeoptions$$sep$,$endfor$]{$colortheme$}
7676
$endif$
7777
$if(fonttheme)$
78-
\usefonttheme{$fonttheme$}
78+
\usefonttheme[$for(fontthemeoptions)$$fontthemeoptions$$sep$,$endfor$]{$fonttheme$}
7979
$endif$
8080
$if(mainfont)$
8181
\usefonttheme{serif} % use mainfont rather than sansfont for slide text
8282
$endif$
8383
$if(innertheme)$
84-
\useinnertheme{$innertheme$}
84+
\useinnertheme[$for(innerthemeoptions)$$innerthemeoptions$$sep$,$endfor$]{$innertheme$}
8585
$endif$
8686
$if(outertheme)$
87-
\useoutertheme{$outertheme$}
87+
\useoutertheme[$for(outerthemeoptions)$$outerthemeoptions$$sep$,$endfor$]{$outertheme$}
8888
$endif$
8989
$font-settings.latex()$
9090
$common.latex()$
9191

9292
$after-header-includes.latex()$
9393
$hypersetup.latex()$
9494

95-
$if(nocite-ids)$
96-
\nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
97-
$endif$
98-
9995
$before-title.tex()$
10096

10197
$title.tex()$

src/resources/schema/document-options.yml

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,32 +274,60 @@
274274
schema: string
275275
tags:
276276
formats: [beamer]
277-
description: The Beamer color theme for this presentation.
277+
description: The Beamer color theme for this presentation, passed to `\usecolortheme`.
278+
279+
- name: colorthemeoptions
280+
schema:
281+
maybeArrayOf: string
282+
tags:
283+
formats: [beamer]
284+
description: The Beamer color theme options for this presentation, passed to `\usecolortheme`.
278285

279286
- name: fonttheme
280287
schema: string
281288
tags:
282289
formats: [beamer]
283-
description: The Beamer font theme for this presentation.
290+
description: The Beamer font theme for this presentation, passed to `\usefonttheme`.
291+
292+
- name: fontthemeoptions
293+
schema:
294+
maybeArrayOf: string
295+
tags:
296+
formats: [beamer]
297+
description: The Beamer font theme options for this presentation, passed to `\usefonttheme`.
284298

285299
- name: innertheme
286300
schema: string
287301
tags:
288302
formats: [beamer]
289-
description: The Beamer inner theme for this presentation.
303+
description: The Beamer inner theme for this presentation, passed to `\useinnertheme`.
304+
305+
- name: innerthemeoptions
306+
schema:
307+
maybeArrayOf: string
308+
tags:
309+
formats: [beamer]
310+
description: The Beamer inner theme options for this presentation, passed to `\useinnertheme`.
290311

291312
- name: outertheme
292313
schema: string
293314
tags:
294315
formats: [beamer]
295-
description: The Beamer outer theme for this presentation.
316+
description: The Beamer outer theme for this presentation, passed to `\useoutertheme`.
317+
318+
- name: outerthemeoptions
319+
schema:
320+
maybeArrayOf: string
321+
tags:
322+
formats: [beamer]
323+
description: The Beamer outer theme options for this presentation, passed to `\useoutertheme`.
296324

297325
- name: themeoptions
298326
schema:
299327
maybeArrayOf: string
300328
tags:
301329
formats: [beamer]
302-
description: Options passed to LaTeX Beamer themes.
330+
description: Options passed to LaTeX Beamer themes inside `\usetheme`.
303331

304332
- name: section
305333
schema: number

0 commit comments

Comments
 (0)