]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Adjust LaTeX file editing to match markdown/docbook editing.
authorPetter Reinholdtsen <pere@hungry.com>
Wed, 31 Jan 2018 19:59:16 +0000 (19:59 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Thu, 22 Feb 2018 18:12:08 +0000 (18:12 +0000)
Makefile

index 035b25752d7dc7d556ed659924277217d987eb14..024c1cd96ea8d325cfa7447390f23249ba8b223e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -90,15 +90,13 @@ epub: $(SOURCE).epub
        dblatex -t tex -b xetex $^
        perl -p -i -e 's/\[latin1\]\{inputenc\}/[utf8]{inputenc}\n\\usepackage[$(TEXLANG)]{babel}/; \
                s/ / /g; \
-               s/\\setcounter\{tocdepth\}.*/\\setcounter{tocdepth}{1}/; \
-               s/\\setcounter\{secnumdepth\}.*/\\setcounter{secnumdepth}{-1}/; \
                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}/; \
                s/\\listoffigures//; \
                s/\\chapter\{(Colophon|Dedication)\}/\\chapter*{}/; \
-               s/\\chapter\{(Foreword|Prefacio|Introduction|Introducción)\}/\\chapter*{$$1} \\addcontentsline{toc}{chapter}{$$1}/; \
+               s/\\chapter\{(Foreword|Prefacio|Forord|Introduction|Introducción|Introduksjon)\}/\\chapter*{$$1} \\addcontentsline{toc}{chapter}{$$1}/; \
                s/\\section\{(Notes|Notas)\}/\\section*{$$1}/; \
                s/(Web links?|Vínculos Web)/\\section*{$$1}/; \
                s/^\s*(Revenue model|Interview date|Interviewees?|(Modelo de ingresos|Fecha de la entrevista|Entrevistad(?:o|a|os|as)))/\\textbf{$$1}/;' $@