# increase every time the generated Markdown is modified.
VERSION=20170609-2
-TEXLANG=spanish
TEXLANGCODE=es
-#TEXLANG=norsk
#TEXLANGCODE=nb
# pandoc version 1.17.2~dfsg-3 do not understand
# handled by LaTeX/dblatex, see <URL: https://bugs.debian.org/889603 >.
%.tex: %.xml
dblatex -t tex -b xetex $^
- perl -p -i -e 's/\[latin1\]\{inputenc\}/[utf8]{inputenc}\n\\usepackage[$(TEXLANG)]{babel}/; \
+ perl -p -i -e 's/\\caption\\end/\\caption{} \\end/; \
s/ / /g; \
- s/\\caption\\end/\\caption{} \\end/; \
s!\\maketitle!\\input{extra/$(TEXLANGCODE)/cover.tex}!; \
s/\\author\{and\}/\\author{Paul Stacey \\and Sarah Hinchliff Pearson}/; \
s/\\DBKinditem\{\\writtenby\}\{and\}/\\DBKinditem{\writtenby}{Paul Stacey and Sarah Hinchliff Pearson}/; \