From 673d545016023fe68658c2f6063d1718290d735f Mon Sep 17 00:00:00 2001 From: Andrew Dunning Date: Wed, 23 Jan 2019 13:31:26 -0500 Subject: LaTeX template: Restrict `institute` to Beamer (#5219) The `\institute` command is only standard in the Beamer class. Use a conditional to restrict this to Beamer output rather than output an empty command. To add this information to a LaTeX class providing an `\institute` command, use `header-includes`. --- data/templates/default.latex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'data') diff --git a/data/templates/default.latex b/data/templates/default.latex index f37af0a2a..519effca9 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -364,12 +364,11 @@ $endif$ $if(author)$ \author{$for(author)$$author$$sep$ \and $endfor$} $endif$ +\date{$date$} +$if(beamer)$ $if(institute)$ -\providecommand{\institute}[1]{} \institute{$for(institute)$$institute$$sep$ \and $endfor$} $endif$ -\date{$date$} -$if(beamer)$ $if(titlegraphic)$ \titlegraphic{\includegraphics{$titlegraphic$}} $endif$ -- cgit v1.2.3