This repository has been archived by the owner on Mar 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cover-def.cfg
206 lines (171 loc) · 3.69 KB
/
cover-def.cfg
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
\ProvidesFile{cover-def.cfg}
\RequirePackage{xeCJKfntef}
\xeCJKsetup{
underline={
format=\color{black},
thickness=.5pt
}
}
\RequirePackage{calc}
\def\ict@clasification{密级}
\newcommand{\clasification}[1]{
\def\ict@clasification{#1}
}
\def\ict@supervisorname{导师姓名}
\newcommand\supervisorname[1]{
\def\ict@supervisorname{#1}
}
\def\ict@supervisorpos{研究员}
\newcommand{\supervisorpos}[1]{
\def\ict@supervisorpos{#1}
}
\def\ict@supervisorins{\ict@institute}
\newcommand{\supervisorins}[1]{
\def\ict@supervisorins{#1}
}
\def\ict@degree{工学博士}
\newcommand{\degree}[1]{
\def\ict@degree{#1}
}
\def\ict@major{计算机体系结构}
\newcommand{\major}[1]{
\def\ict@major{#1}
}
\def\ict@institute{中国科学院计算技术研究所}
\newcommand{\institute}[1]{
\def\ict@institute{#1}
}
\def\ict@logoimg{中国科学院大学}
\newif\ifUsedlogo
\Usedlogofalse
\newcommand{\logoimg}[1]{
\IfFileExists{#1}{
\Usedlogotrue
\def\ict@logoimg{#1}
}{}
}
\def\ictunderline[#1]#2{
\underline{
\makebox[#1][c]{#2}
}
}
\let\origmaketitle\maketitle
\renewcommand{\maketitle}{
\thispagestyle{empty}
\begin{center}
\parindent\z@
\rmfamily
\zihao{4}
\bfseries
%%密级
\vspace{40pt}
\hfill 密级:\ictunderline[5em]{\ict@clasification}
\vspace{50pt}
%%国科大logo
\ifUsedlogo
\includegraphics[width=12.81cm,height=2.17cm]{\ict@logoimg}
\else
\parbox[c][2.17cm][s]{\textwidth}{
\zihao{1}
\centering
\ict@logoimg
}
\fi
\par
%%博士学位论文说明
\vspace{40pt}
{
\normalfont
\sffamily
\zihao{1}
博士学位论文
}
%%标题
\vspace{42pt}
{
\zihao{3}
%\ictunderline[\textwidth]{\@title}
\newdimen \titlewidth
\setlength{\titlewidth}{\widthof{\@title}}
\ifdim \titlewidth > \textwidth
\CJKunderline{\@title}
\else
\CJKunderline{\hfill \@title \hfill}
\fi
}
\vspace{55pt}
\begin{table}[h]
\rmfamily
\bfseries
\zihao{4}
\renewcommand{\arraystretch}{1.25}
\begin{tabular}{ll}
作者姓名:& \ictunderline[.8\textwidth]{\@author} \\
指导教师:& \ictunderline[.8\textwidth]{\ict@supervisorname\quad\ict@supervisorpos} \\
& \ictunderline[.8\textwidth]{\ict@supervisorins}\\
学位类别:& \ictunderline[.8\textwidth]{\ict@degree}\\
学科专业:& \ictunderline[.8\textwidth]{\ict@major}\\
研~~究~~所:& \ictunderline[.8\textwidth]{\ict@institute}
\end{tabular}
\end{table}
\vspace{50pt}
\@date
\end{center}
\clearpage
\thispagestyle{empty}
\cleardoublepage
}
\def\ict@entitle{A XeLaTex Class for PH.D thesis of ICT, CAS}
\newcommand{\entitle}[1]{
\def\ict@entitle{#1}
}
\def\ict@enauthor{Author}
\newcommand{\enauthor}[1]{
\def\ict@enauthor{#1}
}
\def\ict@degreeen{Engineering}
\newcommand{\degreeen}[1]{
\def\ict@degreeen{#1}
}
\def\ict@enins{Institute of Computing Technology Chinese Academy of Sciences}
\newcommand{\enins}[1]{
\def\ict@enins{#1}
}
\def\ict@dateen{July,2014}
\newcommand{\dateen}[1]{
\def\ict@dateen{#1}
}
\newcommand\makeentitle{
\thispagestyle{empty}
\begin{center}
\parindent\z@
\bfseries
\zihao{4}
\vspace*{70pt}
{
\zihao{3}
\newdimen \entitlewidth
\setlength{\entitlewidth}{\widthof{\ict@entitle}}
\ifdim \entitlewidth > \textwidth
\CJKunderline{\ict@entitle}
\else
\CJKunderline{\hfill \ict@entitle \hfill}
\fi
\vspace*{45pt}
By \\
\ict@enauthor
}
\vspace*{60pt}
A Dissertation Submitted to \\
The University of Chinese Academy of Sciences \\
In partial fulfillment of the requirement \\
For the degree of \\
Doctor of \ict@degreeen
\vspace*{45pt}
\ict@enins \\
\ict@dateen
\end{center}
\clearpage
\thispagestyle{empty}
\cleardoublepage
}