From ca64b3de34b65a7c7b4a041a08857c151c25466d Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Thu, 1 Feb 2018 06:43:46 +0000 Subject: [PATCH] Remove LaTeX babel setting, as it is not needed when the XML lang setting is used. --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 024c1cd..b4ad427 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,8 @@ SOURCE=MadewithCreativeCommonsmostup-to-dateversion # 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 @@ -88,9 +86,8 @@ epub: $(SOURCE).epub # handled by LaTeX/dblatex, see . %.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}/; \ -- 2.47.2