diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | after.tex | 1 | ||||
-rw-r--r-- | before.tex | 1 | ||||
-rw-r--r-- | header.tex | 2 |
5 files changed, 9 insertions, 2 deletions
@@ -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" \ @@ -14,7 +14,6 @@ Input (last checked 2014-12-21 22-39): * Extend credits to include authorship and licensing of layout. Processing: - * Handle draft/final switch, and fail on warnings when in draft mode. * Fix avoid section filter eating subsequent content. * use Header (not latex RawBlock) as header markup in section filter. * Refine bibliography regarding web sources and timestamp markup. diff --git a/after.tex b/after.tex new file mode 100644 index 0000000..dc76f6b --- /dev/null +++ b/after.tex @@ -0,0 +1 @@ +\listoffixmes diff --git a/before.tex b/before.tex new file mode 100644 index 0000000..80c29e2 --- /dev/null +++ b/before.tex @@ -0,0 +1 @@ +\fxfatal[layout=index,target=pandoc-filter]{don't eat foreword or 1st chapter} diff --git a/header.tex b/header.tex new file mode 100644 index 0000000..09535d7 --- /dev/null +++ b/header.tex @@ -0,0 +1,2 @@ +\usepackage{draftwatermark} +\usepackage{fixme} |