aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-03-01 16:23:05 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-03-01 16:23:05 -0800
commitc26d7f1e36a682fdefab90e35b33e356d7365984 (patch)
treec3a9c48e6093d2374848fc7b473b81a00c9579fa
parent9f268bce85156e44de2e37990ad19e519b3f4ab7 (diff)
downloadpandoc-c26d7f1e36a682fdefab90e35b33e356d7365984.tar.gz
LaTeX template: Add \frontmatter, \mainmatter, \backmatter for book classes.
Closes #5306.
-rw-r--r--data/templates/default.latex9
1 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index bd089cd1c..aacb48bba 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -384,6 +384,9 @@ $endif$
\begin{document}
$if(title)$
+$if(book-class)$
+\frontmatter
+$endif$
$if(beamer)$
\frame{\titlepage}
$else$
@@ -427,8 +430,14 @@ $endif$
$if(lof)$
\listoffigures
$endif$
+$if(book-class)$
+\mainmatter
+$endif$
$body$
+$if(book-class)$
+\backmatter
+$endif$
$if(natbib)$
$if(bibliography)$
$if(biblio-title)$