forked from sjtug/SJTUThesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thesis.tex
125 lines (101 loc) · 3.65 KB
/
thesis.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
119
120
121
122
123
124
125
%# -*- coding: utf-8-unix -*-
%%==================================================
%% thesis.tex
%%==================================================
% 双面打印
\documentclass[doctor, fontset=adobe, openright, twoside]{sjtuthesis}
% \documentclass[bachelor, fontset=adobe, openany, oneside, submit]{sjtuthesis}
% \documentclass[master, fontset=adobe, review]{sjtuthesis}
% \documentclass[%
% bachelor|master|doctor, % 必选项
% fontset=adobe|windows, % 只测试了adobe
% oneside|twoside, % 单面打印,双面打印(奇偶页交换页边距,默认)
% openany|openright, % 可以在奇数或者偶数页开新章|只在奇数页开新章(默认)
% zihao=-4|5,, % 正文字号:小四、五号(默认)
% review, % 盲审论文,隐去作者姓名、学号、导师姓名、致谢、发表论文和参与的项目
% submit % 定稿提交的论文,插入签名扫描版的原创性声明、授权声明
% ]
% 逐个导入参考文献数据库
\addbibresource{bib/thesis.bib}
% \addbibresource{bib/chap2.bib}
\begin{document}
%% 无编号内容:中英文论文封面、授权页
\include{tex/id}
\maketitle
\makeenglishtitle
\makeatletter
\ifsjtu@submit\relax
\includepdf{pdf/original.pdf}
\cleardoublepage
\includepdf{pdf/authorization.pdf}
\cleardoublepage
\else
\ifsjtu@review\relax
% exclude the original claim and authorization
\else
\makeDeclareOriginal
\makeDeclareAuthorization
\fi
\fi
\makeatother
\frontmatter % 使用罗马数字对前言编号
%% 摘要
\pagestyle{main}
\include{tex/abstract}
%% 目录、插图目录、表格目录
\tableofcontents
\listoffigures
\addcontentsline{toc}{chapter}{\listfigurename} %将插图目录加入全文目录
\listoftables
\addcontentsline{toc}{chapter}{\listtablename} %将表格目录加入全文目录
\listofalgorithms
\addcontentsline{toc}{chapter}{算法索引} %将算法目录加入全文目录
\include{tex/symbol} % 主要符号、缩略词对照表
\mainmatter % 使用阿拉伯数字对正文编号
%% 正文内容
\pagestyle{main}
\include{tex/intro}
\include{tex/example}
\include{tex/faq}
\include{tex/summary}
\appendix % 使用英文字母对附录编号,重新定义附录中的公式、图图表编号样式
\renewcommand\theequation{\Alph{chapter}--\arabic{equation}}
\renewcommand\thefigure{\Alph{chapter}--\arabic{figure}}
\renewcommand\thetable{\Alph{chapter}--\arabic{table}}
\renewcommand\thealgorithm{\Alph{chapter}--\arabic{algorithm}}
%% 附录内容,本科学位论文可以用翻译的文献替代。
\include{tex/app_setup}
\include{tex/app_eq}
\include{tex/app_cjk}
\include{tex/app_log}
\backmatter % 文后无编号部分
%% 参考资料
\printbibliography[heading=bibintoc]
%% 致谢、发表论文、申请专利、参与项目、简历
%% 用于盲审的论文需隐去致谢、发表论文、申请专利、参与的项目
\makeatletter
%%
% "研究生学位论文送盲审印刷格式的统一要求"
% http://www.gs.sjtu.edu.cn/inform/3/2015/20151120_123928_738.htm
% 盲审删去删去致谢页
\ifsjtu@review\relax\else
\include{tex/ack} %% 致谢
\fi
\ifsjtu@bachelor
% 学士学位论文要求在最后有一个英文大摘要,单独编页码
\pagestyle{biglast}
\include{tex/end_english_abstract}
\else
% 盲审论文中,发表学术论文及参与科研情况等仅以第几作者注明即可,不要出现作者或他人姓名
\ifsjtu@review\relax
\include{tex/pubreview}
\include{tex/projectsreview}
\else
\include{tex/pub} %% 发表论文
\include{tex/projects} %% 参与的项目
\fi
\fi
% \include{tex/patents} %% 申请专利
% \include{tex/resume} %% 个人简历
\makeatother
\end{document}