forked from TheNetAdmin/zjuthesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zjuthesis.cls
74 lines (64 loc) · 1.75 KB
/
zjuthesis.cls
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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{zjuthesis}
[Zhejiang University Thesis and Design Template, Zixuan Wang [email protected]]
\input{config/version}
\wlog{zjuthesis version: \zjuthesisversion}
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
family=zjuthesis,
prefix=
}
\DeclareStringOption{StudentName}
\DeclareStringOption{StudentID}
\DeclareStringOption{AdvisorName}
\DeclareStringOption{Grade}
\DeclareStringOption{Major}
\DeclareStringOption{Department}
\DeclareStringOption{Topic}
\DeclareStringOption{Title}
\DeclareStringOption{TitleEng}
\DeclareStringOption{SubmitDate}
\DeclareStringOption{Cover}
\DeclareStringOption{TOC}
\DeclareStringOption[undergraduate]{Degree}
\DeclareStringOption[general]{MajorFormat}
\DeclareStringOption[thesis]{Type}
\DeclareStringOption[proposal]{Period}
\DeclareStringOption[chinese]{Language}
\DeclareStringOption[doctor]{GradLevel}
\DeclareStringOption{ColaboratorName}
\DeclareStringOption[false]{BlindReview}
\DeclareStringOption[false]{PrintFilePath}
\DeclareStringOption[true]{TwoSide}
\ProcessKeyvalOptions*
\wlog{Degree: {\Degree}}
\wlog{MajorFormat: {\MajorFormat}}
\wlog{Type: {\Type}}
\wlog{Period: {\Period}}
\wlog{BlindReview: {\BlindReview}}
\wlog{Language: {\Language}}
\wlog{GradLevel: {\GradLevel}}
\wlog{PrintFilePath: {\PrintFilePath}}
\PassOptionsToPackage{no-math}{fontspec}
\PassOptionsToPackage{AutoFakeBold}{xeCJK}
\usepackage{xifthen}
\ifthenelse{\equal{\TwoSide}{true}}
{
\LoadClass[
zihao=-4,
UTF8,
twoside,
openright
]{ctexrep}
}
{
\LoadClass[
zihao=-4,
UTF8
]{ctexrep}
}
\input{config/packages}
\newcommand{\TitleTypeName}{浙江大学研究生课程论文}
\input{config/path}
\input{config/commands}
\input{config/format/format}