From dbc80f9745cbace4e9ebc10e59d9df1c3eafa915 Mon Sep 17 00:00:00 2001 From: Thomas Hodgson Date: Tue, 1 Oct 2024 21:29:44 +0200 Subject: Support short title, author, etc. in Beamer (#10244) + 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. --- data/templates/default.beamer | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'data') diff --git a/data/templates/default.beamer b/data/templates/default.beamer index a3f667284..ddce9f749 100644 --- a/data/templates/default.beamer +++ b/data/templates/default.beamer @@ -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{ -- cgit v1.2.3