From 3f1f58e96e4eae82af44f1610806aa7c637a59d6 Mon Sep 17 00:00:00 2001 From: josch Date: Sat, 15 Mar 2025 01:54:06 +0000 Subject: 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. --- data/templates/default.beamer | 2 ++ 1 file changed, 2 insertions(+) (limited to 'data') 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$ -- cgit v1.2.3