aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2018-08-15 18:58:17 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2018-08-15 09:58:17 -0700
commit2ae82727546c1a989148b0ca34ae35fd2158cee6 (patch)
treeb6663a22901a41b078499a646b4e45009aea8a13
parente44815a9ee20e6903ff2b91d0de9cf15c6dc5467 (diff)
downloadpandoc-2ae82727546c1a989148b0ca34ae35fd2158cee6.tar.gz
Support "toc-title" in the beamer template. (#4835)
It is a bit awkward to have a title for every frame, but not for the one that holds the table of contents. Allow users to specify a title if they wish.
-rw-r--r--MANUAL.txt2
-rw-r--r--data/templates/default.latex3
2 files changed, 4 insertions, 1 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index 4db1679d4..3e0e92452 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -1352,7 +1352,7 @@ depending on the output format, but include the following:
`toc-title`
: title of table of contents (works only with EPUB,
- opendocument, odt, docx, pptx)
+ opendocument, odt, docx, pptx, beamer)
`include-before`
: contents specified by `-B/--include-before-body` (may have
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 4d1eeb56a..795b6c868 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -361,6 +361,9 @@ $endfor$
$if(toc)$
$if(beamer)$
\begin{frame}
+$if(toc-title)$
+\frametitle{$toc-title$}
+$endif$
\tableofcontents[hideallsubsections]
\end{frame}
$else$