Skip to content

Commit 3f1f58e

Browse files
authored
Default beamer template: only emit \date if set (#10687)
This allows one, for example, to set a custom \date in the header-includes of the rmarkdown yaml frontmatter. Without this conditional, the custom \date in the frontmatter would be overridden by a (potentially empty) date from this template later.
1 parent 4bf3a73 commit 3f1f58e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

data/templates/default.beamer

+2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ $if(subtitle)$
114114
\subtitle$if(shortsubtitle)$[$shortsubtitle$]$endif${$subtitle$}
115115
$endif$
116116
\author$if(shortauthor)$[$shortauthor$]$endif${$for(author)$$author$$sep$ \and $endfor$}
117+
$if(date)$
117118
\date$if(shortdate)$[$shortdate$]$endif${$date$}
119+
$endif$
118120
$if(institute)$
119121
\institute$if(shortinstitute)$[$shortinstitute$]$endif${$for(institute)$$institute$$sep$ \and $endfor$}
120122
$endif$

0 commit comments

Comments
 (0)