Files
ouc-report-latex-template/cls/title.cls
T

34 lines
1.6 KiB
OpenEdge ABL
Raw Normal View History

2022-05-15 23:32:13 +08:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 标题、目录等设定
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2022-05-16 17:29:31 +08:00
\ctexset{
% 修改 section文字样式,
section={
name={,.},%编号和文字中间用.。
number={\arabic{section}},%编号形式:\arabic设置为阿拉伯数字,\chinese设置为中文,\roman设置为小写罗马字母,\Roman设置为大写罗马字母,\alph设置为小写英文,\Alph设置为大写英文。
format=\hm\bfseries\raggedright\zihao{4},%鸿蒙字体,小四号字,右对齐。
aftername=\hspace{5pt},%编号和标题的距离
% beforeskip=1ex,%标题与前文的距离
% afterskip=1ex,%标题与后文的距离
},
%修改subsection文字样式
subsection={
format=\hm\bfseries\raggedright\zihao{-4},
aftername=\hspace{5pt},%编号和标题的距离
},
%修改subsubsection文字样式
subsubsection={
format=\hm\bfseries\raggedright\zihao{5},
aftername=\hspace{5pt},%编号和标题的距离
}
}
2022-05-15 23:32:13 +08:00
2022-05-16 17:29:31 +08:00
%设置目录的显示样式
\renewcommand{\contentsname}{\begin{center} \normalsize \hm\zihao{4}\textbf{目录} \end{center}}
\renewcommand{\listfigurename}{\begin{center} \normalsize \hm\zihao{4}\textbf{插图目录} \end{center}}
\renewcommand{\listtablename}{{\begin{center} \normalsize \hm\zihao{4}\textbf{表格目录} \end{center}}}
%给目录加上点
\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}} % parts 加点
%\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % chapters 加点
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} % sections加点