fix(latex): 中文样式
调整了 LaTeX 文档中的标题格式和目录样式,使其更加统一和规范。移除了旧的章节计数器,并重新定义了 `titlesec` 和 `titletoc` 的样式,以更好地符合文档需求。
This commit is contained in:
parent
9494c9c913
commit
7cc26feaa9
@ -5,12 +5,6 @@
|
|||||||
%\graphicspath{{chapter/}{figures/}}
|
%\graphicspath{{chapter/}{figures/}}
|
||||||
\usepackage{CJK}
|
\usepackage{CJK}
|
||||||
\usepackage{amsmath}%数学
|
\usepackage{amsmath}%数学
|
||||||
\usepackage{titlesec}
|
|
||||||
|
|
||||||
\newcounter{mychapter}
|
|
||||||
\titleformat{\section}
|
|
||||||
{\normalfont\Large\bfseries}{\stepcounter{mychapter}第\themychapter 章}{1em}{}
|
|
||||||
|
|
||||||
|
|
||||||
%\usepackage[colorlinks,linkcolor=red]{hyperref}%超链接
|
%\usepackage[colorlinks,linkcolor=red]{hyperref}%超链接
|
||||||
|
|
||||||
@ -97,6 +91,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
\usepackage{titlesec}
|
||||||
|
\titleformat{\section}{\centering\Large\bfseries}{第\,\thesection\,章}{1em}{}
|
||||||
|
|
||||||
|
|
||||||
|
\usepackage{titletoc}
|
||||||
|
\titlecontents{section}[0pt]{\addvspace{1.5pt}\filright\bf}
|
||||||
|
{\contentspush{第\thecontentslabel\ 章\quad}}
|
||||||
|
{}{\titlerule*[8pt]{.}\contentspage}
|
||||||
|
|
||||||
|
|
||||||
%设置页面格式
|
%设置页面格式
|
||||||
|
Loading…
x
Reference in New Issue
Block a user