X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/412df3d31f5fff0975f493bbe563412a697f04ea..b8938a3e65916ab620cf6a77aad537d5180b9814:/Makefile diff --git a/Makefile b/Makefile index 85b7c7a..249ddc6 100644 --- a/Makefile +++ b/Makefile @@ -61,9 +61,13 @@ pdf: $(SOURCE).pdf %.tex: %.xml dblatex -t tex -b xetex $^ perl -p -i -e 's/\[latin1\]\{inputenc\}/[utf8]{inputenc}\n\\usepackage[spanish]{babel}/; \ + s/\\setcounter\{tocdepth\}.*/\\setcounter{tocdepth}{1}/; \ + s/\\setcounter\{secnumdepth\}.*/\\setcounter{secnumdepth}{-1}/; \ s/\\caption\\end/\\caption{} \\end/; \ + s!\\maketitle!\\input{extra/es/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/\\part\{(Prefacio|Introducción)\}/\\chapter*{$$1} \\addcontentsline{toc}{chapter}{$$1}/; \ s/\\section\{Notas\}/\\section*{Notas}/; \ s/(Vínculos Web)/\\section*{$$1}/; \