Skip to content

Commit 3995af5

Browse files
committed
feat: support break after section
1 parent b9be94b commit 3995af5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

dependency.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tar -xf pandoc-crossref-Linux.tar.xz -C ~/.local/bin
2929
wget -O ~/.local/share/pandoc/filters/include-files.lua https://github.com/pandoc-ext/include-files/raw/refs/heads/main/include-files.lua
3030

3131
wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh
32-
tlmgr install ctex setspace subfig caption textpos tocloft
32+
tlmgr install ctex setspace subfig caption textpos tocloft titlesec
3333
# tlmgr install svg transparent ifplatform catchfile
3434

3535
# Get Source Han Sans Fonts

template.tex

+6
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,12 @@
232232
$else$
233233
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
234234
$endif$
235+
236+
$if(break-after-section)$
237+
\usepackage{titlesec}
238+
\newcommand{\sectionbreak}{\clearpage}
239+
$endif$
240+
235241
$if(subfigure)$
236242
\usepackage{subcaption}
237243
$endif$

0 commit comments

Comments
 (0)