pdf plus jolis (Cantarell & co)

This commit is contained in:
Thomas NOËL 2015-02-27 23:21:31 +01:00
parent 5469046fca
commit 9b879dd29e
1 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,5 @@
PANDOC=pandoc
PANDOCFLAGS=--standalone --smart --toc -c pandoc.css
PANDOCFLAGS=--standalone --smart --toc --number-sections --latex-engine=xelatex --variable geometry=margin=3cm --variable lang=french --variable mainfont=Cantarell --variable fontsize=12pt -c pandoc.css
SRCS=$(wildcard *.md)
IMAGES=$(wildcard images/*.png)
PDFS=$(SRCS:%.md=%.pdf)
@ -13,12 +13,11 @@ index.html: $(SRCS) index.html.build
echo $(IMAGES)
sh ./index.html.build > index.html
%.pdf: %.md $(IMAGES)
$(PANDOC) $(PANDOCFLAGS) --latex-engine=xelatex --variable lang=french $< -o $@
%.pdf: %.md $(IMAGES) Makefile
$(PANDOC) $(PANDOCFLAGS) $< -o $@
%.tex: %.md
$(PANDOC) $(PANDOCFLAGS) --latex-engine=xelatex --variable lang=french $< -o $@
$(PANDOC) $(PANDOCFLAGS) $< -o $@
%.html: %.md
$(PANDOC) $(PANDOCFLAGS) $< -o $@