summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--template.tex9
2 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index aa017c5..30f355d 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ citeproc_file = $(stem).bib
templates = template.tex header.tex before.tex after.tex
-filters = ./pandoc-memoir ./pandoc-cs1 ./pandoc-todo
+filters = ./pandoc-cs1 ./pandoc-todo
filters += $(if $(citeproc_file),pandoc-citeproc)
filters += ./pandoc-iri
@@ -32,7 +32,7 @@ args_latex += --template=template.tex --latex-engine=xelatex
args_latex += -H header.tex -B before.tex -A after.tex
args_latex += -V mainfont="Lora" -V sansfont="Quattrocento Sans" -V monofont="Inconsolata"
args_latex += -V documentclass=memoir -V pagestyle=plain -V headstyles=komalike -V chapterstyle=ell
-args_latex += -V classoption=titlepage -V classoption=$(if $(final),final,draft)
+args_latex += -V matter=yes -V classoption=titlepage -V classoption=$(if $(final),final,draft)
flavors = a4 book ebook
args_a4 = -V papersize=a4paper -V fontsize=10pt -V classoption=oneside
args_book = -V papersize=b5paper -V fontsize=10pt -V classoption=twoside
diff --git a/template.tex b/template.tex
index 43aaaf3..56f904e 100644
--- a/template.tex
+++ b/template.tex
@@ -171,6 +171,9 @@ $endif$
$if(chapterstyle)$ % for documentclass memoir chapter headline styling
\chapterstyle{$chapterstyle$}
$endif$
+$if(matter)$
+\frontmatter
+$endif$
$if(title)$
\maketitle
$endif$
@@ -191,8 +194,14 @@ $if(toc)$
\tableofcontents
}
$endif$
+$if(matter)$
+\mainmatter
+$endif$
$body$
+$if(matter)$
+\backmatter
+$endif$
$if(natbib)$
$if(biblio-files)$
$if(biblio-title)$