From 925a42a29aaddd2fb17f0f814a16a32155a2272f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 24 Feb 2019 09:08:44 +0200 Subject: Fix: pandoc invocation for the modern world --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cccd3bc..88b3a51 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ chapters = $(shell ./list-chapters index.mdwn) all: book.pdf book.epub book.mobi book.pdf: $(chapters) - pandoc -V geometry:a4paper --chapters --toc -o book.pdf $(chapters) + pandoc -V geometry:a4paper --top-level-division=chapter \ + --toc -o book.pdf $(chapters) book.epub: $(chapters) cover.png pandoc -t epub --epub-metadata=book.xml --epub-cover=cover.png \ -- cgit v1.2.1