git.iko.soy/typeable/pandoc
on master help sign in
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`.

commit673d545016023fe68658c2f6063d1718290d735f authorAndrew Dunning <adunning@users.noreply.github.com> dateWed 23 Jan 2019, 13:31 (8 years ago) parent09b6dca
2 files changed+6−7
MANUAL.txt+4−4 data/templates/default.latex+2−3
MANUAL.txt+4−4
@@ -1370,10 +1370,6 @@ depending on the output format, but include the following:
13701370`subtitle`
13711371: document subtitle, included in HTML, EPUB, LaTeX, ConTeXt, and Word docx
13721372
1373−`institute`
1374−: author affiliations (in LaTeX and Beamer only). Can be a
1375− list, when there are multiple authors.
1376−
13771373`abstract`
13781374: document summary, included in LaTeX, ConTeXt, AsciiDoc, and Word docx
13791375
@@ -1453,6 +1449,10 @@ including all [reveal.js configuration options].
14531449`logo`
14541450: logo for Beamer documents
14551451
1452+`institute`
1453+: author affiliations in Beamer. Can be a
1454+ list when there are multiple authors.
1455+
14561456`slidy-url`
14571457: base URL for Slidy documents (defaults to
14581458 `https://www.w3.org/Talks/Tools/Slidy2`)
data/templates/default.latex+2−3
@@ -364,12 +364,11 @@ $endif$
364364$if(author)$
365365\author{$for(author)$$author$$sep$ \and $endfor$}
366366$endif$
367+\date{$date$}
368+$if(beamer)$
367369$if(institute)$
368−\providecommand{\institute}[1]{}
369370\institute{$for(institute)$$institute$$sep$ \and $endfor$}
370371$endif$
371−\date{$date$}
372−$if(beamer)$
373372$if(titlegraphic)$
374373\titlegraphic{\includegraphics{$titlegraphic$}}
375374$endif$