From aff048ff279cbc9015fca16fb818808bc60747c7 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Thu, 13 Mar 2025 12:15:30 +0100 Subject: [PATCH] data/templates/default.beamer: only emit \date if set 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. --- data/templates/default.beamer | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/templates/default.beamer b/data/templates/default.beamer index b2eafaadf9f7..d75d2542ce8d 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$