修改了目录样式,标题样式。

This commit is contained in:
laoyang
2022-05-16 17:29:31 +08:00
parent 782a35e500
commit 8cd2a5e14a
9 changed files with 62 additions and 70 deletions
+1 -1
View File
@@ -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
View File
@@ -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