blob: afbac8d0ac82ff6ced9455bbd182e37d206c540f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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=5em \
-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/*
|