Merge pull request #9 from Kerl13/master
Use pandoc's `--toc` option to generate TOC
This commit is contained in:
commit
ba6226d115
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,8 @@
|
||||
*.pandoc.pdf
|
||||
*.pdf
|
||||
dist/
|
||||
filters/*.hi
|
||||
filters/*.o
|
||||
filters/usual-fun
|
||||
filters/nice-frac
|
||||
|
||||
|
2
Makefile
2
Makefile
@ -14,7 +14,7 @@ FILTERS = $(PY_FILTERS) $(HS_FILTERS) $(EXT_FILTERS)
|
||||
all: $(HS_FILTERS) $(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):
|
||||
ghc --make $@.hs -o $@
|
||||
|
Loading…
Reference in New Issue
Block a user