update submodule; enhance Makefile

This commit is contained in:
Martin Pépin 2016-04-11 14:22:52 +02:00
parent 8035f98127
commit d0257fea0e
3 changed files with 7 additions and 5 deletions

View File

@ -11,14 +11,16 @@ FILTERS = $(PY_FILTERS) $(HS_FILTERS) $(EXT_FILTERS)
all: $(HS_FILTERS) asciimath/pandoc-asciimath $(OUT)
$(OUT):
pandoc -S --toc -t latex $(basename $@).md $(addprefix --filter=, $(FILTERS)) -o $@
.SUFFIXES: .md .pdf
%.pdf: %.md
pandoc -S --toc -t latex $< $(addprefix --filter=, $(FILTERS)) -o $@
$(HS_FILTERS):
ghc --make $@.hs -o $@
asciimath/pandoc-asciimath:
(cd asciimath; make filter)
(cd asciimath; make)
clean:
rm -f $(OUT)

@ -1 +1 @@
Subproject commit 7de923080820749a89baa9af0e1f5dab5c1f72fd
Subproject commit a6345b7305ef46096647b9f60eb16a772c113e28

View File

@ -10,7 +10,7 @@ chapters: True
\pagebreak
# Asciimath
# AsciiMath example
Soit $n in NN$, alors on a
$$ sum_(k=1)^n k^3 = ((n(n+1))/2)^2 $$