Skip to content

Commit

Permalink
LaTeX template: Restrict institute to Beamer (#5219)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
adunning authored and jgm committed Jan 23, 2019
1 parent 09b6dca commit 673d545
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions MANUAL.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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`)
Expand Down
5 changes: 2 additions & 3 deletions data/templates/default.latex
Original file line number Diff line number Diff line change
Expand Up @@ -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$
Expand Down

0 comments on commit 673d545

Please sign in to comment.