Skip to content

Commit

Permalink
Support short title, author, etc. in Beamer (#10244)
Browse files Browse the repository at this point in the history
+ Add `shorttitle`, `shortsubtitle`, `shortauthor`, `shortinstitute`, `shortdate`
   to default.beamer.
+ Note that the brackets are inside conditionals, because some older beamer
    versions don't allow the empty optional argument.

Closes #10248.
  • Loading branch information
twsh authored Oct 1, 2024
1 parent f2b1de5 commit dbc80f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions MANUAL.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2907,6 +2907,10 @@ These variables change the appearance of PDF slides using [`beamer`].
`titlegraphicoptions`
: options for title slide image

`shorttitle`, `shortsubtitle`, `shortauthor`, `shortinstitute`, `shortdate`
: some beamer themes use short versions of the title, subtitle, author,
institute, date

### Variables for PowerPoint

These variables control the visual aspects of a slide show that
Expand Down
10 changes: 5 additions & 5 deletions data/templates/default.beamer
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ $after-header-includes.latex()$
$hypersetup.latex()$

$if(title)$
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
\title$if(shorttitle)$[$shorttitle$]$endif${$title$$if(thanks)$\thanks{$thanks$}$endif$}
$endif$
$if(subtitle)$
\subtitle{$subtitle$}
\subtitle$if(shortsubtitle)$[$shortsubtitle$]$endif${$subtitle$}
$endif$
\author{$for(author)$$author$$sep$ \and $endfor$}
\date{$date$}
\author$if(shortauthor)$[$shortauthor$]$endif${$for(author)$$author$$sep$ \and $endfor$}
\date$if(shortdate)$[$shortdate$]$endif${$date$}
$if(institute)$
\institute{$for(institute)$$institute$$sep$ \and $endfor$}
\institute$if(shortinstitute)$[$shortinstitute$]$endif${$for(institute)$$institute$$sep$ \and $endfor$}
$endif$
$if(titlegraphic)$
\titlegraphic{
Expand Down

0 comments on commit dbc80f9

Please sign in to comment.