-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.tex
118 lines (106 loc) · 4.5 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
% Copyright (c) 2008-2009 solvethis
% Copyright (c) 2010-2016 Casper Ti. Vector
% Public domain.
%
% 使用前请先仔细阅读 pkuthss 和 biblatex-caspervector 的文档,
% 特别是其中的 FAQ 部分和用红色强调的部分。
% 两者可在终端/命令提示符中用
% texdoc pkuthss
% texdoc biblatex-caspervector
% 调出。
% 采用了自定义的(包括大小写不同于原文件的)字体文件名,
% 并改动 ctex.cfg 等配置文件的用户请自行加入 nofonts 选项;
% 其它用户不用加入 nofonts 选项,加入之后反而会产生错误。
\documentclass[UTF8]{pkuthss}
% 使用 biblatex 排版参考文献,并规定其格式(详见 biblatex-caspervector 的文档)。
% 这里按照英文文献在前,中文文献在后排序(“sorting = ecnty”);
% 若需按照中文文献在前,英文文献在后排序,请设置“sorting = centy”;
% 若需按照引用顺序排序,请设置“sorting = none”。
% 若需在排序中实现更复杂的需求,请参考 biblatex-caspervector 的文档。
\usepackage[backend = biber, style = caspervector, utf8, sorting = none, maxbibnames=99]{biblatex}
\let\openbox\undefined
\usepackage{amsthm,amsfonts,amssymb,amsmath,subcaption,tikz,comment,lscape,listings,multicol,multirow}
\usepackage[ruled,linesnumbered,algochapter]{algorithm2e}
% footmisc-perpage保证每一页的脚注编码从①开始
\usepackage[perpage]{footmisc}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\definecolor{light-gray}{gray}{0.8}
\lstset{frame=tb, numbers=left, numbersep=2pt,
language=Java, aboveskip=3mm, belowskip=3mm,
showstringspaces=false, columns=flexible,
basicstyle={\footnotesize\ttfamily}, numberstyle=\scriptsize\color{gray},
keywordstyle={\textbf}, commentstyle=\color{dkgreen}, stringstyle=\color{mauve},
breaklines=true, breakatwhitespace=true, tabsize=4
}
% 按学校要求设定参考文献列表中的条目之内及之间的距离。
\setlength{\bibitemsep}{3bp}
% 对于 linespread 值的计算过程有兴趣的同学可以参考 pkuthss.cls。
\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont}
\renewcommand{\algorithmcfname}{算法}
\newtheorem{definition}{\textbf{定义}}[chapter]
\newtheorem{example}{\textbf{例}}[chapter]
\newtheorem{theorem}{\textbf{定理}}[chapter]
\newtheorem{lemma}{\textbf{引理}}[chapter]
% 设定文档的基本信息。
\pkuthssinfo{
cthesisname = {博士研究生学位论文}, ethesisname = {Doctor Thesis},
ctitle = {面向某某问题的若干关键技术研究}, etitle = {Some Techniques for Some Problems},
cauthor = {某 某},
eauthor = {Bala Bala},
studentid = {1901111666},
date = {二〇一八年 十一月},
school = {信息科学技术学院},
cmajor = {计算机软件与理论}, emajor = {Computer Software and Theory},
direction = {某某方向},
cmentor = {某某某 教授}, ementor = {Prof.\ Bala Bala},
ckeywords = {关键词一,关键词二}, ekeywords = {keyword 1, keyword 2}
}
% 载入参考文献数据库(注意不要省略“.bib”)。
\addbibresource{main.bib}
\begin{document}
% 以下为正文之前的部分,默认不进行章节编号。
\frontmatter
% 此后到下一 \pagestyle 命令之前不排版页眉或页脚。
\pagestyle{empty}
% 自动生成封面。
\maketitle
% 版权声明。封面要求单面打印,故需新开右页。
\cleardoublepage
\include{chap/copyright}
% 此后到下一 \pagestyle 命令之前正常排版页眉和页脚。
\cleardoublepage
\pagestyle{plain}
% 重置页码计数器,用大写罗马数字排版此部分页码。
\setcounter{page}{0}
\pagenumbering{Roman}
% 中英文摘要。
\include{chap/operators}
\include{chap/abstract}
% 自动生成目录。
\tableofcontents
% 以下为正文部分,默认要进行章节编号。
\mainmatter
% 序言。
\include{chap/introduction}
% 各章节。
\include{minsum/entry}
\include{tal/entry}
% 结论。
\include{chap/conclusion}
% 正文中的附录部分。
\appendix
% 排版参考文献列表。bibintoc 选项使“参考文献”出现在目录中;
% 如果同时要使参考文献列表参与章节编号,可将“bibintoc”改为“bibnumbered”。
\printbibliography[heading = bibintoc]
% 各附录。
% 以下为正文之后的部分,默认不进行章节编号。
\backmatter
% 致谢。
\include{chap/mypublications}
\include{chap/acknowledge}
% 原创性声明和使用授权说明。
\include{chap/originauth}
\end{document}
% vim:ts=4:sw=4