blob: 03a10e170c180d5cee07ce8656fc282892e34111 (
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=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/*
|