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.
This commit is contained in:
Cyril Roelandt 2018-08-15 18:58:17 +02:00 committed by John MacFarlane
parent e44815a9ee
commit 2ae8272754
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -361,6 +361,9 @@ $endfor$
$if(toc)$
$if(beamer)$
\begin{frame}
$if(toc-title)$
\frametitle{$toc-title$}
$endif$
\tableofcontents[hideallsubsections]
\end{frame}
$else$