]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - Makefile
Change dblatex template to simple and replace title page with one only listing title...
[text-madewithcc.git] / Makefile
index 70afb1108a7d2036fe50e0aa3a1f7caafa8bfe9d..a6aaf4fb4355ccf5d98e35958e87231f63ad120d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,10 +10,6 @@ SOURCE=MadewithCreativeCommonsmostup-to-dateversion
 # increase every time the generated Markdown is modified.
 VERSION=20170609-2
 
-TEXLANGCODE=es
-
-#TEXLANGCODE=nb
-
 # pandoc version 1.17.2~dfsg-3 do not understand
 # --top-level-diversion, while version 1.19.2.4~dfsg-1+b3 do.
 PANDOC_OPTS = \
@@ -85,11 +81,10 @@ epub: $(SOURCE).epub
 # Replace Unicode Hair Space (U+200A) with space, as   is not
 # handled by LaTeX/dblatex, see <URL: https://bugs.debian.org/889603 >.
 %.tex: %.xml
-       dblatex -t tex -b xetex $^
+       dblatex -T simple -t tex -b xetex -p extra/pdf.xsl $^
        perl -p -i -e 's/\[latin1\]\{inputenc\}/[utf8]{inputenc}/; \
                s/\\caption\\end/\\caption{} \\end/; \
                s/ / /g; \
-               s!\\maketitle!\\input{extra/$(TEXLANGCODE)/cover.tex}!; \
                s/\\listoffigures//; \
                s/\\chapter\{(Colophon|Dedication)\}/\\chapter*{}/; \
                s/\\chapter\{(Foreword|Prefacio|Forord|Introduction|Introducción|Introduksjon)\}/\\chapter*{$$1} \\addcontentsline{toc}{chapter}{$$1}/; \