FILES = paper.md \ metadata.yaml OUTPUT = build FLAGS = --bibliography=bibliography.bib \ --csl=bibliography.csl \ -s \ -f markdown FLAGS_PDF = --template=template.latex all: pdf code code: echo '\small' > build/code.aux echo '~~~~ {.python .numberLinese}' >> build/code.aux cat ../train.py >> build/code.aux echo -n '~~~~' >> build/code.aux pandoc -V geometry:margin=3em \ -o build/code.pdf build/code.aux pdfjoin build/paper.pdf build/code.pdf -o build/paper+code.pdf pdf: pandoc -o $(OUTPUT)/paper.pdf $(FLAGS) $(FLAGS_PDF) $(FILES) clean: rm build/*