3 chapters

This commit is contained in:
Junior
2024-05-02 17:54:15 +08:00
parent f9448804ce
commit 6d07f45a85
31 changed files with 1323 additions and 19 deletions
+34 -5
View File
@@ -22,7 +22,13 @@
% 若须在排序中实现更复杂的需求,请参考 biblatex-caspervector 的文档。
% biblatex-caspervector 也有一个“ugly”选项,使其更像国标格式;此外也可考虑
% 改用 style = gb7714-2015 并去掉之后两选项,详见 biblatex-gb7714-2015 的文档。
\usepackage[backend = biber, style = caspervector, utf8, sorting = ecnyt]{biblatex}
\usepackage[backend = biber, style = caspervector, utf8, sorting = none]{biblatex}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{siunitx}
\usepackage{algorithm}
\usepackage{algorithmic}
\sisetup{per-mode=symbol}
% 对于 linespread 值的计算过程有兴趣的同学可以参考 pkuthss.cls。
\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont}
@@ -34,8 +40,8 @@
\newif\ifblind\blindfalse
% 设定文档的基本信息。
\pkuthssinfo{
cthesisname = {博士学位论文}, ethesisname = {Doctor Thesis},
thesiscover = {博士研究生学位论文},
cthesisname = {硕士学位论文}, ethesisname = {Master Thesis},
thesiscover = {硕士研究生学位论文},
% 长标题可用 \thssnl 强制换行,不能用“\\”(双盲版会出错)。
ctitle = {测试文档},
etitle = {Test Document},
@@ -59,7 +65,6 @@
\usepackage{color}
\def\pkuthssffaq{%
\emph{\textcolor{red}{pkuthss 文档模版最常见问题:}}
\texttt{\string\cite}、\texttt{\string\parencite} %
和 \texttt{\string\supercite} 三个命令分别产生%
未格式化的、带方括号的和上标且带方括号的引用标记:%
@@ -82,6 +87,30 @@
因无法假定用户使用哪种方式排版表格,用户须自行保证表格字号符合学校规定。%
}
\RequirePackage{algorithm}
\makeatletter
\newenvironment{breakablealgorithm}
{% \begin{breakablealgorithm}
\begin{center}
\refstepcounter{algorithm}% New algorithm
\hrule height.8pt depth0pt \kern2pt% \@fs@pre for \@fs@ruled
\parskip 0pt
\renewcommand{\caption}[2][\relax]{% Make a new \caption
{\raggedright\textbf{\fname@algorithm~\thealgorithm} ##2\par}%
\ifx\relax##1\relax % #1 is \relax
\addcontentsline{loa}{algorithm}{\protect\numberline{\thealgorithm}##2}%
\else % #1 is not \relax
\addcontentsline{loa}{algorithm}{\protect\numberline{\thealgorithm}##1}%
\fi
\kern2pt\hrule\kern2pt
}
}
{% \end{breakablealgorithm}
\kern2pt\hrule\relax% \@fs@post for \@fs@ruled
\end{center}
}
\makeatother
\begin{document}
% 以下为正文之前的部分,默认不进行章节编号。
\frontmatter
@@ -115,7 +144,7 @@
\appendix
% 排版参考文献列表。bibintoc 选项使“参考文献”出现在目录中;
% 如果同时要使参考文献列表参与章节编号,可将“bibintoc”改为“bibnumbered”。
\printbibliography[heading = bibintoc]
\printbibliography[heading = bibintoc, sorting = none]
% 各附录。
\include{chap/encl1}