summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-12-22 09:16:35 +0100
committerJonas Smedegaard <dr@jones.dk>2014-12-22 09:16:35 +0100
commitf8955236b96711e609e3f2eb5d95998de4812755 (patch)
treef7bea38c8b8b364029dc26a5a51e7c6ba9e3b1b2 /Makefile
parent393da4bf5eac7b21cfd92406034d297a10e3cae2 (diff)
Add section and bibliography filters.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d1f0ca5..1cd26e5 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,9 @@ source_basename = EUT/2nd-edition
# work around in mediawiki bug parsing blockquote tags on same line
re_blockquote = s|\n*(</?blockquote>)\n*|\n$$1\n|g
+export PANDOC_CITEPROC_FILE = $(stem).bib
+#PANDOC_CITEPROC_FILE = $(stem).bib
+
all: $(stem).pdf
download:
@@ -21,7 +24,8 @@ $(stem).mediawiki: $(stem).raw
$(stem).pdf: $(stem).mediawiki template.tex
pandoc -f mediawiki --template=template.tex --latex-engine=xelatex \
- --toc \
+ --filter ./pandoc-filter-sections --filter ./pandoc-filter-bib \
+ --bibliography=$(PANDOC_CITEPROC_FILE) \
-V papersize=a4paper -V fontsize=11pt \
-V documentclass=memoir -V chapterstyle=demo3 \
-V classoption=oneside -V classoption=titlepage -V classoption=twocolumn \