-
Notifications
You must be signed in to change notification settings - Fork 1
/
dutthesis-utf8.cfg
237 lines (218 loc) · 9.22 KB
/
dutthesis-utf8.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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
%% This is file `dutthesis-utf8.cfg',
%% modified from seuthesis-utf8.cfg,
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% dutthesis.dtx (with options: `cfg')
%%
%% Copyright (C) 2007-2012 by Xu Yuan <xuyuan.cn@gmail.com>
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3a
%% of this license or (at your option) any later version.
%% The latest version of this license is in:
%%
%% http://www.latex-project.org/lppl.txt
%%
%% and version 1.3a or later is part of all distributions of LaTeX
%% version 2004/10/01 or later.
%%
%% To produce the documentation run the original source files ending with `.dtx'
%% through LaTeX.
%%
\ProvidesFile{dutthesis.cfg}
\makeatletter
\newcommand{\universityname}{大连理工大学}
\newcommand{\universitynameeng}{Dalian University of Technology}
\newcommand{\schoolcodepre}{学校代码}
\newcommand{\schoolcode}{10141}
\newcommand{\secretlevelpre}{密级}
\newcommand{\categorynumberpre}{分类号}
\newcommand{\studentidpre}{学~~号:}
\newcommand{\authorpre}{作者姓名:}
\newcommand{\advisorpre}{指导教师:}
\newcommand{\appdegreepre}{申请学位类别}
\newcommand{\majorpre}{学科、专业:}
\newcommand{\submajorpre}{二级学科名称}
\ifdoctordegree
\newcommand{\defenddatepre}{答辩日期}
\fi
%-------------------
%- 大连理工大学的硕士特殊要求 -
%-------------------
\ifmasterdegree
\newcommand{\defenddatepre}{完成日期}
\fi
\newcommand{\authorizeorganizationpre}{学位授予单位}
\newcommand{\@authorizeorganization}{~~大~连~理~工~大~学~~}
\newcommand{\authorizedatepre}{学位授予日期}
\newcommand{\committeechairpre}{答辩委员会主席}
\newcommand{\readerpre}{评~~~~~~~~~阅~~~~~~~~~人}
\newcommand{\@abstracttitle}{摘\quad 要}
\newcommand{\@abstracttitletoc}{摘要}
\newcommand{\@terminologytitle}{本论文专用术语的注释表}
\renewcommand{\today}{\the\year~年~\the\month~月~\the\day~日}
\newcommand{\addresspre}{设计地点}
\newcommand{\bachelortitle}{毕业设计(论文)报告}
\newcommand{\durationpre}{起讫日期}
\newcommand{\coadvisorpre}{顾问老师}
\ifbachelordegree
\newcommand{\@degree}{学士}
\newcommand{\@appdegree}{学士}
\newcommand{\academicdegreeeng}{Bachelor of Engineering}
\newcommand{\titlepre}{题目\quad}
\newcommand{\departmentpre}{院(系)}
\renewcommand{\majorpre}{专\quad 业}
\renewcommand{\studentidpre}{学\hspace*{2.2em}号}
\newcommand{\studentnamepre}{学生姓名}
\renewcommand{\advisorpre}{指导教师}
\else\ifmasterdegree
\newcommand{\@degree}{硕士}
\newcommand{\@appdegree}{硕士}
\newcommand{\introcutionName}{引~~言}
\newcommand{\academicdegreeeng}{Master of Engineering}\relax
\else
\newcommand{\@degree}{博士}
\newcommand{\@appdegree}{博士}
\newcommand{\academicdegreeeng}{Doctor of Engineering}\relax
\fi
\fi
\newcommand{\@academicdegree}{\@degree{}学位论文}
\makeatother
\newcommand{\AppendixTOCName}{附录}
\newcommand{\EAppendixTOCName}{Appendix}
\newcommand{\signline}{\underline{\makebox[1.5cm][s]{}}}
\newcommand{\longsignline}{\underline{\makebox[5.3cm][s]{}}}
\newcommand{\shortsignline}{\underline{\makebox[0.8cm][s]{}}}
\newcommand{\dutdeclare}{\xiaosihao
{\vspace*{0.08in}
\begin{center}
{\hei\xiaoerhao \ifmasterdegree\song\fi \universityname 学位论文独创性声明}
\end{center}
\vspace{0.2in}
{\ifmasterdegree\yahei\fi \linespacing{1.5} \xiaosihao
\qquad
作者郑重声明:所呈交的学位论文,是本人在导师的指导下进行研究工作所取得的成果。
尽我所知,除文中已经注明引用内容和致谢的地方外,
本论文不包含其他个人或集体已经发表的研究成果,
也不包含其他已申请学位或其他用途使用过的成果。
与我一同工作的同志对本研究所做的贡献均已在论文中做了明确的说明并表示了谢意。
若有不实之处,本人愿意承担相关法律责任。\par}
\vspace{0.1in}
{\ifmasterdegree\yahei\fi\linespacing{3.0}
\qquad 学位论文题目:\underline{\makebox[10.5cm]{\hfill\titlename\hfill}} \par
\vspace{0.15in}
~作~者~签~名:\longsignline \quad ~日期: \signline~年\shortsignline 月\shortsignline 日 \\
}
\vspace*{0.21in}
%%博士两个声明页面在一起
\ifdoctordegree
\dutauthorization
\fi
\par
}
}
%定义授权命令
\newcommand{\dutauthorization}{
\vspace*{0.1in}\xiaosihao
\begin{center}
{\hei\xiaoerhao \ifmasterdegree\song\fi \universityname 学位论文版权使用授权声明}
\end{center}
\vspace{0.12in}
{ \linespacing{1.5}
\ifmasterdegree
\yahei \sihao
\fi
\qquad 本人完全了解学校有关学位论文知识产权的规定,
在校攻读学位期间论文工作的知识产权属于\universityname ,
允许论文被查阅和借阅。
学校有权保留论文并向国家有关部门或机构送交论文的复印件和电子版,
可以将本学位论文的全部或部分内容编入有关数据库进行检索,
可以采用影印、缩印、或扫描等复制手段保存和汇编本学位论文。\par}
\vspace{0.4in}
{\ifmasterdegree\yahei\fi
%\qquad 学位论文题目: \longsignline\longsignline \par
\qquad 学位论文题目:\underline{\makebox[11.0cm]{\hfill\titlename\hfill}} \par
\vspace{0.2in}
~作~者~签~名:\longsignline ~日期: \signline~年\shortsignline 月\shortsignline 日 \par
\vspace{0.2in}
~导~师~签~名:\longsignline ~日期: \signline~年\shortsignline 月\shortsignline 日 \par
\ifdoctordegree
\vspace{0.20in}
答辩委员会主席:\underline{\makebox[4.45cm][s]{}}~日期:\signline~年\shortsignline 月\shortsignline 日
\fi
}
\par
}
\renewcommand{\contentsname}{\hfill \hei\xiaosanhao 目\quad 录\hfill} %目录名
%% 李逊测试新的图,表格目录,硕士论文不要求图标目录?
\titlecontents{figure}[0pt]{\song \xiaosihao}
{\contentslabel[\figurename ~\thecontentslabel \quad]{13mm}}{}
{\titlerule*[5pt]{.}\contentspage[\thecontentspage]
}
\titlecontents{table}[12mm]{\song \xiaosihao}
{\contentslabel[\tablename ~\thecontentslabel \quad]{13mm}}{}
{\titlerule*[5pt]{.}\contentspage[\thecontentspage]}
%% end
\titlecontents{figure}[12mm]{\song \xiaosihao}
{\contentslabel[\figurename ~\thecontentslabel \quad]{13mm}}{}
{\titlerule*[5pt]{.}\thecontentspage}
%% 标题格式
\renewcommand{\chaptername}{\thechapter}
\renewcommand{\appendixname}{附录 \thechapter}
\titleformat{\chapter}[hang]{\IfSubStr{\AppendixListAlph}{\thechapter}{\centering}{} \hei \xiaosanhao \linespacing{1.5}}{\chaptertitlename}{1em}{}%黑体 小三
\titleformat{\subchapter}[hang]{\centering\hei \xiaosanhao \linespacing{1.5}}{\thesubchapter}{1ex}{}% 黑体小三
\titleformat{\section}[hang]{\hei \sihao \linespacing{1.5}}{\thesection}{1ex}{}% 四号黑体
\titleformat{\subsection}[hang]{\hei \xiaosihao \linespacing{1.5}}{\thesubsection}{1ex}{}% 黑体小四
\titleformat{\subsubsection}[hang]{\hei \xiaosihao \linespacing{1.5}}{\thesubsubsection}{1ex}{}% 五号
\titleformat{\paragraph}[hang]{\xhei \sihao }{}{0ex}{}
\titleformat{\subparagraph}[hang]{\xhei \xiaosihao }{}{3ex}{}
\setcounter{secnumdepth}{5}
%修改交叉引用名, 推荐使用\autoref
\newcommand{\refchapter}[1]{\hyperref[#1]{第 \ref*{#1} 章}}
\newcommand{\refappendix}[1]{\hyperref[#1]{附录 \ref*{#1}}}
\newcommand{\refsec}[1]{\hyperref[#1]{\ref*{#1} 节}}
\newcommand{\refsubsec}[1]{\hyperref[#1]{\ref*{#1} 小节}}
\newcommand{\refsubsubsec}[1]{\hyperref[#1]{\ref*{#1} 子节}}
\DeclareCaptionFont{capFont}{\song\wuhao} % 表格名及图名用5号宋体
\DeclareCaptionLabelSeparator{twospace}{~~}
\makeatletter
\renewcommand\fps@figure{htbp} % 设置图浮动的默认参数
\renewcommand\fps@table{htbp}
\makeatother
\makeatletter
\newcommand{\Mdenote}{\centering \chapter*{主要符号}}
\newcommand{\@acknowledgementtitle}{\hei \xiaosanhao 致\quad 谢}
\newcommand{\@acknowledgementtitletoc}{致谢}
\newcommand{\@resumetitle}{作者简介}
\newcommand{\@resumetitletoc}{作者简介}
\newcommand{\@publicstitle}{攻读\@degree 学位期间科研项目及科研成果}
\newcommand{\@publicstitletoc}{攻读\@degree 学位期间科研项目及科研成果}
%\newcommand{\@referecetitle}{参~考~文~献}
\newcommand{\@referecetitletoc}{参考文献}
\newcommand{\@referecetitletoe}{Reference}
%\renewcommand\bibname{\centerline{\hei \xiaosanhao 参考文献}\global\def\bibname{参考文献}}
\renewcommand\bibname{\hfill\hei \xiaosanhao 参~考~文~献 \hfill}
%\renewcommand{\bibname}{}
\newcommand{\SchoolThesis}{\universityname\@degree 学位论文}
\makeatother
\IndexPrologue{\chapter*{索\quad 引}}
%----------------------
%- custrum command -
%----------------------
\renewcommand{\figureautorefname}{图}
\renewcommand{\tableautorefname}{表}
%\renewcommand{\equationautorefname}{方程}
\renewcommand{\figurename}{图}
%\renewcommand{\sectionautorefname}{节}
%\renewcommand{\sectionautorefname}{节}
%\renewcommand{\subsectionautorefname}{小节}
\def\equationautorefname#1#2\null{方程#1(#2\null)}
\def\chapterautorefname#1#2\null{第#1#2 章}
\def\subsectionautorefname#1#2\null{#1#2 小节}
\def\sectionautorefname#1#2\null{#1#2 节}
\endinput
%%
%% End of file `dutthesis-utf8.cfg'.
%% Thanks for seuthesis --lixun