修改了目录样式,标题样式。
This commit is contained in:
+1
-1
@@ -29,4 +29,4 @@
|
||||
%\fancyhead[C]{\@title}
|
||||
%\fancyhead[R]{\thepage}
|
||||
%\fancyfoot[L]{\fzkai{\@author}}
|
||||
\fancyfoot[C]{\thepage / \pageref{LastPage}}
|
||||
\fancyfoot[C]{\thepage}% / \pageref{LastPage}}
|
||||
+29
-49
@@ -2,53 +2,33 @@
|
||||
%% 标题、目录等设定
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%% \renewcommand\abstractname{Summary}
|
||||
%%\renewenvironment{abstract}{\noindent\rule{\textwidth}{.5pt}\\[2ex] \centering\begin{minipage}{.97\textwidth}{\zihao{-4}\sffamily\bfseries \centering{\abstractname}}\\}
|
||||
%%{\par\noindent\end{minipage}\\[2ex] \rule{\textwidth}{.5pt}}
|
||||
\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},%编号和标题的距离
|
||||
}
|
||||
}
|
||||
|
||||
% \renewenvironment{abstract}{\noindent\rule{\textwidth}{.5pt}\\[2ex] \centering\begin{minipage}{.97\textwidth}\begin{center}{\zihao{-4}\sffamily\bfseries \abstractname} \\ \end{center}}
|
||||
% {\par\end{minipage}\\[2ex] \noindent\rule{\textwidth}{.5pt}}
|
||||
|
||||
%目录
|
||||
\titlecontents{section}[3.8em]%左间距
|
||||
{\zihao{-4}}%\fzss \vspace{3pt}}%字号
|
||||
{\contentslabel{2em}}
|
||||
{}%\hspace*{-4em}}
|
||||
{~\titlerule*[0.25pc]{$.$}~\contentspage\hspace*{1cm}}%样式,最后留出1cm的右间距
|
||||
|
||||
\titlecontents{subsection}[3.8em]%左间距
|
||||
{\zihao{-4}}%\fzss \vspace{3pt}}%字号
|
||||
{\contentslabel{2em}}
|
||||
{}%\hspace*{-4em}}
|
||||
{~\titlerule*[0.25pc]{$.$}~\contentspage\hspace*{1cm}}%样式,最后留出1cm的右间距
|
||||
|
||||
\titlecontents{subsubsection}[3.8em]%左间距
|
||||
{\zihao{-4}}%\fzss \vspace{3pt}}%字号
|
||||
{\contentslabel{2em}}
|
||||
{}%\hspace*{-4em}}
|
||||
{~\titlerule*[0.25pc]{$.$}~\contentspage\hspace*{1cm}}%样式,最后留出1cm的右间距
|
||||
|
||||
%% section
|
||||
\titleformat{\section}
|
||||
[hang]
|
||||
{\sffamily}
|
||||
{\zihao{-3}\bfseries\thesection.}
|
||||
{1pt}
|
||||
{\zihao{-3}\bfseries\filcenter}
|
||||
|
||||
%% subsection
|
||||
\titleformat{\subsection}
|
||||
[hang]
|
||||
{\sffamily}
|
||||
{\zihao{4}\bfseries\thesubsection}
|
||||
{1pt}
|
||||
{\zihao{4}\bfseries\filright}
|
||||
|
||||
%% subsubsection
|
||||
\titleformat{\subsubsection}
|
||||
[hang]
|
||||
{\sffamily}
|
||||
{\zihao{-4}\bfseries\thesubsubsection}
|
||||
{1pt}
|
||||
{\zihao{-4}\bfseries\filright}
|
||||
|
||||
%设置目录的显示样式
|
||||
\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加点
|
||||
Reference in New Issue
Block a user