From: Petter Reinholdtsen Date: Wed, 31 Jan 2018 19:59:16 +0000 (+0000) Subject: Adjust LaTeX file editing to match markdown/docbook editing. X-Git-Tag: es-printed~521 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/e9b11c4aa07da5404fa9d4bd33187682a6243e30?hp=5c578e06033e7d0ad896eb912dafa2d299c3648b Adjust LaTeX file editing to match markdown/docbook editing. --- diff --git a/Makefile b/Makefile index 035b257..024c1cd 100644 --- 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}/;' $@