]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - Makefile
Reinsert UTF-8 enabling LaTeX editing.
[text-madewithcc.git] / 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}/; \