From 93d382e5c49299989b728751bd8bc8d6597ab5aa Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Mon, 21 May 2018 23:25:03 +0800 Subject: [PATCH] pagebreak at sections --- pdf/template.tex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pdf/template.tex b/pdf/template.tex index be1703e..e2b0a95 100644 --- a/pdf/template.tex +++ b/pdf/template.tex @@ -3,6 +3,12 @@ % \usepackage[lining]{ebgaramond} \usepackage[CJKspace]{xeCJK} \usepackage{tocbibind} % for toc show inside pdf + +% section break, and related titlesec and hyperref loading order +% https://tex.stackexchange.com/questions/9497/start-new-page-with-each-section +% https://tex.stackexchange.com/questions/219174/issue-with-page-breaks-before-section-and-toc-hyperlinks +\usepackage{titlesec} % texlive-latex-extra package +\newcommand{\sectionbreak}{\clearpage} \usepackage[ %urlbordercolor = {1 1 1}, %linkbordercolor = {1 1 1}, @@ -23,7 +29,6 @@ \usepackage{array} \usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption} -\usepackage{titlesec} % texlive-latex-extra package \usepackage[titletoc]{appendix} % this is used for \appendices \usepackage{xltxtra} \usepackage{upquote}