Newer
Older
% \ProvidesExplPackage{profile/page}{2021-9-4}{0.1}{Some things I wrote}
% the header line
\tl_set:Nn \headrulewidth {0pt}
% the footer line
\ctexset{
contentsname = \songti\bfseries\zihao{3}目录,
chapter/format = \zihao{4}\heiti\centering,
section/format = \zihao{4}\heiti\raggedright,
subsection/format = \zihao{4}\heiti\raggedright,
subsubsection/format = \zihao{4}\heiti\raggedright
% 目录内容中章的标题 四号黑体
% 目录中其他内容 小四号宋体
\titlecontents{chapter}[5em]{\heiti\zihao{4}\vspace{10pt}}{\contentslabel{4em}}{\hspace*{-4em}}{~\titlerule*[0.6pc]{$.$}~\contentspage}
\titlecontents{section}[5em]{\zihao{-4}\vspace{0pt}}{\contentslabel{2.5em}}{}{~\titlerule*[0.6pc]{$.$}~\contentspage}
\titlecontents{subsection}[8em]{\zihao{-4}\vspace{0pt}}{\contentslabel{3em}}{}{~\titlerule*[0.6pc]{$.$}~\contentspage}
% 1.{section}:标题级别
% 2.[5em]:标题位置 (左间距)
% 3.{\bfseries \zihao{5} \vspace{10pt}}:标题格式 (设置标题的整体格式,如字体尺寸、粗细、与上一个标题的垂直距离等,可空置)
% 4.{\contentslabel{4em}}:标题标志 (设置标题标志的格式,如序号格式、序号宽度、序号与标题内容之间的间距等,不可空置)
% 5.{\hspace*{0em}}:无序号标题 (设置无序号标题的格式,如字体、字体尺寸、位置等。该参数可以空置)
% 6.{~\titlerule*[0.6pc]{$.$}~\contentspage}:指引线与页码 (设置标题与页码之间的指引线样式以及页码的格式,该参数如果空置,标题将无指引线和页码)