diff options
author | nunzip <np_scarh@e4-pattern-vm.europe-west4-a.c.electric-orbit-223819.internal> | 2018-12-05 18:52:27 +0000 |
---|---|---|
committer | nunzip <np_scarh@e4-pattern-vm.europe-west4-a.c.electric-orbit-223819.internal> | 2018-12-05 18:52:27 +0000 |
commit | 60189ef2705ea441cadff4afd63fe396edb6550a (patch) | |
tree | c011ef17475ff5f89e4a81f28b2d75fcadbc4bb6 /report2/makefile | |
parent | 48ac66ef7f26a4d503e5850af1ee2ad345fd6dc7 (diff) | |
download | vz215_np1915-60189ef2705ea441cadff4afd63fe396edb6550a.tar.gz vz215_np1915-60189ef2705ea441cadff4afd63fe396edb6550a.tar.bz2 vz215_np1915-60189ef2705ea441cadff4afd63fe396edb6550a.zip |
Set up report structure
Diffstat (limited to 'report2/makefile')
-rwxr-xr-x | report2/makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/report2/makefile b/report2/makefile new file mode 100755 index 0000000..4af6952 --- /dev/null +++ b/report2/makefile @@ -0,0 +1,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\pagenumbering{gobble}' > 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/cw1_vz215_np1915.pdf +pdf: + pandoc -o $(OUTPUT)/paper.pdf $(FLAGS) $(FLAGS_PDF) $(FILES) + +clean: + rm build/* + |