aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWandmalfarbe <Wandmalfarbe@users.noreply.github.com>2018-08-25 18:55:17 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2018-08-25 09:55:17 -0700
commitdac85d683feb6f9f7e12b9273f353a1291171cd1 (patch)
tree60c6c7b9a342875bb9aa2e6c100af5c73e7d9f51
parent347242f5308cda8431045c5112967c49293b21ff (diff)
downloadpandoc-dac85d683feb6f9f7e12b9273f353a1291171cd1.tar.gz
Add support for $toc-title$ to LaTeX (and PDF). (#4853)
-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 4c68bfa86..0fb959fad 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, beamer)
+ opendocument, odt, docx, pptx, beamer, LaTeX)
`include-before`
: contents specified by `-B/--include-before-body` (may have
diff --git a/data/templates/default.latex b/data/templates/default.latex
index c2e32e006..23e47e6ce 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -360,6 +360,9 @@ $include-before$
$endfor$
$if(toc)$
+$if(toc-title)$
+\renewcommand*\contentsname{$toc-title$}
+$endif$
$if(beamer)$
\begin{frame}
$if(toc-title)$