aboutsummaryrefslogtreecommitdiff
path: root/report/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'report/makefile')
-rwxr-xr-xreport/makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/report/makefile b/report/makefile
index 6359a42..afbac8d 100755
--- a/report/makefile
+++ b/report/makefile
@@ -10,8 +10,16 @@ FLAGS = --bibliography=bibliography.bib \
FLAGS_PDF = --template=template.latex
-all: pdf
+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)