]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - Makefile
Split the titlepage generation as an extra file
[text-madewithcc.git] / Makefile
index 85b7c7a7ce35d678ce4ecc6e4342814c9aad9fa6..249ddc663a84800128221a173f6141dfd0caed0c 100644 (file)
--- 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}/; \