From 84b5c10136081cd33bcf7d31d4d15e0a7861a4b5 Mon Sep 17 00:00:00 2001 From: Cadey Date: Tue, 5 Nov 2019 18:36:46 +0000 Subject: [PATCH] fix pdf rendering --- src/build.sh | 2 +- src/sectionpagebreak.tex | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/sectionpagebreak.tex diff --git a/src/build.sh b/src/build.sh index 7957bcd..6392cc7 100755 --- a/src/build.sh +++ b/src/build.sh @@ -99,7 +99,7 @@ other_tips.md ' pandoc -o tulpanomicon.epub --epub-chapter-level=2 title.md $FILES -pandoc -o tulpanomicon.pdf --toc --toc-depth=2 title.md $FILES || pandoc -o test.tex -s --toc title.md $FILES +pandoc -o tulpanomicon.pdf --include-in-header sectionpagebreak.tex --variable=subparagraph --toc --toc-depth=2 title.md $FILES || pandoc -o test.tex -s --toc title.md $FILES kindlegen tulpanomicon.epub mkdir -p ../book cp -vrf tulpanomicon.mobi ../book/ diff --git a/src/sectionpagebreak.tex b/src/sectionpagebreak.tex new file mode 100644 index 0000000..c9aee9e --- /dev/null +++ b/src/sectionpagebreak.tex @@ -0,0 +1,4 @@ +\usepackage{titlesec} + +\titleclass{\section}{top} +\newcommand\sectionbreak{\clearpage}