]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Reinsert UTF-8 enabling LaTeX editing.
authorPetter Reinholdtsen <pere@hungry.com>
Thu, 1 Feb 2018 07:18:26 +0000 (07:18 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Thu, 22 Feb 2018 18:12:09 +0000 (18:12 +0000)
Makefile

index eedec4bf5cad81f8ac00b320d1c0220893230935..e1ace49abe68c5186d51247f36bfeac5b46898bb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -86,7 +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/\\caption\\end/\\caption{} \\end/; \
+       perl -p -i -e 's/\[latin1\]\{inputenc\}/[utf8]{inputenc}/; \
+               s/\\caption\\end/\\caption{} \\end/; \
                s/ / /g; \
                s!\\maketitle!\\input{extra/$(TEXLANGCODE)/cover.tex}!; \
                s/\\author\{and\}/\\author{Paul Stacey \\and Sarah Hinchliff Pearson}/; \