summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-12-22 23:34:26 +0100
committerJonas Smedegaard <dr@jones.dk>2014-12-22 23:36:02 +0100
commite5dc4445fa55694497f84264f3871256b67eab75 (patch)
tree89588c30190d95f0bf6da5417fc36f7b1ed506f7 /Makefile
parent4cf75cc7ac753a15a0bca3c513c12153eb00a4e1 (diff)
Handle draft/final status.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ba6c77d..a3b84a4 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,9 @@ re_blockquote = s|\n*(</?blockquote>)\n*|\n$$1\n|g
export PANDOC_CITEPROC_FILE = $(stem).bib
#PANDOC_CITEPROC_FILE = $(stem).bib
+# To produce final document: make -B STATUS=final
+STATUS ?= draft
+
all: $(stem).pdf
download:
@@ -24,12 +27,13 @@ $(stem).mediawiki: $(stem).raw
$(stem).pdf: $(stem).mediawiki template.tex
pandoc -f mediawiki --template=template.tex --latex-engine=xelatex \
+ -H header.tex -B before.tex -A after.tex \
--filter ./pandoc-filter-sections --filter ./pandoc-filter-bib \
--bibliography=$(PANDOC_CITEPROC_FILE) \
-V mainfont="Lora" -V sansfont="Quattrocento Sans" -V monofont="Inconsolata" \
-V papersize=a4paper -V fontsize=10pt \
-V documentclass=memoir -V headstyles=komalike -V chapterstyle=ell \
- -V classoption=oneside -V classoption=titlepage \
+ -V classoption=oneside -V classoption=titlepage -V classoption=$(STATUS) \
-V lang=english -V langoption=variant=british \
-V title="Ensuring utmost transparency" \
-V subtitle="Free Software and Open Standards under the Rules of Procedure of the European Parliament" \