Use pandoc's --toc
option to generate TOC
This commit is contained in:
parent
ef33ff0205
commit
ec7d89b950
2
.gitignore
vendored
2
.gitignore
vendored
@ -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
|
||||||
|
|
||||||
|
2
Makefile
2
Makefile
@ -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 $@
|
||||||
|
Loading…
Reference in New Issue
Block a user