summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@etraveli.com>2017-09-27 19:05:17 +0200
committerGustav Eek <gustav.eek@etraveli.com>2017-10-18 17:30:03 +0200
commitcb7ed171dde8cd527970429e77ff61c77435f3e3 (patch)
treeb9a88bab0c68d27d748f145cc1465af0eb1c6a86
parent5cf6256f593dc26513c29e606da78899b5110802 (diff)
[prsnts/common-goods] Makefile added that creates nice notes
The note/script printouts are made very nice with neat Latex formatting and the pdfinsert package.
-rw-r--r--presentations/common-goods/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/presentations/common-goods/Makefile b/presentations/common-goods/Makefile
new file mode 100644
index 0000000..a9a2ed9
--- /dev/null
+++ b/presentations/common-goods/Makefile
@@ -0,0 +1,34 @@
+notes = \
+ eek-2017-09-common-goods-notes-sv.pdf
+
+all: $(notes)
+
+%-notes-sv.pdf: script-sv.mdwn
+ pandoc -s -S -f markdown -t latex \
+ -V "classoption=a4paper,12pt" \
+ -V "geometry=paperwidth=.5\paperwidth,hmargin=8mm,top=10mm,bottom=15mm,includefoot" \
+ -o $(basename $<)_.pdf $<
+ echo '$(tex-includepdf-nup)' | pdflatex -jobname $(basename $@)
+ rm $(basename $<)_.pdf
+
+define tex-includepdf-nup
+\documentclass[a4paper, 11pt]{article}\
+\usepackage[a4paper, margin = 0pt]{geometry}\
+\usepackage{pdfpages}\
+\pagestyle{empty}\
+\begin{document}\
+\includepdf[pages = -, nup = 2x1]{$(basename $<)_.pdf}\
+\end{document}
+endef
+
+clean:
+ rm -f $(notes)
+ rm -f *.aux *.log
+ rm -f *.tex
+ rm -f *.pdf
+ rm -f *~
+
+
+
+SHELL = /bin/bash
+