From d0257fea0e245fea373baf47621c4bc6ae60fb53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Mon, 11 Apr 2016 14:22:52 +0200 Subject: [PATCH] update submodule; enhance Makefile --- Makefile | 8 +++++--- asciimath | 2 +- notes.md | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4c73b03..0112f6e 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/asciimath b/asciimath index 7de9230..a6345b7 160000 --- a/asciimath +++ b/asciimath @@ -1 +1 @@ -Subproject commit 7de923080820749a89baa9af0e1f5dab5c1f72fd +Subproject commit a6345b7305ef46096647b9f60eb16a772c113e28 diff --git a/notes.md b/notes.md index 65ebfe3..0953d9d 100644 --- a/notes.md +++ b/notes.md @@ -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 $$