diff --git a/paper/latex/main.tex b/paper/latex/main.tex index b41a770..1e7cbf4 100644 --- a/paper/latex/main.tex +++ b/paper/latex/main.tex @@ -5,12 +5,6 @@ %\graphicspath{{chapter/}{figures/}} \usepackage{CJK} \usepackage{amsmath}%数学 -\usepackage{titlesec} - -\newcounter{mychapter} -\titleformat{\section} - {\normalfont\Large\bfseries}{\stepcounter{mychapter}第\themychapter 章}{1em}{} - %\usepackage[colorlinks,linkcolor=red]{hyperref}%超链接 @@ -97,6 +91,14 @@ } +\usepackage{titlesec} +\titleformat{\section}{\centering\Large\bfseries}{第\,\thesection\,章}{1em}{} + + +\usepackage{titletoc} +\titlecontents{section}[0pt]{\addvspace{1.5pt}\filright\bf} +{\contentspush{第\thecontentslabel\ 章\quad}} +{}{\titlerule*[8pt]{.}\contentspage} %设置页面格式