数字标题

This commit is contained in:
KAAAsS 2022-03-30 13:00:52 +08:00
parent 47effd4f9e
commit fb014ac143
Signed by: KAAAsS
GPG Key ID: D22F53AF662411FE

View File

@ -302,7 +302,7 @@
\RequirePackage{titletoc}
\renewcommand\contentsname{\centerline{\toctitlefont{\quad{}}}}
\titlecontents{chapter}[0ex]{\tocchapterfont}{%
\CJKnumber{\thecontentslabel}\quad{}}{}{%
\thecontentslabel \quad{}}{}{%
\hspace{.5em}\titlerule*[5pt]{$\cdot$}\contentspage}%
\titlecontents{section}[1em]{\tocsectionfont}{%
\thecontentslabel\quad{}}{}{%
@ -321,8 +321,8 @@
% Text style
%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage[pagestyles, rm]{titlesec}%titlesecfancyhdr
\renewcommand{\chaptername}{\CJKnumber{\thechapter}}
\titleformat{\chapter}[hang]{\textchapterfont}{\CJKnumber{\thechapter}}{1em}{}
\renewcommand{\chaptername}{ \thechapter }
\titleformat{\chapter}[hang]{\textchapterfont}{ \thechapter }{1em}{}
\titleformat{\section}[hang]{\textsectionfont}{\thesection}{1em}{}
\titleformat{\subsection}[hang]{\textsubsectionfont}{\thesubsection}{1em}{}
\titleformat{\subsubsection}[hang]{\textsubsectionfont}{\thesubsubsection}{1ex}{}