From 6bb869678cd452e78f33218a677ae3f8bd2c7894 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Fri, 2 Feb 2018 07:45:21 +0000 Subject: [PATCH] Introduce makefile variable for dblatex options. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a36377c..55a93f6 100644 --- a/Makefile +++ b/Makefile @@ -78,10 +78,11 @@ epub: $(SOURCE).epub %.epub: %.xml dbtoepub $^ +DBLATEX_OPTS = -T simple -t tex -b xetex -p extra/pdf.xsl # Replace Unicode Hair Space (U+200A) with space, as   is not # handled by LaTeX/dblatex, see . %.tex: %.xml - dblatex -T simple -t tex -b xetex -p extra/pdf.xsl $^ + dblatex $(DBLATEX_OPTS) $^ perl -p -i -e 's/\\caption\\end/\\caption{} \\end/; \ s/ / /g; \ s/\\chapter\{(Colophon|Dedication)\}/\\chapter*{}/; \ -- 2.47.2