Skip to content

Commit 0f40b34

Browse files
authored
Add regression test for Beamer logooptions passthrough (#14717)
Pandoc 3.10 added a logooptions template variable for Beamer's \logo{} command, already plumbed through Quarto's customized title.tex during the 3.10 template resync but with no test coverage.
1 parent d882f02 commit 0f40b34

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "Test"
3+
format:
4+
beamer:
5+
logo: logo.png
6+
logooptions: [width=1cm]
7+
# this is needed to not trigger the pdf recipe
8+
output-ext: tex
9+
_quarto:
10+
tests:
11+
beamer:
12+
ensureFileRegexMatches:
13+
-
14+
# logooptions applied to the logo's includegraphics
15+
- '\\logo\{\\includegraphics\[width=1cm\]\{logo\.png\}\}'
16+
-
17+
# must NOT fall back to the bare, no-options form
18+
- '\\logo\{\\includegraphics\{logo\.png\}\}'
19+
---
20+
21+
## Quarto
22+
23+
Guards Pandoc 3.10's `logooptions` template variable passthrough for Beamer's
24+
`\logo{}` command (`src/resources/formats/beamer/pandoc/title.tex`), reachable
25+
today via freeform YAML metadata with no dedicated schema key.

0 commit comments

Comments
 (0)