diff options
| author | josch <[email protected]> | 2025-03-15 01:54:06 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-03-14 18:54:06 -0700 |
| commit | 3f1f58e96e4eae82af44f1610806aa7c637a59d6 (patch) | |
| tree | c563064bd6fb83cf478080b3012a02a88d80bf61 /data | |
| parent | 4bf3a735f5eb9c31d3ab737ee89a21e87a1962d9 (diff) | |
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.
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/default.beamer | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/data/templates/default.beamer b/data/templates/default.beamer index b2eafaadf..d75d2542c 100644 --- a/data/templates/default.beamer +++ b/data/templates/default.beamer @@ -114,7 +114,9 @@ $if(subtitle)$ \subtitle$if(shortsubtitle)$[$shortsubtitle$]$endif${$subtitle$} $endif$ \author$if(shortauthor)$[$shortauthor$]$endif${$for(author)$$author$$sep$ \and $endfor$} +$if(date)$ \date$if(shortdate)$[$shortdate$]$endif${$date$} +$endif$ $if(institute)$ \institute$if(shortinstitute)$[$shortinstitute$]$endif${$for(institute)$$institute$$sep$ \and $endfor$} $endif$ |
