diff options
author | Andrew Dunning <adunning@users.noreply.github.com> | 2019-01-23 13:31:26 -0500 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-01-23 10:31:26 -0800 |
commit | 673d545016023fe68658c2f6063d1718290d735f (patch) | |
tree | 5c732b8b1b556e148a660b7267bda69288b7a47f | |
parent | 09b6dca763b1c213d1b06e6cecd21af9c03e7db7 (diff) | |
download | pandoc-673d545016023fe68658c2f6063d1718290d735f.tar.gz |
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`.
-rw-r--r-- | MANUAL.txt | 8 | ||||
-rw-r--r-- | data/templates/default.latex | 5 |
2 files changed, 6 insertions, 7 deletions
diff --git a/MANUAL.txt b/MANUAL.txt index ca2c5ea7f..3823f3eb6 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -1370,10 +1370,6 @@ depending on the output format, but include the following: `subtitle` : document subtitle, included in HTML, EPUB, LaTeX, ConTeXt, and Word docx -`institute` -: author affiliations (in LaTeX and Beamer only). Can be a - list, when there are multiple authors. - `abstract` : document summary, included in LaTeX, ConTeXt, AsciiDoc, and Word docx @@ -1453,6 +1449,10 @@ including all [reveal.js configuration options]. `logo` : logo for Beamer documents +`institute` +: author affiliations in Beamer. Can be a + list when there are multiple authors. + `slidy-url` : base URL for Slidy documents (defaults to `https://www.w3.org/Talks/Tools/Slidy2`) 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$ |