forked from TheNetAdmin/zjuthesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zjuthesis.tex
69 lines (59 loc) · 1.61 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
% Zhejiang University Undergraduate Graduation Thesis/Design Template
% Author: Zixuan Wang
% Email : zxwang42 [at] gmail.com
% Update: https://github.com/TheNetAdmin/zjuthesis/releases
\documentclass[
StudentName = 姓名,
StudentID = 学号,
AdvisorName = 指导教师,
Grade = 2014, % only the year, no `级`
Major = 专业,
Department = 学院,
Title = 毕业论文/设计题目,
SubmitDate = 递交日期,
MajorFormat = cs,
Type = design, % `thesis` or `design`
Period = final, % `final` or `proposal`
BlindReview = false % `true` or `false`
]{config/zjuthesis}
\newcommand{\inputfinal}
{
% Final part
\newrefsection
\inputpage{final/cover}
\inputpage{final/previous}
\inputpage{final/toc}
\cleardoublestylepage{previous}
\ifthenelse{\equal{\Type}{design}}
{\part{毕业设计}}
{\part{毕业论文}}
\input{content/final/content}
\inputpage{final/post}
% Proposal part
\newrefsection
\cleardoublestylepage{empty}
\ifthenelse{\equal{\Type}{design}}
{\part{毕业设计开题报告}}
{\part{毕业论文开题报告}}
\inputpage{proposal/cover}
\inputpage{proposal/previous}
\input{content/proposal/content}
\inputpage{proposal/post}
}
\newcommand{\inputproposal}
{
\inputpage{proposal/cover}
\inputpage{proposal/previous}
\inputpage{proposal/toc}
\input{content/proposal/content}
\inputpage{proposal/post}
}
\begin{document}
\ifthenelse{\equal{\Period}{final}}
{
\inputfinal{}
}
{
\inputproposal{}
}
\end{document}