Latex 博客模板-基于电子科技大学学位论文latex模板

主要修改了原工程的thesis.clx文件,主要修改了

1 封面LOGO 2 封面个人信息 3 去掉英文摘要、英文译文等章节 ,使内容更适合paper。

修改的代码如下:

  1 %%
  2 %% This is file `uestcthesis.cls',
  3 %% generated with the docstrip utility.
  4 %%
  5 %% The original source files were:
  6 %%
  7 %% uestcthesis.dtx  (with options: `class')
  8 %% 
  9 %% This is a generated file.
 10 %% 
 11 %%  Copyright 2012-2013 Shi Fujun <shifujun@foxmail.com>
 12 %% 
 13 %%  This work may be distributed and/or modified under the
 14 %%  conditions of the LaTeX Project Public License, either version 1.3
 15 %%  of this license or (at your option) any later version.
 16 %%  The latest version of this license is in
 17 %%    http://www.latex-project.org/lppl.txt
 18 %%  and version 1.3 or later is part of all distributions of LaTeX
 19 %%  version 2005/12/01 or later.
 20 %% 
 21 %%  This work has the LPPL maintenance status `maintained'.
 22 %% 
 23 %%  The Current Maintainer of this work is Shi Fujun <shifujun@foxmail.com>.
 24 %% 
 25 %%  This work consists of the files uestcthesis.dtx, uestcthesis.ins
 26 %%  and the derived file uestcthesis.cls, uestcthesis.bst and beamerthemeuestcthesis.sty.
 27 %%  Other files in this work's package are belongs to the respective owners.
 28 %% 
 29 
 30 NeedsTeXFormat{LaTeX2e}[2011/06/27]
 31 ProvidesClass{uestcthesis}
 32     [2013/06/07 v0.4.8 UESTC thesis class]
 33 LoadClass[cs4size,UTF8,fancyhdr,hyperref,fntef,openany]{ctexbook}[2011/03/11]
 34 RequirePackage{etoolbox}[2011/01/03]
 35 RequirePackage{ifthen}
 36 
ewcommand{achelor@uestcthesis}{
 37 
ewcommand{degree@uestcthesis}{bachelor}
 38 
ewcommand{achelortitlepage@uestcthesis}{}%先声明宏,稍后定义。
 39 
ewcommand{	itlepage@degree}{achelortitlepage@uestcthesis}
 40 
 41 
ewcommand{multibibflag@uestcthesis}{}
 42 
 43 
ewcommand{	hesisname@degree}{天线领域的一名小学生}
 44 
 45 
ewcommand{chapternumberformat@uestcthesis}{arabic{chapter}}
 46 }
 47 
ewcommand{master@uestcthesis}{
 48 
ewcommand{degree@uestcthesis}{master}
 49 
ewcommand{mastertitlepage@uestcthesis}{}%先声明宏,稍后定义。
 50 
ewcommand{	itlepage@degree}{mastertitlepage@uestcthesis}
 51 
 52 
ewcommand{multibibflag@uestcthesis}{TRUE}
 53 
 54 
ewcommand{	hesisname@degree}{博客随笔}
 55 
 56 
ewcommand{publicationsname@degree}{研究成果}
 57 
 58 
ewcommand{@degree}{硕士}
 59 
 60 
ewcommand{publicationsname@english}{Research Results Obtained During the Study for Master Degree}
 61 
ewcommand{	hesisname@english}{Master Thesis of University of Electronic Science and Technology of China}
 62 
 63 
ewcommand{chapternumberformat@uestcthesis}{chinese{chapter}}
 64 }
 65 
ewcommand{doctor@uestcthesis}{
 66 
ewcommand{degree@uestcthesis}{doctor}
 67 
ewcommand{doctortitlepage@uestcthesis}{}%先声明宏,稍后定义。
 68 
ewcommand{	itlepage@degree}{doctortitlepage@uestcthesis}
 69 
 70 
ewcommand{multibibflag@uestcthesis}{TRUE}
 71 
 72 
ewcommand{	hesisname@degree}{电子科技大学博士学位论文}
 73 
 74 
ewcommand{publicationsname@degree}{攻博期间取得的研究成果}
 75 
 76 
ewcommand{@degree}{博士}
 77 
 78 
ewcommand{publicationsname@english}{Research Results Obtained During the Study for Doctor Degree}
 79 
ewcommand{	hesisname@english}{Doctor Thesis of University of Electronic Science and Technology of China}
 80 
 81 
ewcommand{chapternumberformat@uestcthesis}{chinese{chapter}}
 82 }
 83 
ewcommand{	ocname@uestcthesis}{zihao{5}目enspace 录}
 84 
ewcommand{chaptername@uestcthesis}{
 85 CTEXsetup[ name={第,章},
 86             number={chapternumberformat@uestcthesis}
 87             ]{chapter}
 88             }
 89 
ewcommand{chaptermarkfix@uestcthesis}{
 90 
enewcommand{chaptermark}[1]{markboth{第chapternumberformat@uestcthesis章~##1 }{}}
 91 }
 92 
ewcommand{acknowledgementsname@uestcthesis}{致enspace 谢}
 93 
ewcommand{glossaryname@uestcthesis}{主要符号表}
 94 
ewcommand{entryname@uestcthesis}{符号或术语}
 95 
ewcommand{descriptionname@uestcthesis}{说明}
 96 
ewcommand{glspageheader@uestcthesis}{页码}
 97 
ewcommand{english@uestcthesis}{
 98 
enewcommand{	ocname@uestcthesis}{zihao{5}Contents}
 99 
enewcommand{chaptername@uestcthesis}{
100 CTEXsetup[ name={Chapterspace,},
101             number={arabic{chapter}}
102             ]{chapter}
103             }
104 
enewcommand{chaptermarkfix@uestcthesis}{}
105 
enewcommand{chaptermark}[1]{markboth{Chapterspacearabic{chapter}~##1 }{}}
106 
107 
enewcommand{acknowledgementsname@uestcthesis}{Acknowledgements}
108 
enewcommand{CTEX@bibname}{References}
109 
enewcommand{publicationsname@degree}{publicationsname@english}
110 
enewcommand{	hesisname@degree}{	hesisname@english}
111 
enewcommand{CTEX@figurename}{Figure}
112 
enewcommand{CTEX@tablename}{Table}
113 
enewcommand{glossaryname@uestcthesis}{Glossary}
114 
enewcommand{entryname@uestcthesis}{Notation}
115 
enewcommand{descriptionname@uestcthesis}{Description}
116 
enewcommand{glspageheader@uestcthesis}{Page}
117 
enewcommand{CTEX@appendixname}{Appendix~}
118 }
119 DeclareOption{bachelor}{achelor@uestcthesis}
120 DeclareOption{master}{master@uestcthesis}
121 DeclareOption{doctor}{doctor@uestcthesis}
122 DeclareOption{english}{english@uestcthesis}
123 ProcessOptions
elax
124 RequirePackage[a4paper,headheight=12.65pt,headsep=4mm,includeheadfoot,centering,
125                 top=2.75cm,left=3cm]{geometry}
126 linespread{1.391}
127 parskip=0bp plus 10bp minus 1bp
128 
aggedbottom
129 RequirePackage{graphicx,calc,float,texnames}
130 RequirePackage[format=hang,labelsep=space]{caption}
131 intextsep=6bp
132 captionsetup[figure]{aboveskip=0bp,belowskip=-7mm+6bp}
133 captionsetup[table]{aboveskip=0bp,belowskip=0bp}
134 RequirePackage{booktabs,tabularx,threeparttable,longtable}
135 DeclareCaptionFont{capfont}{zihao{5}}
136 captionsetup{font=capfont}
137 
enewcommand{	hefigure}{arabic{chapter}	extendasharabic{figure}}
138 
enewcommand{	hetable}{arabic{chapter}	extendasharabic{table}}
139 graphicspath{{pics/}}
140 RequirePackage[below]{placeins}
141 RequirePackage{flafter}
142 
ewcommand{
ewcmds@uestcthesis}{
143 
ewcommand{pic}[4][htbp]{
144 egin{figure}[##1]
145 centering
146   includegraphics[##3]{##4}
147   caption{##2}
148   label{##4}
149 end{figure}
150 }
151 
ewcommand{subpiclabel}{}%定义一个空的多图环境整体的标签变量
152 
ewcommand{subpiccaption}{}%定义一个空的多图环境整体的标题变量
153 
ewenvironment{pics}[3][htbp]{%定义多图环境
154 
enewcommand{subpiclabel}{##3}%设置多图环境整体的标签
155 
enewcommand{subpiccaption}{##2}%设置多图环境整体的标题。这里先定义两个空变量,又设置值,是因为在定义一个环境时,环境结尾中不能调用##2,##3等传入的值。所以要在环境结尾中插入标题和标签就只能这么做了。
156 egin{figure}[##1]
157 centering}
158 {caption{subpiccaption}
159 label{subpiclabel}
160 end{figure}
161 }
162 
ewcommand{addsubpic}[3]{
163  subfigure[##1]{label{##3}includegraphics[##2]{##3}}
164 }
165 
ewcommand{	hreelinetable}[8][htbp]{
166 egin{table}[##1]
167 zihao{5}%管理规范中要求表格中文字为五号字。
168 centering
169 egin{threeparttable}
170 caption{##5}
171 label{##2}
172 egin{tabularx}{##3}{##4}
173 	oprule[0.1em]
174 ##6
175 midrule[0.05em]
176 ##7
177 ottomrule[0.1em]
178 end{tabularx}
179 ifblank{##8}{}{
180 egin{tablenotes}
181 ##8
182 end{tablenotes}
183 }
184 end{threeparttable}
185 end{table}
186 }
187 
ewcommand{longthreelinetable}[6]{
188 {
189 zihao{5}%管理规范中要求表格中文字为五号字。
190 centering
191 egin{longtable}{##4}
192 caption{##2}label{##1}\
193 	oprule[0.1em]
194 ##5
195 midrule[0.05em]
196 endfirsthead
197 multicolumn{##3}{r}{footnotesize 接上页}\
198 	oprule[0.1em]
199 ##5
200 midrule[0.05em]
201 endhead
202 ottomrule[0.1em]
203 multicolumn{##3}{r}{footnotesize 接下页}\
204 endfoot
205 ottomrule[0.1em]
206 endlastfoot
207 ##6
208 end{longtable}
209 }
210 }
211 
ewcommand{pictable}[4][htbp]{
212 egin{table}[##1]
213 centering
214 caption{##2}
215 label{##4}
216 includegraphics[##3]{##4}
217 end{table}
218 }
219 }%
ewcmds@uestcthesis定义完毕
220 
ewcommand{mainmatterfancy}{
221 fancyhf{}
222 fancyhead[OC]{zihao{5}leftmark}%奇数页居中打印章标题
223 fancyhead[EC]{zihao{5}	hesisname@degree}%偶数页居中打印论文全名
224 fancyfoot[C]{zihao{-5}	hepage}%页码位于页面底端,居中打印。
225 }
226 
ewcommand{Cabstractfancy}{%
227 fancyhf{}%
228 fancyhead[C]{zihao{5}摘要}%页眉居中打印“摘要”
229 fancyfoot[C]{zihao{-5}	hepage}%页码位于页面底端,居中打印。
230 }
231 
ewcommand{Eabstractfancy}{
232 fancyhf{}%
233 fancyhead[C]{zihao{5}ABSTRACT}%页眉居中打印“ABSTRACT”
234 fancyfoot[C]{zihao{-5}	hepage}%页码位于页面底端,居中打印。
235 }
236 
ewcommand{	ocmatterfancy}{
237 fancyhf{}
238 fancyhead[C]{	ocname@uestcthesis}%页眉居中打印“目 录”
239 fancyfoot[C]{zihao{-5}	hepage}%页码位于页面底端,居中打印。
240 }
241 
ewcommand{glossarymatterfancy}{%定义主要符号表版式设置
242 fancypagestyle{plain}{
243 fancyhf{}
244 fancyhead[C]{zihao{5}glossaryname@uestcthesis}%
245 fancyfoot[C]{zihao{-5}	hepage}%
246 }
247 
enewcommand{glossarypreamble}{%
248 fancyhead[C]{zihao{5}glossaryname@uestcthesis}%页眉居中打印“主要符号表”
249 }
250 }
251 
ewcommand{Cabstractmatter}{
252 setcounter{page}{1}%页码重置为1
253 pagenumbering{Roman}%页码使用大写罗马数字
254 pagestyle{fancy}
255 Cabstractfancy
256 fancypagestyle{plain}{Cabstractfancy}
257 }
258 
ewcommand{Eabstractmatter}{
259 pagestyle{fancy}
260 Eabstractfancy
261 fancypagestyle{plain}{Eabstractfancy}
262 }
263 
ewcommand{	ocmatter}{
264 pagestyle{fancy}
265 	ocmatterfancy
266 fancypagestyle{plain}{	ocmatterfancy}
267 }
268 
enewcommand{mainmatter}{
269 
ewpage
270 setcounter{page}{1}
271 pagenumbering{arabic}
272 pagestyle{fancy}
273 chaptermarkfix@uestcthesis %修正页眉章号显示不正确
274 mainmatterfancy%设置正文的版式
275 fancypagestyle{plain}{mainmatterfancy}
276 }
277 
ewcommand{stuid}[1]{
278 
ewcommand{@stuid}{#1}
279 }
280 
ewcommand{major}[1]{
281 
ewcommand{@major}{#1}
282 }
283 
ewcommand{school}[1]{
284 
ewcommand{@school}{#1}
285 }
286 
ewcommand{adviser}[3]{
287 
ewcommand{@advisername}{#1}%姓名
288 
ewcommand{@advisertitle}{#2}%职称
289 
ewcommand{@adviserinstitution}{#3}%工作单位
290 }
291 
ewcommand{adviserB}[3]{
292 
ewcommand{@adviserBname}{#1}%姓名
293 
ewcommand{@adviserBtitle}{#2}%职称
294 
ewcommand{@adviserBinstitution}{#3}%工作单位
295 }
296 
ewcommand{adviserC}[3]{
297 
ewcommand{@adviserCname}{#1}%姓名
298 
ewcommand{@adviserCtitle}{#2}%职称
299 
ewcommand{@adviserCinstitution}{#3}%工作单位
300 }
301 
ewcommand{adviserD}[3]{
302 
ewcommand{@adviserDname}{#1}%姓名
303 
ewcommand{@adviserDtitle}{#2}%职称
304 
ewcommand{@adviserDinstitution}{#3}%工作单位
305 }
306 
ewcommand{university}[1]{
307 
ewcommand{@university}{#1}
308 }
309 
enewcommand{date}[3]{
310 
enewcommand{@date}{#1年#2月#3日}
311 
ewcommand{@year}{#1}%用于pdf元信息
312 }
313 
ewcommand{oraldefensedate}[3]{
314 
ewcommand{@oraldefensedate}{#1年#2月#3日}
315 }
316 
ewcommand{awarddate}[3]{
317 
ewcommand{@awarddate}{#1年#2月#3日}
318 }
319 
ewcommand{classnumber}[1]{
320 
ewcommand{@classnumber}{#1}
321 }
322 
ewcommand{securityclassification}[1]{
323 
ewcommand{@securityclassification}{#1}
324 }
325 
ewcommand{UDC}[1]{
326 
ewcommand{@UDC}{#1}
327 }
328 
ewcommand{chairman}[1]{
329 
ewcommand{@chairman}{#1}
330 }
331 
ewcommand{appraiser}[1]{
332 
ewcommand{@appraiser}{#1}
333 }
334 
ewcommand{englishtitle}[1]{
335 
ewcommand{@englishtitle}{#1}
336 }
337 
ewcommand{englishmajor}[1]{
338 
ewcommand{@englishmajor}{#1}
339 }
340 
ewcommand{englishauthor}[1]{
341 
ewcommand{@englishauthor}{#1}
342 }
343 
ewcommand{englishadvisor}[1]{
344 
ewcommand{@englishadvisor}{#1}
345 }
346 
ewcommand{englishshcool}[1]{
347 
ewcommand{@englishshcool}{#1}
348 }
349 egin{filecontents*}{logo.tex}
350 documentclass[pstricks=true]{standalone}
351 usepackage{pstricks}
352 
353 egin{document}
354 %%Creator: 0.48.3.1
355 %%Please note this file requires PSTricks extensions
356 psset{xunit=.5pt,yunit=.5pt,runit=.5pt}
357 egin{pspicture}(11072.75488281,3090.08740234)
358 {
359 
ewrgbcolor{curcolor}{0.17254902 0.17254902 0.16862746}
360 pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
361 此处省略N行
362 end{pspicture}
363 
364 end{document}
365 end{filecontents*}
366 
367 %    immediatewrite18{latex logo}%
368 %    immediatewrite18{dvips logo}%
369 %    IfFileExists{logo.dvi}{
370 %    immediatewrite18{ps2pdf logo.ps}%
371 %    }{}
372 
ewcommand{uestclogo}{
373 IfFileExists{tmp.pdf}{includegraphics[width=5cm]{tmp.pdf}}{
374 {zihao{6}此文档不是用正确编译脚本生成的。请用compile.bat或compile.sh生成才能保证编译结果完全正确,包括此处的LOGO。
375 如果您是从MikTeX或CTAN.org处得到的此模板,请访问url{https://github.com/shifujun/UESTCthesis}获取最新版本和相应的编译脚本。}
376 }
377 }
378 
ewcommand{uestclogobadge}{
379 IfFileExists{logo.pdf}{includegraphics*[height=5cm,trim=0 0 140cm 0]{logo.pdf}}{
380 {zihao{6}此文档不是用正确编译脚本生成的。请用compile.bat或compile.sh生成才能保证编译结果完全正确,包括此处的LOGO。
381 如果您是从MikTeX或CTAN.org处得到的此模板,请访问url{https://github.com/shifujun/UESTCthesis}获取最新版本和相应的编译脚本。}
382 }
383 }
384 ifdefstring{degree@uestcthesis}{bachelor}{
385 
enewcommand{achelortitlepage@uestcthesis}{
386 
enewcommand{maketitle}{
387 egin{titlepage}
388 egin{center}
389 zihao{3}
390 uestclogo\
391 vspace{1cm}
392 
esizebox{!}{1cm}{zihao{0} 天hspace{0.30em}线hspace{0.30em}领hspace{0.30em}域hspace{0.30em}的hspace{0.30em}一hspace{0.30em}名hspace{0.30em}小hspace{0.30em}学hspace{0.30em}生}\[3mm]
393 {f TECHNOLOGICAL BLOGS}\[1cm]
394 
enewcommand{ULthickness}{0.8pt}
395 
enewcommand{CJKunderlinecolor}{color{black}}
396 linespread{1.25}
397 
oindent
398 parbox[t][14ex][t]{linewidth}{centering
399 {heitizihao{3} 题目}zihao{3}{uline{@title}}
400 }\[3mm]
401 linespread{1.391}
402 
enewcommand{ULthickness}{0.4pt}
403 {zihao{3}姓名~}makebox[20em][c]{uline{hfill@authorhfill}}\[5mm]
404 %%{zihao{3}学qquad 号~}makebox[20em][c]{uline{hfill@stuidhfill}}\[5mm]
405 %%{zihao{3}专qquad 业~}makebox[20em][c]{uline{hfill@majorhfill}}\[5mm]
406 %%{zihao{3}学qquad 院~}makebox[20em][c]{uline{hfill@schoolhfill}}\[5mm]
407 {zihao{3}博客地址~}makebox[20em][c]{uline{hfill@advisernamehfill}}\[5mm]
408 {zihao{3}邮箱~}makebox[20em][c]{uline{hfill@universityhfill}}\[5mm]
409 {zihao{3}@date}
410 end{center}
411 end{titlepage}}}}{}
412 ifdefstring{degree@uestcthesis}{master}{
413 
enewcommand{mastertitlepage@uestcthesis}{
414 
enewcommand{maketitle}{%定义封面的格式
415 egin{titlepage}
416 egin{center}
417 {zihao{2}电enspace{}子enspace{}科enspace{}技enspace{}大enspace{}学}\
418 {zihao{-4}UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA}\
419 ~\
420 ~\
421 {zihao{0}硕士学位论文}\[12bp]
422 {fzihao{3}MASTER THESIS}\[2cm]
423 uestclogobadge\[2cm]
424 
enewcommand{ULthickness}{0.8pt}
425 
enewcommand{CJKunderlinecolor}{color{black}}
426 linespread{1.25}
427 
oindent
428 parbox[t][14ex][t]{linewidth}{centering
429 {zihao{-2} 论文题目~~}{zihao{3}uline{@title}}
430 }\[3mm]
431 linespread{1.391}
432 
enewcommand{ULthickness}{0.4pt}
433 {zihao{3}~}\
434 {zihao{3}学科专业~}makebox[20em][c]{zihao{3}uline{hfill@majorhfill}}\[5mm]
435 {zihao{3}学qquad 号~}makebox[20em][c]{zihao{3}uline{hfill@stuidhfill}}\[5mm]
436 {zihao{3}作者姓名~}makebox[20em][c]{zihao{3}uline{hfill@authorhfill}}\[5mm]
437 {zihao{3}指导教师~}makebox[20em][c]{zihao{3}uline{hfill@advisernamehfill}}\[5mm]
438 end{center}
439 
ewpage
440 	hispagestyle{empty}
441 
oindent
442 {zihao{-4}分类号}makebox[15em][l]{zihao{-4}uline{~~~@classnumberhfill}}
443 {zihao{-4}密级}makebox[15em][l]{zihao{-4}uline{~~~@securityclassificationhfill}}\
444 {zihao{-4}UDC	extsuperscript{注1}!}makebox[15em][l]{zihao{-4}uline{~~~@UDChfill}}\
445 egin{center}
446 {zihao{-0}学quad{}位quad{}论quad{}文}\
447 {zihao{3}~}\
448 makebox[linewidth][c]{zihao{3}uline{hfill@titlehfill}}\
449 {zihao{-4}(题名和副题名)}\
450 {zihao{5}~}\
451 {zihao{5}~}\
452 makebox[10em][c]{zihao{3}uline{hfill@authorhfill}}\
453 {zihao{-4}(作者姓名)}\
454 {zihao{-4}~}\
455 {zihao{5}~}\
456 {zihao{-4}指导教师}makebox[29em][c]{zihao{-4}uline{hfill@advisername 、@advisertitle 、@adviserinstitution hfill}}\[5bp]
457 {zihao{-4}qquadqquad}makebox[29em][c]{zihao{-4}uline{hfillifthenelse{isundefined{@adviserBname}}{}{@adviserBname 、@adviserBtitle 、@adviserBinstitution }hfill}}\[5bp]
458 {zihao{-4}qquadqquad}makebox[29em][c]{zihao{-4}uline{hfillifthenelse{isundefined{@adviserCname}}{}{@adviserBname 、@adviserCtitle 、@adviserCinstitution }hfill}}\[5bp]
459 {zihao{-4}qquadqquad}makebox[29em][c]{zihao{-4}uline{hfillifthenelse{isundefined{@adviserDname}}{}{@adviserBname 、@adviserDtitle 、@adviserDinstitution }hfill}}\[5bp]
460 {zihao{-4}(姓名、职称、单位名称)}\[8bp]
461 end{center}
462 {zihao{-4}申请学位级别}makebox[10em][l]{zihao{-4}uline{hfill@degreehfill}}
463 {zihao{-4}学科专业}makebox[15em][l]{zihao{-4}uline{hfill@majorhfill}}\[13bp]
464 {zihao{-4}提交论文日期}makebox[10em][l]{zihao{-4}uline{hfill@datehfill}}
465 {zihao{-4}论文答辩日期}makebox[13em][l]{zihao{-4}uline{hfill@oraldefensedatehfill}}\[13bp]
466 {zihao{-4}学位授予单位和日期}makebox[26em][l]{zihao{3}uline{hfill 电子科技大学hfill@awarddate}}\[13bp]
467 {zihao{-4}答辩委员会主席}makebox[16em][l]{zihao{-4}uline{hfill@chairmanhfill}}\[13bp]
468 {zihao{-4}评阅人}makebox[32em][l]{zihao{-4}uline{hfill@appraiserhfill}}\
469 vfill
470 {zihao{5}注1:注明《国际十进分类法UDC》的类号。}
471 
ewpage
472 	hispagestyle{empty}
473 egin{center}
474 {zihao{-4}~}\
475 {zihao{-4}~}\
476 {zihao{-4}~}\
477 {fzihao{-2}@englishtitle}\
478 vfill
479 {zihao{-3}A Thesis Submitted to}\[1ex]
480 {zihao{-3}University of Electronic Science and Technology of China}\
481 vspace{3cm}
482 makebox[6em][r]{zihao{4}Major:}makebox[25em][l]{zihao{4}uline{hfill@englishmajorhfill}}\[1ex]
483 makebox[6em][r]{zihao{4}Author:}makebox[25em][l]{zihao{4}uline{hfill@englishauthorhfill}}\[1ex]
484 makebox[6em][r]{zihao{4}Advisor:}makebox[25em][l]{zihao{4}uline{hfill@englishadvisorhfill}}\[1ex]
485 makebox[6em][r]{zihao{4}School:}makebox[25em][l]{zihao{4}uline{hfill@englishshcoolhfill}}\[1ex]
486 end{center}
487 
ewpage
488 	hispagestyle{empty}
489 linespread{1.5}
490 egin{center}
491 {fzihao{-2}独创性声明}par
492 end{center}
493 {zihao{4}qquad 本人声明所呈交的学位论文是本人在导师指导下进行的研究工作及取得的研究成果。据我所知,除了文中特别加以标注和致谢的地方外,论文中不包含其他人已经发表或撰写过的研究成果,也不包含为获得电子科技大学或其它教育机构的学位或证书而使用过的材料。与我一同工作的同志对本研究所做的任何贡献均已在论文中作了明确的说明并表示谢意。par
494 ~par
495 作者签名:makebox[5em][l]{uline{hfill}}hfill
496 日期:qquad{}年qquad{}月qquad{}日 par
497 ~par
498 egin{center}
499 {fzihao{-2}论文使用授权}par
500 end{center}
501 {zihao{4}qquad 本学位论文作者完全了解电子科技大学有关保留、使用学位论文的规定,有权保留并向国家有关部门或机构送交论文的复印件和磁盘,允许论文被查阅和借阅。本人授权电子科技大学可以将学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存、汇编学位论文。par
502 (保密的学位论文在解密后应遵守此规定) par
503 ~par
504 }
505 qquad 作者签名:makebox[5em][l]{uline{hfill}}hfill
506 导师签名:makebox[7em][l]{uline{hfill}}par
507 hfill 日期:qquad{}年qquad{}月qquad{}日 par
508 }
509 linespread{1.391}
510 end{titlepage}}}}{}
511 ifdefstring{degree@uestcthesis}{doctor}{
512 
enewcommand{doctortitlepage@uestcthesis}{
513 
enewcommand{maketitle}{%定义封面的格式
514 egin{titlepage}
515 egin{center}
516 {zihao{2}电enspace{}子enspace{}科enspace{}技enspace{}大enspace{}学}\
517 {zihao{-4}UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA}\
518 ~\
519 ~\
520 {zihao{0}博士学位论文}\[12bp]
521 {fzihao{3}DOCTORAL DISSERTATION}\[2cm]
522 uestclogobadge\[2cm]
523 
enewcommand{ULthickness}{0.8pt}
524 
enewcommand{CJKunderlinecolor}{color{black}}
525 linespread{1.25}
526 
oindent
527 parbox[t][14ex][t]{linewidth}{centering
528 {zihao{-2} 论文题目~~}{zihao{3}uline{@title}}
529 }\[3mm]
530 linespread{1.391}
531 
enewcommand{ULthickness}{0.4pt}
532 {zihao{3}~}\
533 {zihao{3}学科专业~}makebox[20em][c]{zihao{3}uline{hfill@majorhfill}}\[5mm]
534 {zihao{3}学qquad 号~}makebox[20em][c]{zihao{3}uline{hfill@stuidhfill}}\[5mm]
535 {zihao{3}作者姓名~}makebox[20em][c]{zihao{3}uline{hfill@authorhfill}}\[5mm]
536 {zihao{3}指导教师~}makebox[20em][c]{zihao{3}uline{hfill@advisernamehfill}}\[5mm]
537 end{center}
538 
ewpage
539 	hispagestyle{empty}
540 
oindent
541 {zihao{-4}分类号}makebox[15em][l]{zihao{-4}uline{~~~@classnumberhfill}}
542 {zihao{-4}密级}makebox[15em][l]{zihao{-4}uline{~~~@securityclassificationhfill}}\
543 {zihao{-4}UDC	extsuperscript{注1}!}makebox[15em][l]{zihao{-4}uline{~~~@UDChfill}}\
544 egin{center}
545 {zihao{-0}学quad{}位quad{}论quad{}文}\
546 {zihao{3}~}\
547 makebox[linewidth][c]{zihao{3}uline{hfill@titlehfill}}\
548 {zihao{-4}(题名和副题名)}\
549 {zihao{5}~}\
550 {zihao{5}~}\
551 makebox[10em][c]{zihao{3}uline{hfill@authorhfill}}\
552 {zihao{-4}(作者姓名)}\
553 {zihao{-4}~}\
554 {zihao{5}~}\
555 {zihao{-4}指导教师}makebox[29em][c]{zihao{-4}uline{hfill@advisername 、@advisertitle 、@adviserinstitution hfill}}\[5bp]
556 {zihao{-4}qquadqquad}makebox[29em][c]{zihao{-4}uline{hfillifthenelse{isundefined{@adviserBname}}{}{@adviserBname 、@adviserBtitle 、@adviserBinstitution }hfill}}\[5bp]
557 {zihao{-4}qquadqquad}makebox[29em][c]{zihao{-4}uline{hfillifthenelse{isundefined{@adviserCname}}{}{@adviserBname 、@adviserCtitle 、@adviserCinstitution }hfill}}\[5bp]
558 {zihao{-4}qquadqquad}makebox[29em][c]{zihao{-4}uline{hfillifthenelse{isundefined{@adviserDname}}{}{@adviserBname 、@adviserDtitle 、@adviserDinstitution }hfill}}\[5bp]
559 {zihao{-4}(姓名、职称、单位名称)}\[8bp]
560 end{center}
561 {zihao{-4}申请学位级别}makebox[10em][l]{zihao{-4}uline{hfill@degreehfill}}
562 {zihao{-4}学科专业}makebox[15em][l]{zihao{-4}uline{hfill@majorhfill}}\[13bp]
563 {zihao{-4}提交论文日期}makebox[10em][l]{zihao{-4}uline{hfill@datehfill}}
564 {zihao{-4}论文答辩日期}makebox[13em][l]{zihao{-4}uline{hfill@oraldefensedatehfill}}\[13bp]
565 {zihao{-4}学位授予单位和日期}makebox[26em][l]{zihao{3}uline{hfill 电子科技大学hfill@awarddate}}\[13bp]
566 {zihao{-4}答辩委员会主席}makebox[16em][l]{zihao{-4}uline{hfill@chairmanhfill}}\[13bp]
567 {zihao{-4}评阅人}makebox[32em][l]{zihao{-4}uline{hfill@appraiserhfill}}\
568 vfill
569 {zihao{5}注1:注明《国际十进分类法UDC》的类号。}
570 
ewpage
571 	hispagestyle{empty}
572 egin{center}
573 {zihao{-4}~}\
574 {zihao{-4}~}\
575 {zihao{-4}~}\
576 {fzihao{-2}@englishtitle}\
577 vfill
578 {zihao{-3}A Doctor Dissertation Submitted to}\[1ex]
579 {zihao{-3}University of Electronic Science and Technology of China}\
580 vspace{3cm}
581 makebox[6em][r]{zihao{4}Major:}makebox[25em][l]{zihao{4}uline{hfill@englishmajorhfill}}\[1ex]
582 makebox[6em][r]{zihao{4}Author:}makebox[25em][l]{zihao{4}uline{hfill@englishauthorhfill}}\[1ex]
583 makebox[6em][r]{zihao{4}Advisor:}makebox[25em][l]{zihao{4}uline{hfill@englishadvisorhfill}}\[1ex]
584 makebox[6em][r]{zihao{4}School:}makebox[25em][l]{zihao{4}uline{hfill@englishshcoolhfill}}\[1ex]
585 end{center}
586 
ewpage
587 	hispagestyle{empty}
588 linespread{1.5}
589 egin{center}
590 {fzihao{-2}独创性声明}par
591 end{center}
592 {zihao{4}qquad 本人声明所呈交的学位论文是本人在导师指导下进行的研究工作及取得的研究成果。据我所知,除了文中特别加以标注和致谢的地方外,论文中不包含其他人已经发表或撰写过的研究成果,也不包含为获得电子科技大学或其它教育机构的学位或证书而使用过的材料。与我一同工作的同志对本研究所做的任何贡献均已在论文中作了明确的说明并表示谢意。par
593 ~par
594 作者签名:makebox[5em][l]{uline{hfill}}hfill
595 日期:qquad{}年qquad{}月qquad{}日 par
596 ~par
597 egin{center}
598 {fzihao{-2}论文使用授权}par
599 end{center}
600 {zihao{4}qquad 本学位论文作者完全了解电子科技大学有关保留、使用学位论文的规定,有权保留并向国家有关部门或机构送交论文的复印件和磁盘,允许论文被查阅和借阅。本人授权电子科技大学可以将学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存、汇编学位论文。par
601 (保密的学位论文在解密后应遵守此规定) par
602 ~par
603 }
604 qquad 作者签名:makebox[5em][l]{uline{hfill}}hfill
605 导师签名:makebox[7em][l]{uline{hfill}}par
606 hfill 日期:qquad{}年qquad{}月qquad{}日 par
607 }
608 linespread{1.391}
609 end{titlepage}}}}{}
610 	itlepage@degree
611 setcounter{secnumdepth}{3}
612 chaptername@uestcthesis
613 CTEXsetup[ nameformat={},
614             numberformat={},
615             titleformat={},
616             aftername={~},
617             beforeskip={2mm},%章标题段前30磅,这里2mm是由于实际效果与MS WORD有差异而微调出的。具体测量的是页眉线到章标题文字上边的距离。
618             afterskip={30bp plus 6bp minus 6bp},%章标题段后30磅。
619             format={heitizihao{-3}centering},
620             ]{chapter}
621 CTEXsetup[ aftername={~},
622             beforeskip={18bp},
623             afterskip={18bp plus 3.6bp minus 3.6bp},
624             format={heitizihao{4}flushleft}]{section}
625 CTEXsetup[ aftername={~},
626             beforeskip={12bp},
627             afterskip={12bp plus 2.4bp minus 2.4bp},
628             format={heitizihao{4}flushleft}]{subsection}
629 CTEXsetup[ aftername={~},
630             beforeskip={6bp},
631             afterskip={6bp plus 1.2bp minus 1.2bp},
632             format={heitizihao{-4}flushleft}]{subsubsection}
633 
ewenvironment{Cabstract}[5]{
634 
ewcommand{@ckeywords}{
635 ifthenelse{equal{#1}{}}{必选关键词}{#1}%
636 ifthenelse{equal{#2}{}}{必选关键词}{,#2}%
637 ifthenelse{equal{#3}{}}{必选关键词}{,#3}%
638 ifthenelse{equal{#4}{}}{}{,#4}%
639 ifthenelse{equal{#5}{}}{}{,#5}%
640 }
641 ifthenelse{equal{#5}{}}{
642 ifthenelse{equal{#4}{}}{
643 ifthenelse{equal{#3}{}}{
644 def@pdfckeywords{#1, #2, 关键字应3-5个}
645 }{def@pdfckeywords{#1, #2, #3}}
646 }{def@pdfckeywords{#1, #2, #3, #4}}
647 }{def@pdfckeywords{#1, #2, #3, #4, #5}}
648 hypersetup{%
649 pdfkeywords={@pdfckeywords}%在pdf元信息中加入关键字
650 }
651 chapter*{摘要}%插入不带章号的摘要
652 }
653 {\[3mm]%摘要后换行空出3mm
654 {heiti 关键词:}@ckeywords%插入关键词
655 }
656 
ewenvironment{Eabstract}[5]{
657 
ewcommand{@ekeywords}{
658 ifthenelse{equal{#1}{}}{必选关键词}{#1}%
659 ifthenelse{equal{#2}{}}{必选关键词}{, #2}%
660 ifthenelse{equal{#3}{}}{必选关键词}{, #3}%
661 ifthenelse{equal{#4}{}}{}{, #4}%
662 ifthenelse{equal{#5}{}}{}{, #5}%
663 }
664 Eabstractmatter%设置英文摘要版式
665 %%chapter*{ABSTRACT}%插入不带章号的ABSTRACT
666 }
667 {\[3mm]%摘要后换行空出3mm
668 {heiti Keywords:}@ekeywords%插入关键词
669 }
670 CTEXoptions[contentsname={protectheitiprotectzihao{-3}目enspace 录}]
671 setcounter{tocdepth}{3}
672 def@dotsep{2}
673 defl@chapter#1#2{ifnum 0>c@tocdepth else vskip z@ @plus .2p@ {leftskip
674 0em
elax 
ightskip @tocrmarg parfillskip -
ightskip parindent 0em
elax
675 @afterindenttrue interlinepenalty @M leavevmode @tempdima 1em
elax advance
676 leftskip @tempdima 
ull 
obreak hskip -leftskip {heiti #1}
obreak leaders
677 hbox {$m@th mkern @dotsep muhbox {.}mkern @dotsep mu$}hfill 
obreak
678 hb@xt@ @pnumwidth {hfil 
ormalfont 
ormalcolor #2}par }fi}
679 ifdefstring{degree@uestcthesis}{bachelor}{
680 
enewcommand*l@section{@dottedtocline{1}{1em}{1em}}
681 
enewcommand*l@subsection{@dottedtocline{2}{2em}{1em}}
682 
enewcommand*l@subsubsection{@dottedtocline{3}{3em}{1em}}
683 }{
684 
enewcommand*l@section{@dottedtocline{1}{2em}{1em}}
685 
enewcommand*l@subsection{@dottedtocline{2}{4em}{1em}}
686 
enewcommand*l@subsubsection{@dottedtocline{3}{6em}{1em}}
687 }
688 RequirePackage{amsmath,kmath}
689 
enewcommand{	heequation}{arabic{chapter}	extendasharabic{equation}}
690 RequirePackage[amsmath,thmmarks]{ntheorem}
691 	heorembodyfont{
ormalfont}%字体
692 	heoremheaderfont{
ormalfont fseries hspace*{2em}}%设置缩进
693 	heoremseparator{enskip}%分隔符是一个空格
694 	heoremsymbol{}%定义环境结束符,下同
695 
ewtheorem{dingyi}{定义}[section]
696 defenddingyi{quad@endtheorem}%修正环境中最后一个字符不是英文字符时,不显示结束符的BUG。下同。
697 	heoremsymbol{}
698 
ewtheorem{gongli}{公理}[section]
699 defendgongli{quad@endtheorem}
700 	heoremsymbol{}
701 
ewtheorem{dingli}{定理}[section]
702 defenddingli{quad@endtheorem}
703 	heoremsymbol{}
704 
ewtheorem{yinli}{引理}[section]
705 defendyinli{quad@endtheorem}
706 	heoremstyle{nonumberplain}
707 	heoremsymbol{}
708 
ewtheorem{zhengming}{证明}
709 defendzhengming{quad@endtheorem}
710 RequirePackage[numbers,sort&compress]{natbib}
711 
712 
ewcommand{citeup}[1]{	extsuperscript{cite{#1}}}
713 ifblank{multibibflag@uestcthesis}{}{
714 RequirePackage[resetlabels]{multibib}
715 
ewcites{publications}{NULL}
716 ibliographystylepublications{uestcthesis}
717 
ocitepublications{*}
718 defibliographypublications#1{let 	emp@auxout @auxout let addtocontents
719 mb@addtocontents let @auxout @auxoutpublications let jobname
720 @auxoutpublicationsname ibliography {#1}}
721 }
722 RequirePackage{cmap}%pdflatex编译时,可以生成可复制、粘贴的中文PDF文档
723 RequirePackage{hyperxmp}%在pdf中加入XMP高级元信息
724 RequirePackage[pdftex,unicode,
725             bookmarksnumbered=true,
726             bookmarksopen=true,
727             colorlinks=false,
728             pdfborder={0 0 1},
729             citecolor=blue,
730             linkcolor=red,
731             anchorcolor=green,
732             urlcolor=blue,
733             breaklinks=true,
734 pdfdisplaydoctitle=true
735 ]{hyperref}
736 input{contents/titlepage.tex}%pdf元信息中需要封面的部分内容,所以在此处导入封面信息
737 hypersetup{%
738 pdftitle={@title},
739 pdfauthor={@author},
740 pdfcopyright={Copyright (C) @year, @author},
741 pdfsubject={	hesisname@degree},
742 pdflicenseurl={http://121.49.98.197/tasi/doc/fj_dcx.doc},
743 pdfcreator={PDFLaTeX with uestcthesis class},
744 pdflang={zh-CN},
745 pdfpagelayout={TwoPageRight}
746 }
747 RequirePackage[small]{subfigure}
748 RequirePackage{enumerate}
749 
ewskip@topsepadd@uestcthesis
750 def@trivlist@uestcthesis{if@noskipsec leavevmode fi @topsepadd@uestcthesis 	opsep ifvmode advance @topsepadd partopsep else unskip par fi if@inlabel @noparitemtrue @noparlisttrue else if@newlist @noitemerr fi @noparlistfalse @topsep @topsepadd fi advance @topsep parskip leftskip z@skip 
ightskip @rightskip parfillskip @flushglue par@deathcycles z@ @setpar {if@newlist advance par@deathcycles @ne ifnum par@deathcycles >@m @noitemerr {@@par }fi else {@@par }fi }global @newlisttrue @outerparskip parskip }
751 
752 deflist@uestcthesis#1#2{ifnum @listdepth >5
elax @toodeep else global advance @listdepth @ne fi 
ightmargin z@ listparindent z@ itemindent z@ csname @list
omannumeral 	he @listdepth endcsname def @itemlabel {#1}let makelabel @mklab @nmbrlistfalse #2
elax @trivlist@uestcthesis parskip parsep parindent listparindent advance linewidth -
ightmargin advance linewidth -leftmargin advance @totalleftmargin leftmargin parshape @ne @totalleftmargin linewidth ignorespaces }
753 
754 def@enum@{list@uestcthesis {csname label@enumctr endcsname }{usecounter {@enumctr }def makelabel ##1{hss llap {##1}}}}
755 
756 defenumerate{%
757  ifnum @enumdepth >3 @toodeepelse
758  advance@enumdepth @ne
759  edef@enumctr{enum
omannumeral	he@enumdepth}fi
760  @ifnextchar[{@@enum@}{@enum@}
761  parsep=0pt
762  itemsep=0pt
763  parskip=0pt
764  partopsep=0pt
765  	opsep=0pt
766  }
767 RequirePackage{color,marvosym}
768 DeclareOldFontCommand{	xttbf}{	tfamilyfseries}{mathbf}
769 providecommand{hlstd}[1]{	extcolor[rgb]{0,0,0}{#1}}
770 providecommand{hlnum}[1]{	extcolor[rgb]{0,0,0}{#1}}
771 providecommand{hlesc}[1]{	extcolor[rgb]{0,0,0}{#1}}
772 providecommand{hlstr}[1]{	extcolor[rgb]{0,0,0}{#1}}
773 providecommand{hlpps}[1]{	extcolor[rgb]{0,0,0}{#1}}
774 providecommand{hlslc}[1]{	extcolor[rgb]{0.4,0.4,0.4}{{#1}}}
775 providecommand{hlcom}[1]{	extcolor[rgb]{0.4,0.4,0.4}{{#1}}}
776 providecommand{hlppc}[1]{	extcolor[rgb]{0,0,0}{	xttbf{#1}}}
777 providecommand{hlopt}[1]{	extcolor[rgb]{0,0,0}{	xttbf{#1}}}
778 providecommand{hlipl}[1]{	extcolor[rgb]{0,0,0}{#1}}
779 providecommand{hllin}[1]{	extcolor[rgb]{0.53,0.53,0.53}{#1}}
780 providecommand{hlkwa}[1]{	extcolor[rgb]{0,0,0}{	xttbf{#1}}}
781 providecommand{hlkwb}[1]{	extcolor[rgb]{0,0,0}{	xttbf{#1}}}
782 providecommand{hlkwc}[1]{	extcolor[rgb]{0,0,0}{	xttbf{#1}}}
783 providecommand{hlkwd}[1]{	extcolor[rgb]{0,0,0}{	xttbf{#1}}}
784 definecolor{bgcolor}{rgb}{1,1,1}
785 RequirePackage[header,cols=3,hyper=true]{glossary}
786 makeglossary
787 
enewcommand{glossaryname}{glossaryname@uestcthesis}
788 
enewcommand{entryname}{entryname@uestcthesis}
789 
enewcommand{descriptionname}{descriptionname@uestcthesis}
790 
enewcommand{glspageheader}{glspageheader@uestcthesis}
791 
ewcommand{ifusingglossary}{}
792 
ewcommand{fuhao}[3]{
793 glossary{name={#1},description={#2},sort=#3}
794 
enewcommand{ifusingglossary}{true}%设置使用主要符号表
795 }
796 
797 AtBeginDocument{%插入到论文内容的最前面。
798 egin{CJK}{UTF8}{rm}%中文支持环境,此处内容不受ctexbook文类影响,所以必须手动加这个环境。
799 maketitle%生成并插入封面
800 %%clearpage{pagestyle{empty}cleardoublepage}
801 Cabstractmatter%设置中文摘要版式
802 include{contents/Cabstract}%插入中文摘要
803 %%clearpage{pagestyle{empty}cleardoublepage}
804 %%Eabstractmatter%设置英文摘要版式
805 %%include{contents/Eabstract}%插入英文摘要
806 %%clearpage{pagestyle{empty}cleardoublepage}
807 	ocmatter%目录版式
808 	ableofcontents%插入目录
809 clearpage{pagestyle{empty}cleardoublepage}%目录之后另起一页,这样无论目录后有没有主要符号表,主要符号表的页眉设置命令都会应用到下一页。
810 %%glossarymatterfancy%设置主要符号表版式。
811 %%printglossary%插入主要符号表
812 %%clearpage{pagestyle{empty}cleardoublepage}
813 %%mainmatter%修正主要符号表版式,这里是受目录版式的影响,必须在此加入mainmatter。
814 end{CJK}
815 mainmatter%正文区版式
816 makeatletter
817 
ewcmds@uestcthesis%自定义图表命令,这些命令必须在document环境里声明才能在正文中使用,所以只能放在这里了。
818 makeatother
819 }
820 
ewcommand{insertacknowledgement}{
821 chapter*{acknowledgementsname@uestcthesis}%用带星号的章命令插入不带章号的致谢。
822 markboth{acknowledgementsname@uestcthesis}{}%页眉设置
823 phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。
824 addcontentsline{toc}{chapter}{acknowledgementsname@uestcthesis}%将致谢编入目录
825 input{contents/acknowledgements.tex}%插入致谢内容
826 }
827 
ewcommand{insertreference}{
828 ibliographystyle{uestcthesis}
829 phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。
830 addcontentsline{toc}{chapter}{CTEX@bibname}%将参考文献编入目录
831 
ocite{*}%若将此命令屏蔽掉,则未引用的文献不会出现在文后的参考文献列表中。
832 {zihao{5}
833 ibliography{contents/reference}%插入参考文献
834 }
835 }
836 AtEndDocument{%插入到论文内容最后面。
837 egin{CJK}{UTF8}{rm}
838 ifdefstring{degree@uestcthesis}{bachelor}{%检测是否为本科论文,调换参考文献与致谢的顺序
839 insertreference
840 
ewpage
841 insertacknowledgement
842 }{
843 insertacknowledgement
844 
ewpage
845 insertreference
846 }
847 
848 appendix%附录版式
849 
enewcommand{chaptermark}[1]{markboth{CTEX@appendixnameAlph{chapter}~  #1 }{}}%附录页眉设置
850 input{contents/appendix.tex}%插入附录内容
851 clearpage
852 ifdefstring{degree@uestcthesis}{bachelor}{
853 
854 gdef	hechapter{@arabic c@chapter}
855 
856 CTEXsetup[ name={,},
857   number={}
858   ]{chapter}
859 
860 setcounter{chapter}{0}
861 
862 defHy@org@chapter[#1]#2{%
863 ifnum c@secnumdepth >m@ne if@mainmatter 
efstepcounter {chapter}
864 	ypeout {CTEXthechapter }else fi else fi chaptermark {#1}addtocontents{lof}
865 {protect addvspace {10p@ }}addtocontents {lot}{protect addvspace {10p@ }}
866 if@twocolumn @topnewpage [@makechapterhead {#2}]
867 else
868 @makechapterhead {#2}
869 @afterheading fi
870 }
871 
872 defH@old@sect #1#2#3#4#5#6[#7]#8{ifnum #2>c@secnumdepth let @svsec @empty
873 else 
efstepcounter {#1}protected@edef @svsec {@seccntformat {#1}
elax }fi
874 @tempskipa #5
elax ifdim @tempskipa >z@ egingroup #6{@hangfrom {hskip #3
875 
elax @svsec }interlinepenalty @M csname CTEX@#1@titleformatendcsname #8
876 @@par }endgroup csname #1markendcsname {#7}else def @svsechd
877  {#6{hskip #3
elax @svsec csname CTEX@#1@titleformatendcsname #8}csname #1mark
878  endcsname {#7}}fi @xsect {#5}}
879 
880 %%
enewcommand{chaptermark}[1]{markboth{外文资料原文}{}}
881 %%defleftmark{外文资料原文}
882 %%
ewpage
883 %%phantomsection
884 %%addcontentsline{toc}{chapter}{外文资料原文}
885 
886 
enewcommand{CTEX@figurename}{Figure}
887 
enewcommand{CTEX@tablename}{Table}
888 
889 %%include{contents/original}
890 %%
ewpage
891 %%phantomsection
892 %%addcontentsline{toc}{chapter}{外文资料译文}
893 %%
enewcommand{chaptermark}[1]{markboth{外文资料译文}{}}
894 %%defleftmark{外文资料译文}
895 
896 
enewcommand{CTEX@figurename}{图}
897 
enewcommand{CTEX@tablename}{表}
898 
899 setcounter{chapter}{0}
900 
901 %%include{contents/translation}
902 }
903 {
904 IfFileExists{contents/publications.bib}{%如果删除了publications.bib,则不显示这一章
905 CTEXoptions[ bibname={publicationsname@degree}]%设置攻博/硕期间发表的论文章题目
906 phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。
907 addcontentsline{toc}{chapter}{publicationsname@degree}%将攻博/硕期间发表的论文编入目录
908 {zihao{5}
909 ibliographypublications{contents/publications}%插入攻博/硕期间发表的论文
910 }}{}}
911 clearpageend{CJK}}
912 endinput
913 %%
914 %% End of file `uestcthesis.cls'.
View Code

生成的内容如下

0001

0002

 0003

 0004

 0005

 0006

 0007

 0008

 0009

 0010

 0011

 0012

 0013

 0014

 0015

 0016

 0017

 0018

原文地址:https://www.cnblogs.com/hiramlee0534/p/6443458.html