forked from magic282/PlutoThesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
101 lines (73 loc) · 2.45 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
% !Mode:: "TeX:UTF-8"
\def\usewhat{pdflatex} % 定义编译方式 pdflatex, dvipdfmx, or xelatex
\def \xuewei{Bachelor} % 定义学位 Doctor, Master or Bachelor
\def\xueke{Engineering} % 定义学科 Engineering, Science, Management, Arts, Philosophy, Economics, Laws, Education, or History
\documentclass[cs4size,openany,twoside,UTF8]{ctexbook}
\input{setup/type.tex} % 硕博类型
\input{setup/package.tex} % 引用的宏包
\graphicspath{{figures/}} %定义所有的eps文件在 figures 子目录下
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 查重,去除图表
\newif\ifchachong
\chachongfalse
\ifchachong
\usepackage[nolists,nomarkers]{endfloat}
\renewcommand{\processdelayedfloats}{}
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\input{setup/Definition} % 文本格式定义
\frontmatter
\ifxueweibachelor
\input{setup/bformat} % 本科蛋疼格式
\else
\input{setup/format} % 硕博格式
\fi
\frontmatter
\ifxueweibachelor
\input{bcover} % 本科蛋疼封面
\else
\input{cover} % 硕博封面
\fi
% 中英目录
\defaultfont
\clearpage{\pagestyle{empty}\cleardoublepage}
\pdfbookmark[0]{目~~~~录}{mulu}
\tableofcontents % 中文目录
\clearpage{\pagestyle{empty}\cleardoublepage}
\ifxueweidoctor
\tableofengcontents % 英文目录
\clearpage{\pagestyle{empty}\cleardoublepage} % 清除目录后面空页的页眉和页脚
\fi
\mainmatter\defaultfont\sloppy\raggedbottom
\include{body/introduction}
\include{body/figures}
\include{body/tables}
\include{body/equations}
\include{body/others}
\include{body/conclusion} % 结论
%\include{body/simplefigure}
%\include{body/simpletable}
%\include{body/simpleequation}
%\include{body/simplereference}
%参考文献
\defaultfont
\bibliographystyle{GBT7714-2005NLang-HIT}
\addcontentsline{toc}{chapter}{参考文献} % 参考文献加入到中文目录
\addcontentsline{toe}{chapter}{\bfseries References} % 参考文献加入到英文目录
\addtolength{\bibsep}{-0.8em}
\nocite{*} %若将此命令屏蔽掉,则未引用的文献不会出现在文后的参考文献列表中。
\bibliography{reference}
\include{appendix/appA} % 附录
\include{appendix/publications} % 所发文章
\ifxueweibachelor
\include{appendix/bAuthorization} % 本科蛋疼承诺
\else
\include{appendix/Authorization} % 硕博承诺
\fi
\include{appendix/acknowledgements}% 致谢
\ifxueweidoctor
\include{appendix/Resume} % 博士学位论文有个人简介
\fi
\clearpage
\end{document}