aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hodgson <[email protected]>2024-10-01 21:29:44 +0200
committerGitHub <[email protected]>2024-10-01 12:29:44 -0700
commitdbc80f9745cbace4e9ebc10e59d9df1c3eafa915 (patch)
treec7c0a1f9475a7cb7f0b9325fbb4f580fd8416e9d
parentf2b1de53973b4633f057d621d2c1a22a00914bda (diff)
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.
-rw-r--r--MANUAL.txt4
-rw-r--r--data/templates/default.beamer10
2 files changed, 9 insertions, 5 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index dc6ed3731..b58f2d619 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -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
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{