forked from TheNetAdmin/zjuthesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zjuthesis.tex
125 lines (102 loc) · 3.07 KB
/
zjuthesis.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
% Zhejiang University Graduation Thesis/Design Template
% Author : Zixuan Wang
% Email : zxwang42 [at] gmail.com
% Update : https://github.com/TheNetAdmin/zjuthesis/releases
% Chat Room : https://gitter.im/zjuthesis/community
% Document : https://thenetadmin.github.io/zjuthesis
\documentclass[
StudentName = 姓名,
StudentID = 学号,
AdvisorName = 指导教师,
Grade = 2014, % only the year, no '级'
Major = 专业,
Department = 学院,
Title = 毕业论文/设计题目,
SubmitDate = 递交日期,
MajorFormat = general,
Degree = undergraduate, % 'undergraduate' or 'graduate'
Type = thesis, % 'thesis' or 'design'
Period = final, % 'proposal' or 'final'
BlindReview = false, % 'false' or 'true'
Language = chinese, % 'chinese' or 'english'
% Below only for 'graduate'
GradLevel = master, % 'master' or 'doctor'
Topic = 研究方向,
ColaboratorName = 合作导师,
TitleEng = {{Graduation Thesis Title}}
]{./config/zjuthesis}
\newcommand{\inputundergraduate}
{
\ifthenelse{\equal{\Period}{final}}
{
% Final thesis
% Final part
\newcommand{\undergradcurrstage}{final}
\newrefsection
\coverstyle
\inputpage{final/cover}
\prevstyle
\inputpage{final/previous}
\inputpage{final/toc}
\bodystyle
\cleardoublepage
\ifthenelse{\equal{\Type}{design}}
{\part{毕业设计}}
{\part{毕业论文}}
\inputbody{final/content}
\poststyle
\inputpage{final/post}
% Proposal part
\renewcommand{\undergradcurrstage}{proposal}
\newrefsection
\coverstyle
\cleardoublepage
\ifthenelse{\equal{\Type}{design}}
{\part{毕业设计开题报告}}
{\part{毕业论文开题报告}}
\inputpage{proposal/cover}
\inputpage{proposal/previous}
\bodystyle
\inputbody{proposal/content}
\poststyle
\inputpage{proposal/post}
}
{
% Thesis proposal
\newcommand{\undergradcurrstage}{proposal}
\coverstyle
\inputpage{proposal/cover}
% 'proposal' previous part uses 'empty' page style,
% as shown in cs undergrad template.
\inputpage{proposal/previous}
\prevstyle
\inputpage{proposal/toc}
\bodystyle
\inputbody{proposal/content}
\poststyle
\inputpage{proposal/post}
}
}
\newcommand{\inputgraduate}
{
\coverstyle
\inputpage{cover}
\prevstyle
\inputpage{previous}
\inputpage{toc}
% Main contents
\bodystyle
\inputbody{content}
% Post part
\poststyle
\inputbody{post}
}
\begin{document}
\ifthenelse{\equal{\Degree}{undergraduate}}
{
\inputundergraduate{}
}
{
\inputgraduate{}
}
\end{document}