-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththesis.tex
More file actions
151 lines (139 loc) · 4.88 KB
/
thesis.tex
File metadata and controls
151 lines (139 loc) · 4.88 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
% vim:ts=4:sw=4
%
% Copyright (c) 2008-2009 solvethis
% Copyright (c) 2010-2015 Casper Ti. Vector
% Public domain.
% Author: zhang xuewu
% Date: 2016-03-29
\documentclass[GBK, nocolorlinks]{pkuthss} % openany
\usepackage[backend = biber, firstinits=false, style=caspervector, gbk, sorting =none, maxnames=999]{biblatex} %文文献在前,中文文献在后排序,请设置“sorting = ecnty”;反之请设置“sorting = centy”。
\usepackage{titletoc}
\usepackage{tocloft}
\usepackage[defaultsups]{newtxtext}
\usepackage{newtxmath}
\usepackage{amssymb} % 产生 originauth.tex 里的 \square。
\usepackage{indentfirst} %首段缩进
\usepackage{bicaption} % 双语标题
\DeclareCaptionOption{english}[]{%
\renewcommand\figurename{Fig}%
\renewcommand\tablename{Table}}
\captionsetup[bi-second]{english}
%\makeatletter
%\DeclareFieldFormat*{year}{#1}
%\makeatother
% 参考文献格式修改
\makeatletter
\DeclareFieldFormat*{year}{#1} % 年份不加粗 % 加粗斜体则用 {\textbf{\textit{#1}}}
\DeclareFieldFormat*{title}{#1} % 标题不斜体
% \DeclareFieldFormat*[article]{journaltitle}{#1} % 期刊名不斜体
\DeclareFieldFormat*[article]{volume}{#1} % 期刊vol不斜体
% \DeclareFieldFormat*[inproceedings]{booktitle}{#1} % 会议名不斜体
\makeatother
\usepackage{graphicx,amsfonts,stfloats,color,multirow,booktabs,epsfig,pdfpages,bm,array}
\usepackage{diagbox}
\usepackage[linesnumbered,ruled]{algorithm2e}
\setlength{\bibitemsep}{3bp}
\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont}
% 设定文档的基本信息。
\pkuthssinfo{
cthesisname = {硕士学位论文}, ethesisname = {Graduate Thesis},
ctitle = {智能监控环境下复杂姿态人脸检测与识别系统},
etitle = {Pose Varied Face Detection and Recognition System In Intelligent Surveillance},
cauthor = {张学武},
eauthor = {Xuewu Zhang},
studentid = {1301213743},
date = {二〇一六年六月},
school = {深圳研究生院},
cmajor = {计算机应用技术}, emajor = {Computer Applied Technology},
direction = {人机交互与机器人系统},
cmentor = {刘宏\ 教授}, ementor = {Prof.\ Hong Liu},
ckeywords = {人脸检测,人脸对齐,人脸辨识,度量学习,可变形部件模型}, ekeywords = {Face detection, Face alignment, Face identification, Metric learning, DPM}
}
% 导入参考文献数据库(注意不要省略“.bib”)。
\addbibresource{thesis.bib}
% 正文
\begin{document}
% 以下为正文之前的部分,默认不进行章节编号。
\frontmatter
% 此后到下一 \pagestyle 命令之前不排版页眉或页脚。
\pagestyle{empty}
% 自动生成标题页。
\maketitle
% 版权声明。
\include{chap/copyright}
% 此后到下一 \pagestyle 命令之前正常排版页眉和页脚。
\cleardoublepage
\pagestyle{plain}
% 重置页码计数器,用大写罗马数字排版此部分页码。
\setcounter{page}{0}
\pagenumbering{Roman}
% 中英文摘要。
\include{chap/abstract}
% 自动生成目录。
\makeatletter
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
% \vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \bfseries
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak
\xleaders\hbox{$\m@th
\mkern \@dotsep mu\hbox{.}\mkern \@dotsep
mu$}\hfill%
\nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
\renewcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
\renewcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
\def\@dotsep{0.1}
\makeatother
\tableofcontents
% 插图目录、表格目录
% \makeatletter
% \renewcommand*\l@figure{\@dottedtocline{2}{0em}{3.2em}}
% \renewcommand*\l@table{\@dottedtocline{2}{0em}{3.2em}}
% \def\@dotsep{0.1}
% \makeatother
% \renewcommand\listfigurename{图目录} % 对List of Figures进行汉化为插图目录
% \renewcommand{\numberline}[1]{图~#1\hspace*{1em}}%设置图目录编号样式,主要是间距
% \listoffigures%自动生成图目录
% \renewcommand\listtablename{表目录} % 对List of Tables进行汉化表格目录
% \renewcommand{\numberline}[1]{表~#1\hspace*{1em}}%设置表目录编号样式,主要是间距
% \listoftables%自动生成表目录
% 以下为正文部分,默认要进行章节编号。
\mainmatter
% 序言。
% 各章节。
\include{chap/chap1}
\include{chap/chap2}
\include{chap/chap3}
\include{chap/chap4}
\include{chap/chap5}
\include{chap/conclusion}
% 正文中的附录部分。
\appendix
% 排版参考文献列表。
\printbibliography[heading = bibintoc,sorting = ecnty]
% 以下为正文之后的部分,默认不进行章节编号。
\backmatter
% 成果
\include{chap/achievements}
% \cleardoublepage
% \pagestyle{empty}
% 致谢
\include{chap/acknowledge}
% 原创性声明和使用授权说明。
\cleardoublepage
\pagestyle{empty}
\include{chap/originauth}
\end{document}