-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmain.tex
110 lines (84 loc) · 3.32 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
% !Mode:: "TeX:UTF-8"
% 定义编译方式 dvipdfmx 或者 pdflatex,默认为 dvipdfmx
% 方式编译,如果需要修改,只需改变花括号中的内容即可。
\def\usewhat{pdflatex}
% book作为文档类
% 插入空白页可以设置openright
\documentclass[12pt,openany,oneside]{book}
% 定义本文所使用宏包
\input{setup/package}
% 定义所有的.eps/.pdf图片文件在figures子目录下
\graphicspath{{figures/}}
\begin{document}
% 开始中文字体使用
\begin{CJK*}{UTF8}{song}
% 完成对论文各个部分格式的设置
\input{setup/format}
% ——————————————————————————————————————————————
% 以下是论文导言部分,包括论文的封面,中英文摘要和中文目录
\frontmatter
\fancypagestyle{plain}{
\fancyhf{}
\renewcommand{\headrulewidth}{0 pt}
\fancyfoot[C]{\song\xiaowu~\thepage~}
}
%%%%%%%%%% 封面 %%%%%%%%%%
\input{preface/cover}
%%%%%%%%%% 目录 %%%%%%%%%%
\defaultfont
%\clearpage{\pagestyle{empty}\cleardoublepage}
\clearpage
%\pagestyle{empty}
%\setcounter{page}{1} % 单独从 1 开始编页码
%\pagenumbering{arabic}
\titleformat{\chapter}{\centering\sanhao\hei}{\chaptername}{2em}{} % 设置目录两字的格式
\pdfbookmark[0]{目~~录}{mulu}
\tableofcontents % 中文目录
%\fancypagestyle{plain}{
%\fancyhf{}
%\renewcommand{\headrulewidth}{0 pt}
%\fancyfoot[C]{\song\xiaowu~\thepage~}
%}
\thispagestyle{plain}
% ——————————————————————————————————————————————
% 以下是论文正文,内容在body子文件夹下
\mainmatter\defaultfont\sloppy\raggedbottom
\makeatletter
\fancypagestyle{plain}{ % 设置开章页眉页脚风格
\fancyhf{}
\fancyhead[C]{\song\wuhao \@cheading} % 首页页眉格式
\fancyfoot[C]{\song\xiaowu ~\thepage~} % 首页页脚格式
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}}
\makeatother
% 单独从 1 开始编页码
\setcounter{page}{1}
% chapter标题格式:小二,黑体,居中
\titleformat{\chapter}{\centering\xiaoer\hei}{\chaptername}{2em}{}
%%%%%%%%%% 正文 %%%%%%%%%%
\include{body/intros}
\include{body/review}
%%%%%%%%%% 参考文献 %%%%%%%%%%
\lhead{}
\rhead{}
\chead{\song\wuhao 中山大学硕士学位论文} % 覆盖设置页眉内容
\defaultfont
\bibliographystyle{references/TJUThesis}
\phantomsection
\markboth{参考文献}{参考文献}
\addcontentsline{toc}{chapter}{参考文献} % 参考文献加入到中文目录
%\nocite{*} % 若将此命令屏蔽掉,则未引用的文献不会出现在文后的参考文献中
\bibliography{references/thesis}
% ——————————————————————————————————————————————
% 以下是论文附录,在appendix子文件下
% 重新设置想要的chapter格式
\titleformat{\chapter}{\centering\sihao\hei}{\chaptername}{2em}{}
% 攻读硕士学位期间发表学术论文情况
\include{appendix/paper}
% 致谢
\include{appendix/acknowledgements}
\clearpage
% 结束中文字体使用
\end{CJK*}
% 结束全文
\end{document}