Use pandoc's --toc option to generate TOC

This commit is contained in:
Kerl13 2016-03-25 18:05:23 +01:00
parent ef33ff0205
commit ec7d89b950
3 changed files with 3 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,6 +1,8 @@
*.pandoc.pdf *.pandoc.pdf
*.pdf
dist/ dist/
filters/*.hi filters/*.hi
filters/*.o filters/*.o
filters/usual-fun filters/usual-fun
filters/nice-frac filters/nice-frac

View File

@ -14,7 +14,7 @@ FILTERS = $(PY_FILTERS) $(HS_FILTERS) $(EXT_FILTERS)
all: $(HS_FILTERS) $(OUT) all: $(HS_FILTERS) $(OUT)
$(OUT): $(OUT):
pandoc -S -t latex $(basename $@).md $(addprefix --filter=, $(FILTERS)) -o $@ pandoc -S --toc -t latex $(basename $@).md $(addprefix --filter=, $(FILTERS)) -o $@
$(HS_FILTERS): $(HS_FILTERS):
ghc --make $@.hs -o $@ ghc --make $@.hs -o $@

View File

@ -12,7 +12,6 @@ header-includes:
cref: True cref: True
chapters: True chapters: True
--- ---
\tableofcontents
\pagebreak \pagebreak