]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Remove LaTeX babel setting, as it is not needed when the XML lang setting is used.
authorPetter Reinholdtsen <pere@hungry.com>
Thu, 1 Feb 2018 06:43:46 +0000 (06:43 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Thu, 22 Feb 2018 18:12:08 +0000 (18:12 +0000)
Makefile

index 024c1cd96ea8d325cfa7447390f23249ba8b223e..b4ad4278f1ddcd0c620eb2683577fadf1130729d 100644 (file)
--- 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 <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}/; \