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}