Remove empty pages before and after TOC

This commit is contained in:
2019-10-18 16:30:04 +02:00
parent 7b4f9c0833
commit 76d218240e
8 changed files with 8 additions and 102 deletions

View File

@@ -17,13 +17,7 @@ TARGET = $(DOC)/Project.pdf
## Auxiliary files
## (Do not change!)
TITLEPAGE = titlepage.tex
FRONTMATTER = frontmatter.tex
BACKMATTER = backmatter.tex
TMP1 = Assets/$(TITLEPAGE:%.tex=__%.filled.tex)
TMP2 = Assets/$(FRONTMATTER:%.tex=__%.filled.tex)
TMP3 = Assets/$(BACKMATTER:%.tex=__%.filled.tex)
TMP = $(TMP1) $(TMP2) $(TMP3)
TMP = Assets/$(TITLEPAGE:%.tex=__%.filled.tex)
## Pandoc options
@@ -35,9 +29,7 @@ OPTIONS += --filter=pandoc-citeproc
OPTIONS += --metadata-file=$(META)
OPTIONS += -M bibliography=$(BIBFILE)
OPTIONS += --listings
OPTIONS += --include-in-header=$(TMP1)
OPTIONS += --include-before-body=$(TMP2)
OPTIONS += --include-after-body=$(TMP3)
OPTIONS += --include-in-header=$(TMP)
## Template variables
@@ -82,11 +74,11 @@ distclean: clean
## Download template files
## Build thesis
${TARGET}: $(SRC) $(REFERENCES) $(META) $(BIBFILE) $(TMP)
$(PANDOC) ${OPTIONS} -o $@ $(SRC) $(REFERENCES)
${TARGET}: $(SRC) $(META) $(BIBFILE) $(TMP)
$(PANDOC) ${OPTIONS} -o $@ $(SRC)
## Build auxiliary files (title page, backmater, references)
## Build auxiliary files (title page, references)
$(TMP): Assets/__%.filled.tex: Assets/%.tex $(META)
$(PANDOC) $(AUX_OPTS) --template=$< --metadata-file=$(META) -o $@ $<