# increase every time the generated Markdown is modified.
VERSION=20170609-2
-TEXLANGCODE=es
-
-#TEXLANGCODE=nb
-
# pandoc version 1.17.2~dfsg-3 do not understand
# --top-level-diversion, while version 1.19.2.4~dfsg-1+b3 do.
PANDOC_OPTS = \
# Replace Unicode Hair Space (U+200A) with space, as   is not
# handled by LaTeX/dblatex, see <URL: https://bugs.debian.org/889603 >.
%.tex: %.xml
- dblatex -t tex -b xetex $^
+ dblatex -T simple -t tex -b xetex -p extra/pdf.xsl $^
perl -p -i -e 's/\[latin1\]\{inputenc\}/[utf8]{inputenc}/; \
s/\\caption\\end/\\caption{} \\end/; \
s/ / /g; \
- s!\\maketitle!\\input{extra/$(TEXLANGCODE)/cover.tex}!; \
s/\\listoffigures//; \
s/\\chapter\{(Colophon|Dedication)\}/\\chapter*{}/; \
s/\\chapter\{(Foreword|Prefacio|Forord|Introduction|Introducción|Introduksjon)\}/\\chapter*{$$1} \\addcontentsline{toc}{chapter}{$$1}/; \