]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Split the titlepage generation as an extra file
authorGunnar Wolf <gwolf@gwolf.org>
Thu, 26 Oct 2017 16:16:21 +0000 (11:16 -0500)
committerGunnar Wolf <gwolf@gwolf.org>
Thu, 26 Oct 2017 16:16:21 +0000 (11:16 -0500)
Makefile
extra/es/cover.tex [new file with mode: 0644]

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}/; \
diff --git a/extra/es/cover.tex b/extra/es/cover.tex
new file mode 100644 (file)
index 0000000..060549f
--- /dev/null
@@ -0,0 +1,18 @@
+\begin{titlepage}
+  \thispagestyle{empty}
+  \begin{center}
+    ~ \vfill
+    \Huge
+    \textsc{Hecho con Creative Commons}
+    \vskip 2cm
+    \Large
+    Paul Stacey y Sarah Hinchliff Pearson
+    \vskip 1cm
+    \large
+    Traducción:\\
+    Luis Enrique Amaya González, Gunnar Eyal Wolf Iszaevich, \\
+    Leonardo Arias Fonseca, Evelin (?), Andrés Delgado
+  \end{center}
+
+  \vfill \eject
+\end{titlepage}