summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/uestcthesis
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-03-16 21:08:40 +0000
committerKarl Berry <karl@freefriends.org>2014-03-16 21:08:40 +0000
commitbfbbe1994c80b945cfce367c1630a527cd3643fd (patch)
treef52a98d09c22fdcd4abb6f98f09c962c8fe56d7a /Master/texmf-dist/doc/latex/uestcthesis
parent51b157ec3aaf7cc2803d29bc311f56c405a5d6f0 (diff)
uestcthesis (16mar14)
git-svn-id: svn://tug.org/texlive/trunk@33194 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/uestcthesis')
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/README2
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/doc/chapters/implementation.tex4
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/doc/chapters/tuition.tex227
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/doc/contents/acknowledgements.tex16
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/doc/contents/cv.tex30
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/doc/contents/reference.bib4
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/doc/contents/titlepage.tex14
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/doc/packagecheck.tex261
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/doc/uestcthesis-doc.pdfbin1092078 -> 1078225 bytes
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/doc/uestcthesis-doc.tex3
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/source/rvdtx.sty349
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.dtx1386
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins141
-rw-r--r--Master/texmf-dist/doc/latex/uestcthesis/uestcthesis.pdfbin700263 -> 0 bytes
14 files changed, 1753 insertions, 684 deletions
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/README b/Master/texmf-dist/doc/latex/uestcthesis/README
index 13db7e2d1ac..3f99a2341db 100644
--- a/Master/texmf-dist/doc/latex/uestcthesis/README
+++ b/Master/texmf-dist/doc/latex/uestcthesis/README
@@ -14,6 +14,7 @@ For compiling correctly, there is two .bat files.Basically, it needs pdflatex.
This template's users are all chinese, so there is no english doc.
For more information, see the uestcthesis-doc.pdf in doc/.
+Github: https://github.com/shifujun/UESTCthesis
Author: Shi Fujun<shifujun@foxmail.com>
*************************Translation in zh_CN_UTF-8****************************
UESTCthesis是电子科技大学毕业论文LaTeX模板。
@@ -26,5 +27,6 @@ uestcthesis.cls, uestcthesis.bst 这两个文件需要放在
可以被pdfLaTeX搜索到的地方。最简单的方式就是放在工作目录中。
其他说明请见doc目录下的“uestcthesis-doc.pdf"。
+项目主页:https://github.com/shifujun/UESTCthesis
作者:时富军<shifujun@foxmail.com>
*******************************************************************************
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/doc/chapters/implementation.tex b/Master/texmf-dist/doc/latex/uestcthesis/doc/chapters/implementation.tex
index ac7b83a45c6..9636d04113f 100644
--- a/Master/texmf-dist/doc/latex/uestcthesis/doc/chapters/implementation.tex
+++ b/Master/texmf-dist/doc/latex/uestcthesis/doc/chapters/implementation.tex
@@ -4,7 +4,7 @@
本章首先介绍了本系统实现的设计原则与目标,然后描述了系统的整体架构与总体设计方案,接着阐述了系统的各个模块实现时的解决方案,最后给出了系统在~Android~具体实现时的实现方法和使用说明。
\section{设计目标与原则}
\subsection{设计目标}
- 本系统能够检测已知恶意软件及其变种,并能通过模糊检测发现具有相似恶意行为的未知恶意软件,为~Android~平台这样的开放式移动平台提供安全保障,可广泛用于各种型号的~Android~设备。系统具体设计目标如下:\\
+ 本系统能够检测已知恶意软件及其变种,并能通过模糊检测发现具有相似恶意行为的未知恶意软件,为~Android~平台这样的开放式移动平台提供安全保障,可广泛用于各种型号的~Android~设备。系统具体设计目标如下:
\begin{enumerate}
\item 适用于目前主流的~Android~平板及手机,至少可运行于3.0版本系统。
\item 能够检测用户指定的程序是否为恶意程序。
@@ -15,7 +15,7 @@
\end{enumerate}
\subsection{设计原则}
- 从安全产品的特点出发,本系统设计与实现将遵循下列一些设计原则:\\
+ 从安全产品的特点出发,本系统设计与实现将遵循下列一些设计原则:
\begin{enumerate}
\item 高效性
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/doc/chapters/tuition.tex b/Master/texmf-dist/doc/latex/uestcthesis/doc/chapters/tuition.tex
index e03150a9074..7810435e421 100644
--- a/Master/texmf-dist/doc/latex/uestcthesis/doc/chapters/tuition.tex
+++ b/Master/texmf-dist/doc/latex/uestcthesis/doc/chapters/tuition.tex
@@ -2,6 +2,119 @@
\chapter{更新日志}
\noindent
+2014年3月12日:v1.0.0
+\begin{enumerate}
+\item 因研究生院正式推荐使用本模板,故将版本号改为v1.0.0。可称为正式版了。
+\item 本版本除版本号外,和v0.6.9完全一致。
+\end{enumerate}
+
+\noindent
+2014年3月8日:v0.6.9
+\begin{enumerate}
+\item 修复BUG:当子图环境整体标题中存在下标时错误判断为标题超出一行。
+\end{enumerate}
+
+\noindent
+2014年3月6日:v0.6.8
+\begin{enumerate}
+\item 在v0.6.1中将所有正文的英文字体改为Times字体,却忽略了公式中的字体也被修改为Times字体。现改回v0.6.1之前版本中公式的字体(CM)。
+\end{enumerate}
+
+\noindent
+2014年3月4日:v0.6.7
+\begin{enumerate}
+\item 修复BUG:缩略词表和主要符号表各自的第二页页眉不正确的问题。
+\item 添加bm宏包,以支持希腊字母在数学模式中的粗体。例如:\\ \verb|$\mathbf{X} \bm{\Lambda}$|
+\end{enumerate}
+
+\noindent
+2014年3月3日:v0.6.6
+\begin{enumerate}
+\item 修复BUG:按照规范,脚注应该每页重新编号。
+\item 修复BUG:参照研究生院范例修正注脚线和内容的距离。
+\item 针对脚注跨页的情况,在说明文档中加入第~\ref{subsubsection:footnote}~节,说明解决方案。
+\item 针对源代码排版段落在换段后会多出一个空行的问题,在说明文档的第~\pageref{par:scrextraline}~页加上一段话。提示大家在用Highlight转换出的源代码排版文件中,需要手动删除一个多余的换行命令。
+\end{enumerate}
+
+\noindent
+2014年3月1日:v0.6.5
+\begin{enumerate}
+\item 修复BUG:子图有不居中的情况。
+\item 修复BUG:当子图环境整体标题和子图标题都超过一行时,子图标题没有悬挂缩进的问题。
+\end{enumerate}
+
+\noindent
+2014年2月25日:v0.6.4
+\begin{enumerate}
+\item 添加了研究生院规范中附件1,2,3的所有封面、中文扉页、英文扉页。具体使用方式见第~\ref{degree:subsection}~节。
+\item 添加了两个选项,分别用于使模板不生成摘要之前内容或正文之外的所有内容。详见第~\ref{options:subsection}~节。
+
+\end{enumerate}
+
+\noindent
+2014年2月24日:v0.6.3
+\begin{enumerate}
+\item 修订硕博封面第2页,使之和学校范例尽量一样。
+
+\end{enumerate}
+
+\noindent
+2014年1月20日:v0.6.2
+\begin{enumerate}
+\item 新增一个用于检查模板所依赖的全部宏包版本的packagecheck.tex。编译它即可输出当前版本的模板所需的全部宏包的所需版本和当前已安装的版本,或者找不到需要的宏包。
+
+\end{enumerate}
+
+\noindent
+2014年1月20日:v0.6.1
+\begin{enumerate}
+\item 论文中所有正文中的英文修正为\href{http://en.wikipedia.org/wiki/Nimbus_Roman_No9_L}{Nimbus Roman No9 L字体(wiki链接)},这个字体和Times New Roman字体高度相似。
+\item 中英文摘要的关键词内容改为悬挂缩进。
+\item 将中英文摘要和目录加入到pdf书签中。
+\item 修正附录中的图表和公式的标号形式。
+
+\end{enumerate}
+
+\noindent
+2014年1月16日:v0.6
+\begin{enumerate}
+\item 添加选项listoffigures,用以打印图目录。
+\item 添加选项listoftables,用以打印表目录。
+\item 添加命令\verb|\englishshcoolextraline|,用以在titlepage.tex文件中。当用\\ \verb|\englishshcool|命令填写学院英文名时,英文名过长一行显示不下的情况下(例如通信学院),用\verb|\englishshcoolextraline| 命令将写不下的词写在下一行。
+\item 根据反馈,去掉所有超级链接的有色外框。
+\item 将枚举环境的序号缩进到和正文一致。
+\item 添加选项cv。开启后会用contents目录下的cv.tex替换publications.bib生成的攻读硕博期间发表的论文。cv.tex是按照一位通信学院的同学提供的一份往年的硕士论文中的格式做的模板。这个“个人简历及攻读硕士学位期间取得的研究成果”格式,以及“个人简历”都不是学校规范中要求的。所以如果不是自己学院要求、自己导师要求,建议不要用这个选项。
+\item 将原有的主要符号表的实现机制改为更新的宏包,同时支持了缩略词表。原有的主要符号表使用方式略有更改,详见第~\pageref{subsection:glossaries}~页。
+\item 修正可能在\verb|\verb|命令中或排版源代码中可能使用仿宋的问题。已全改为宋体。
+\item 本说明文档在第~\ref{subsubsection:skill}~页补充了一小节关于图表制作技巧的内容。
+\end{enumerate}
+
+\noindent
+2013年12月25日:v0.5.6
+\begin{enumerate}
+\item 本次更新不影响排版效果。仅仅修改了封面上校徽的颜色,使橙色和蓝色与学校识别视觉系统一致。
+\end{enumerate}
+
+\noindent
+2013年11月26日:v0.5.5
+\begin{enumerate}
+\item 在v0.5.3版本修改中,子图的标题过长,导致引用总标签失败。现修复了这个问题。并在第~\pageref{testpicslabel}~页进行了一小段测试。
+\end{enumerate}
+
+\noindent
+2013年10月29日:v0.5.4
+\begin{enumerate}
+\item 修改封面到摘要之前的部分实际的页码,避免pdf阅读器中页码冲突。
+\item 修改中英文摘要标题和关键词的字体,改为加粗形式。并按照范例,在“摘要”二字中间加空格。
+\end{enumerate}
+
+\noindent
+2013年8月10日:v0.5.3
+\begin{enumerate}
+\item 根据2013年7月18日研究生院网站发布的新的《学位论文撰写格式规范》\url{http://gr.uestc.edu.cn/article.shtml?id=6643},修改了模板。但由于本科教务处学位科尚未修改规范,所以本科选项的排版规范暂未做大变化。
+\end{enumerate}
+
+\noindent
2013年6月7日:v0.4.8
\begin{enumerate}
\item 修正目录的标题字体。之前用了2008年本科规范的宋体小二,是错误的。
@@ -33,7 +146,7 @@
2013年5月25日:v0.4.4
\begin{enumerate}
\item 修正摘要关键词的逗号之前会有一个多余的空格,而英文摘要关键词的逗号后没有空格的问题。
-\item 修正可能会出现超大段距的问题。并且重新设置了一个默认为0的弹性段距,最大为10磅,最小为-1磅。有弹性段距会让排版得到更美观的结果。而且-1 到10磅相对于行距来说并不明显。
+\item 修正可能会出现超大段距的问题。并且重新设置了一个默认为0的弹性段距,最大为10磅,最小为-1 磅。有弹性段距会让排版得到更美观的结果。而且-1 到10磅相对于行距来说并不明显。
\item 增加了一个参考文献类型ONLYNOTE,可以将参考文献的note字段直接作为参考文献条目内容。用于录入不规范的参考文献条目,例如攻读期间取得的成果中可能会要录入获奖\cite{onlynoteexample}。而获奖并不是标准的参考文献类型。
\item 本科论文目录中加入外文资料原文和译文。
\item 本科论文的章标题序号改为阿拉伯数字序号。
@@ -45,7 +158,7 @@
2013年5月20日:v0.4.3
\begin{enumerate}
\item 修复BUG:枚举环境之前与前后文有额外的间距,现已去掉。
-\item 修复BUG:之前模板没有按照规范要求将摘要等前置内容章起右页,现已修正。至于中文摘要在第I页,而英文摘要在第III 页的问题,我认为是正常的,页码不应该因为左页没内容就跳过去。奇偶页码与左右页的关系不应该改变。
+\item 修复BUG:之前模板没有按照规范要求将摘要等前置内容章起右页,现已修正。至于中文摘要在第I 页,而英文摘要在第III 页的问题,我认为是正常的,页码不应该因为左页没内容就跳过去。奇偶页码与左右页的关系不应该改变。
\item 修复BUG:由于我的疏忽,本科论文规范修订时将目录中的缩进打错成半角,这和硕博规范不一致。现已将本科论文的目录缩进修正和今年的规范一致,硕博不变。
\item 修复BUG:之前模板的参考文献和致谢的顺序是按照硕博规范设置的,刚刚发现本科规范和硕博规范在这个顺序上是反的。现已将本科论文的致谢置于参考文献之后。
\item 发现可能编译出错的问题,新安装的CTeX套装在安装目录下\verb|\CTeX\tex\latex\ctex|中有一个旧版本的ctex 宏包,应将这个目录删除,ctex 才会下载最新的ctex宏包。我已在模板中添加了需要的ctexbook版本。
@@ -66,7 +179,7 @@
生成所需的特殊编译过程已写入到批处理脚本中。这个过程是:
-用filecontents环境将pstricks图片嵌入到cls文件中,令其生成logo.tex文件。然后在文类中利用write18命令正确编译logo.tex,生成logo.pdf。这个write18 命令默认是不允许使用的,所以在WinEdt中执行编译是不会生成logo.pdf 的,也就不会显示Logo。
+用filecontents环境将pstricks图片嵌入到cls文件中,令其生成logo.tex文件。然后在文类中利用write18 命令正确编译logo.tex,生成logo.pdf。这个write18 命令默认是不允许使用的,所以在WinEdt中执行编译是不会生成logo.pdf 的,也就不会显示Logo。
\end{enumerate}
@@ -113,12 +226,20 @@
\begin{enumerate}
\item 完成本硕博三种格式论文所需的全部结构。
\end{enumerate}
+\chapter{注意事项}
+\begin{enumerate}
+\item 本模板不能帮用户更改图片中的字体、字号,使之符合学校规范。请注意学校规范中对图片中字体、字号的要求。
+\item 插入图片、表格如不使用模板封装好的命令,需自行注意学校规范对于图表标题的要求。
+\item 插入参考文献,必须对照本说明文档的范例,如果对照范例缺少项目,则不能保证参考文献格式正确。本说明文档的范例包含所有类型的参考文献,必能找到对应的范例。
+\item 欲求完美的排版效果,不能完全依赖本模板。必须在论文完全定稿后,文字不再变化时,参考各类\LaTeX{}书籍,对换页、图片位置、公式中的间距进行微调。这些微调方式本说明文档中暂无介绍。
+\item 本模板已尽量保持对\LaTeX{}原本命令的兼容性,遇到问题可参照互联网上绝大多数的解决方案。
+\end{enumerate}
\chapter{模板使用说明}
\section{简介}
2013年1月14日更新后的模板已经支持本硕博三种标准。并且本人已经和教务处实践科交流过,实践科对本模板是支持的。同时实践科也表示可以接收pdf 格式的电子档。并且已经同意将本科毕业论文的排版规范改为和研究生标准统一化,所以也简化了本模板的开发工作。本次更新后已经针对本科和硕博的不同要求,可以分别编译出不同结构的论文。
-本模板以《研究生学位论文(含研究报告)撰写规范(2012年修订版)》(以下称学校标准)为标准。对于其中未提及的规范,参照中国高等学校自然科学学报编排规范(修订版)》。参考文献格式符合学校标准的基础上,采用国标GBT7714-2005。编译结果已经可以符合学校标准,如有不完全符合的地方,请大家分享反馈回来,我尽量修改。改不了的地方,请大家看看历年的硕博论文,本模板的排版质量已经非常非常高了。
+本模板以《研究生学位论文(含研究报告)撰写规范(2012年修订版)》(以下称学校标准)为标准。对于其中未提及的规范,参照中国高等学校自然科学学报编排规范(修订版)》。参考文献格式符合学校标准的基础上,采用国标GBT7714-2005。 编译结果已经可以符合学校标准,如有不完全符合的地方,请大家分享反馈回来,我尽量修改。改不了的地方,请大家看看历年的硕博论文,本模板的排版质量已经非常非常高了。
\subsection{面向没用用过\LaTeX{}的用户介绍}
Q:什么是\LaTeX{}?
@@ -159,7 +280,7 @@ A:使用本模板写作毕业论文,使用者是作者的角色,并不需
其余内容见后文介绍。
\subsection{面向\LaTeX{}程序员的介绍}
-许多\LaTeX{}用户并没有区分出\LaTeX{}和\TeX{}的重要区别:\TeX{}是内容和排版混在一起的,而\LaTeX{}是将内容和排版分开的。如果没有注意到这个区别,使用\LaTeX{}只是比\TeX{} 多了些高级命令而已。
+许多\LaTeX{}用户并没有区分出\LaTeX{}和\TeX{}的重要区别:\TeX{}是内容和排版混在一起的,而\LaTeX{} 是将内容和排版分开的。如果没有注意到这个区别,使用\LaTeX{}只是比\TeX{} 多了些高级命令而已。
本模板直接将所有排版内容都写在了文类中,并包装了一些作者命令。希望今后的维护者能够注意到这个特点,不要破坏它。国内许多其他高校的\LaTeX{}模板大多没有采用文类,许多设置的方式也不是最好的。所以借鉴时需要谨慎。
@@ -186,9 +307,11 @@ $\mathbb{C}$\kern-.05em\TeX{}是Windows系统下面向中文优化的一套\TeX{
如果是用CTeX或MikTeX安装的模板,请用Update程序更新模板。但不一定能获得最新的模板,因为模板首先在GitHub上更新。
\subsection{测试编译}
+在v0.6.2版本中新增加了一个packagecheck.tex文件,编译它即可输出当前版本的模板所需的全部宏包的所需版本和当前已安装的版本,或者找不到需要的宏包。缺失的宏包可以通过用管理员权限编译该文件,使MikTeX自动安装缺失的宏包。版本过旧的宏包需要通过MikTeX的更新程序更新宏包。
+
用WinEdt打开thesis.tex如图~\ref{winedt}(双击即可)。
\pic[htbp]{WinEdt界面}{width=\textwidth}{winedt}
-点击图中红色箭头指向的黑色实心小三角,在下拉菜单中选择PDFLaTeX。然后点击绿色箭头指向的按钮将此文件设置为主文件。最后点击蓝色箭头指向的按钮,或按键盘上的F9按键,编译论文。用这种方式编译论文比较方便,但会缺少研究生论文所需的“攻读期间发表的成果”一章。所以正式编译时必须用compile.bat 编译论文才能得到正确的结果。
+点击图中红色箭头指向的黑色实心小三角,在下拉菜单中选择PDFLaTeX。 然后点击绿色箭头指向的按钮将此文件设置为主文件。最后点击蓝色箭头指向的按钮,或按键盘上的F9按键,编译论文。用这种方式编译论文比较方便,但会缺少研究生论文所需的“攻读期间发表的成果”一章。所以正式编译时必须用compile.bat 编译论文才能得到正确的结果。
通过将此文件设置为主文件之后,以后只要thesis.tex在WinEdt中打开了,即使当前编辑的文件不是thesis.tex,编译时也会编译thesis.tex文件。这样可以避免每次都切换回thesis.tex 编辑窗口。
@@ -198,7 +321,7 @@ $\mathbb{C}$\kern-.05em\TeX{}是Windows系统下面向中文优化的一套\TeX{
\section{模板结构}\label{templatestructure}
从GitHub上下载的zip解压后,只有example目录是一份模板。source目录是模板的源代码。example就相当于一份论文,也叫工作目录。你可以重命名这个目录。
-工作目录中应包含3个目录和3个文件,见表~\ref{structtab}。表中说明为Windows环境下的情况。Linux和Mac请将bat文件换为sh文件即可。example 目录中还有两个zip文件:windows下编译脚本.zip和linux,mac下编译脚本.zip。选择其中一个解压到工作目录中。
+工作目录中应包含3个目录和3个文件,见表~\ref{structtab}。表中说明为Windows环境下的情况。Linux和Mac 请将bat 文件换为sh文件即可。example 目录中还有两个zip文件:windows下编译脚本.zip和linux,mac下编译脚本.zip。选择其中一个解压到工作目录中。
\threelinetable[htbp]{structtab}{\textwidth}{lcX}{模板结构}
{名称&目录/文件&说明\\
}{
@@ -211,11 +334,27 @@ compile.bat &编译批处理 &双击编译论文,得到正确的thesis.pdf
clean.bat &清理批处理 &双击可删除目录中全部编译过程生成的中间文件。\\
}{}
\section{开始编写论文}
-\subsection{确定学位信息}
-打开thesis.tex文件,将第三行中间的中括号内容改为bachelor、master或doctor,分别代表本科、硕士和博士。\\
-\verb|\documentclass[doctor]{typesetting/uestcthesis}|
+\subsection{确定学位信息}\label{degree:subsection}
+打开thesis.tex文件,第三行如下:\\
+\verb|\documentclass[doctor]{uestcthesis}|\\
+修改第三行中间的中括号中的doctor为其他的选项。bachelor代表学士学位;master代表学术型硕士学位;doctor代表博士学位;engineeringmaster代表工程硕士学位;professionalmaster代表专业硕士学位;researchreport代表留学生研究报告; engineeringdoctor代表工程博士学位;
+
+这些选项选择好之后,模板会自动添加相应的封面、扉页等前置必备页面。
然后打开contents目录中的titlepage.tex。填写其中的信息。本科生注意要删除其中后一部分的信息,否则编译会出错。
+\subsection{模板的其他选项}\label{options:subsection}
+本模板还有如下可选选项:\\
+选项listoffigures,用以生成图目录。\\
+选项listoftables,用以生成表目录。\\
+选项cv。开启后会用contents目录下的cv.tex替换publications.bib生成的攻读硕博期间发表的论文。cv.tex是按照一位通信学院的同学提供的一份
+往年的硕士论文中的格式做的模板。这个“个人简历及攻读硕士学位期间取得的研究成果”格式,以及“个人简历”都不是学校规范中要求的。所以如果不是自己学院要求、自己导师要求,建议不要用这个选项。\\
+选项withoutforepages。启用后不编译摘要之前的部分(封面、中文扉页、英文扉页、独创性声明和论文使用授权)。\\
+选项onlychapters。启用后只编译正文部分。\\
+最后两个选项都是方便撰写论文时加快编译用的。为了这个目的,还可以使用draft选项。这个选项会不真正插入图片。如果在撰写论文正文中经常需要编译查看改动结果,在不涉及图片、参考文献等附加内容的情况下,建议开启onlychapters和draft选项。同时只需要运行一次pdflatex命令编译即可。编译脚本执行的正确编译会连续编译3次,所以会比较慢。
+
+以上这些选项的启动方式形如:\\
+\verb|\documentclass[doctor,onlychapters,draft,listoftables]{uestcthesis}|\\
+
\subsection{编写正文}
\subsubsection{新建一章}
论文正文的每一章都是一个单独的tex文件,存放于chapters目录中。由于本模板采用UTF-8 编码,所以不能用Windows 记事本新建的UTF-8文本文件创建tex 文件。因为Windows的UTF-8 格式文件头和我们用的不一样。所以为了方便起见,chapters 目录下有一个DuplicateMe.tex文件,它是一个写好文件头的空文件。新建一章时只需要将它复制一份,改一个新的文件名即可。文件名最好可以代表这一章的内容。
@@ -239,20 +378,22 @@ $\mathbb{C}$\kern-.05em\TeX{}套装自带的PDF阅读器SumatraPDF,也就是
\pic[htbp]{菊花}{width=0.6\textwidth}{Chrysanthemum}
这条命令用于插入单个图片,第一个中括号是可选参数,用于向系统建议图片的位置。默认参数htbp就是让系统考虑放在当前位置(h)、本页底部(b)、次页顶部(t)、单独一页(p)。图片不会浮动到引用位置之前,只会向后浮动。另外可以设置\verb|[H]|,命令系统不考虑版面美观,就放在当前位置。也可以向\verb|[]|中加入“!”,告诉系统不用考虑版面限制,但此时还只是一种建议。
-第三个参数中可以设置图片的大小,最大不能超过\verb|width=\textwidth|。因为这是设置图片按宽高比不变放大或缩小到宽度等于一行文字的宽度。如果超过这个大小,图片将超出版心。例子中的0.6 是乘以0.6倍的意思。也可以设置\verb|heigh=5cm| 等参数。最后一个参数既是文件名也是标签名(标签名用于引用图片,如图X-X这种),这个文件名不需要扩展名,有也没关系。图片必须放在pics目录下。同时建议不同扩展名的图片,也不要起一样的名字。图片格式支持png,pdf,jpg,jpeg。
+第三个参数中可以设置图片的大小,最大不能超过\verb|width=\textwidth|。因为这是设置图片按宽高比不变放大或缩小到宽度等于一行文字的宽度。如果超过这个大小,图片将超出版心。例子中的0.6 是乘以0.6倍的意思。也可以设置\verb|height=5cm| 等参数。最后一个参数既是文件名也是标签名(标签名用于引用图片,如图X-X这种),这个文件名不需要扩展名,有也没关系。图片必须放在pics目录下。同时建议不同扩展名的图片,也不要起一样的名字。图片格式支持png,pdf,jpg,jpeg。
还可以插入多幅图片组成的子图组,这些图共用一个图编号,各自又有自己的子编号。\\
\verb|\begin{pics}[htbp]{整体标题}{整体标签(英文数字组成)}|\\
\verb|\addsubpic{子图标题}{width=0.4\textwidth}{文件名}|\\
\verb|\addsubpic{企鹅}{width=0.4\textwidth}{Penguins}|\\
\verb|\end{pics}|\\
-\begin{pics}[htbp]{子图效果}{pics1}
+\begin{pics}[htbp]{子图效果}{picsaaaa}
\addsubpic{郁金香}{width=0.4\textwidth}{Tulips}
\addsubpic{企鹅}{width=0.4\textwidth}{Penguins}
\end{pics}
这四行命令中,第一行和最后一行定义了一个子图环境,在其中可以插入若干条addsubpic 命令。当一行图片排满后可以换行到下一行。注意图片间有间距,所以两张\verb|0.5\textwidth|宽的图片不能排在一行。\par
+
+\label{testpicslabel}测试引用图片标签。单张图片图\ref{Chrysanthemum}是一副菊花。子图效果如图\ref{picsaaaa} 所示,其中有两幅子图。子图\ref{Tulips} 是郁金香,子图\ref{Penguins}是企鹅。
\subsubsection{插入表格}
-\TeX 系统对表格的支持可能不够出色。这种说法主要是因为微软的Excel实在是太出色了,以至于人们经常用Excel 制作结构非常复杂看起来很好看的表格。其实大多数表格都可以简化。《中国高等学校自然科学学报编排规范(修订版)》中讲到:表应精心设计,为使表的结构简洁,建议采用三线表,必要时可加辅助线,如表~\ref{tab2}。
+\TeX 系统对表格的支持可能不够出色。这种说法主要是因为微软的Excel 实在是太出色了,以至于人们经常用Excel 制作结构非常复杂看起来很好看的表格。其实大多数表格都可以简化。《中国高等学校自然科学学报编排规范(修订版)》中讲到:表应精心设计,为使表的结构简洁,建议采用三线表,必要时可加辅助线,如表~\ref{tab2}。
插入普通三线表可以用我定义的命令:\\
\verb|\threelinetable[htbp]{标签}{0.4\textwidth}{lcr}{表标题}|\\
@@ -387,6 +528,24 @@ HomeRF&2.4GHz&FHSS\\
\verb|\pictable[htbp]{表标题}{width=\textwidth}{图片文件名}|\par
这个命令其实和插入图片的命令是相像的。\par
\pictable[htbp]{用Excel制作的表格}{width=0.5\textwidth}{excel}
+\subsubsection{图表设计技巧}\label{subsubsection:skill}
+学校规范中规定了图表中的文字应用宋体五号字。而图片中的字号本模板没有办法代为解决。但是我要介绍如何做到这一点。无论用户使用什么制图工具,一般都可以先设置画布的大小设置为426pt*672pt或者149mm*235mm。这样大小的画布和论文页面版心的大小基本相同,所以在这张画布上绘图可以以100\%大小插入到论文中。也就是可以将\verb|\pic|命令中指定图片大小的大括号空置。这样在绘图的时候插入文字如果注意设置好字体为宋体五号字,在插入到论文后也能够保持字号了。
+
+关于图片的格式转换。推荐大家下载开源的工具Inkscape:\url{http://www.inkscape.org/zh/}。在模板中请尽量插入矢量图,大部分理工科所用的制图工具都支持矢量图的导出。虽然矢量图格式会有所不同,但是Inkscape都能处理,并且都可以转换为pdf格式。在本模板中插入矢量图都需要先转换为pdf格式。
+
+如何去白边是个常见的问题。去白边是指去掉图片四周多余的空白。用Inkscape打开图片,然后打开文件菜单,选择文档属性(快捷键Shift+Ctrl+D)。在页面选项卡中有自定义尺寸方格,点击“缩放页面到内容”的加号。最后点击“缩放页面到绘图或选区”按钮。最后保存文档即可。如果图片四周依然有很大的空白,则需要仔细检查图片的背景是否本身就是一块白色的图案。在矢量图中一般可以选择到,并删除它。
+
+在注意了以上问题之后,其实用矢量图制作出来的表格效果完全没有任何问题,因此推荐复杂的表格用这样的方法制作。
+
+\subsubsection{插入脚注}\label{subsubsection:footnote}
+ 本模板已经设置了脚注的格式,使之符合研究生院撰写范例中要求的格式。每页注脚不能超过10个。
+
+ 通常注脚不会跨页。但是如果\LaTeX{}没有更好的办法了,它会把注脚分成两部分,后一部分排版到下一页的注脚区内。虽然这样的情况发生的概率非常小,但是如果出现之后,又不想注脚跨页,可以选择两种办法:\\
+ 1.最好的办法是重新组织文字,使插入注脚的位置向前或者向后移动至少1行。\\
+ 2.在主文件的\verb|\documentclass|行之后加入一行:\\
+ \verb|\interfootnotelinepenalty=10000|\\
+ 这样\LaTeX{}会强制换页将注脚所在行移到下一页去,在前一页留下空白。
+
\subsection{插入数学公式}
本模板对数学式没有做过多修改,仅添加了amsmath和kmath宏包,以提供更美观的数学字体。关于数学式的编写规则请阅读“TeXbook中文版.pdf”中的16 至19 章。这本书是\TeX{}的作者高德纳写的\TeX{} 权威著作,网友xianxian翻译。
@@ -487,7 +646,7 @@ publications.bib &攻读期间的研究成果,本科生可忽略此文件
注意bib文件中每一条目的第一行例如:\\
\verb|@ARTICLE{turongting2007,|\\
-注意后面的“,”不要删除。其中turongting2007是这条参考文献的标签,用于在文章中引用这个参考文献,以显示它的标号。标签必须是英文和数字组成的。Google 学术搜索导出的条目标签是自动用作者名+年份+标题第一个词生成的,英文的当然没问题,但是中文文献的标签需要手工修改成一个英文和数字组成的标签。而ARTICLE是条目的类型。
+注意后面的“,”不要删除。其中turongting2007是这条参考文献的标签,用于在文章中引用这个参考文献,以显示它的标号。标签必须是英文和数字组成的。Google 学术搜索导出的条目标签是自动用作者名+年份+标题第一个词生成的,英文的当然没问题,但是中文文献的标签需要手工修改成一个英文和数字组成的标签。而ARTICLE 是条目的类型。
在正文中引用参考文献时有两个命令可以使用。\verb|\cite{标签名1,标签名2……}|和\verb|\citeup{标签名1,标签名2……}| 分别是正常字号的中括号引用和上角标形式的中括号引用。两个命令的大括号中可以写多个标签名,用英文逗号分隔开来。\par
@@ -603,7 +762,7 @@ CAJ-CD
\subsection{攻读期间的研究成果}
攻读期间的研究成果文件是publications.bib,其格式和编辑方法同参考文献完全一致。在WinEdt中使用编译按钮编译的结果不会显示这一章是正常现象。需要使用compile.bat编译才能得到包含这一章的正确结果。
-如果需要录入非参考文献标准格式的内容,例如获奖,可以使用ONLYNOTE类型的参考文献。这个类型是直接原文输出note 条目的类型。可见示例\cite{onlynoteexample}。
+如果需要录入非参考文献标准格式的内容,例如获奖,可以使用ONLYNOTE 类型的参考文献。这个类型是直接原文输出note 条目的类型。可见示例\cite{onlynoteexample}。
\subsection{致谢}
致谢就是简单的编辑contents/acknowledgements.tex就可以了。
\subsection{附录}
@@ -613,19 +772,29 @@ CAJ-CD
外文资料原文和译文分别是contents/original.tex和contents/translation.tex。它们都和普通的正文一样。
在v0.4.5版本更新时,我将外文资料的两章,章号重置为1,但是章标题不显示章号。而节标题从1.1开始编排。同时,外文资料原文中,图表题注都改为了英文。从示例文件中可以看到,这两章的章命令改为使用标准的\verb|\chapter{}|命令,不再使用带星号的命令。
-\subsection{主要符号表}
-使用本模板可以半自动生成主要符号表。在编写论文的过程中,如果写到了需要说明的术语或符号,可以就地使用命令:\\
-\verb|\fuhao{术语名}{说明}{排序名}|\\
-其中排序名是各种术语在主要符号表中排序的依据,由于\TeX{}本身不支持中文,所以也不可能自动把术语名替换成拼音。所以需要手工输入一个排序名。例如:\\
-\verb|\fuhao{主要符号表}{如果论文中使用了大量的物理量符号、标志、缩略词、专门计量单位、自定义名词和术语等,应编写成注释说明汇集表。}{zhuyaofuhaobiao}|\\
-\fuhao{主要符号表}{如果论文中使用了大量的物理量符号、标志、缩略词、专门计量单位、自定义名词和术语等,应编写成注释说明汇集表。}{zhuyaofuhaobiao}
-\fuhao{$\Pi$}{数学及物理学领域普遍存在的数学常数。}{pi}
-\fuhao{UESTC}{电子科技大学的英文缩写。}{uestc}
-
-如果论文中没有使用过\verb|\fuhao|命令,则编译时不会出现主要符号表。
+\subsection{主要符号表和缩略词表}\label{subsection:glossaries}
+主要符合表和缩略词表的开启都不需要特别设置。只要使用了声明符号和缩略词的命令,并且使用了它们,就会自动出现在主要符号表和缩略词表中。如果只声明,而不使用则不会出现在两个表中。如果某个表没有内容,则不会出现这个表。
+
+在v0.6版本更新后,新加入了缩略词表。并且原先实现主要符号表的机制也有所改变。简单说,之前只使用\verb|\fuhao|命令设置符号就可以了。而现在依然保持了这个命令的定义不变,但是还需要在使用这个符号的位置调用引用符号命令,才能在主要符号表中显示这个符号。
+
+定义一个符号使用命令:\\
+\verb|\fuhao{符号}{说明}{标签}|。这里标签还被用于在主要符号表中按字母顺序排序。\\
+定义一个缩略词使用命令:\\
+\verb|\newacronym[description=中文全称]{标签}{缩写形式}{英文全称}|\\
+然后在需要使用符号或缩略词的地方用命令:\\
+\verb|\gls{标签}|
+
+使用举例:我先在这里定义一个符号\verb|\fuhao{$\Pi$}{数学及物理学领域普遍存在的数学常数。}{pi}|\fuhao{$\Pi$}{数学及物理学领域普遍存在的数学常数。}{pi},然后在需要用到的地方用命令\verb|\gls{pi}|调用它。例如,圆周率的符号是\gls{pi}。然后再定义一个缩略词\\
+\verb|\newacronym[description=支持向量机]{svm}{SVM}{Support Vector Machine}|\\
+\newacronym[description=支持向量机]{svm}{SVM}{Support Vector Machine}
+在需要使用这个缩略词的地方用命令\verb|\gls{svm}|引用它。需要注意这个效果,当我第一次引用它时,它是先全称加括号缩略词的方式,而之后再引用它则只有缩略词的形式了。例如:\\
+\verb|有一类算法叫做\gls{svm},\gls{svm}的效果非常显著。|\\
+有一类算法叫做\gls{svm},\gls{svm}的效果非常显著。
+
+有关这两个表的更复杂的用法,请查阅glossaries宏包的相关手册。主要是如何定义缩略词和符号的特殊复数形式,以及如何灵活的引用出符号或缩略词的复数形式,首字母大写形式等。
\section{排版源代码}
\label{source:section}
-许多学院的论文都需要插入若干程序源代码。经过多方比较,我推荐一个使用外部工具的方案。这个工具比现有的\LaTeX{}宏包解决方案要更美观,对中文的支持更好,几乎支持所有的语言。
+许多学院的论文都需要插入若干程序源代码。经过多方比较,我推荐一个使用外部工具的方案。这个工具比现有的\LaTeX{} 宏包解决方案要更美观,对中文的支持更好,几乎支持所有的语言。
从\url{http://www.andre-simon.de/zip/download.html}下载这个工具。这个工具就叫highlight,是开源软件,有各个平台的版本,完全不需要自行编译。Windows用户就直接下载Windows (W32) installer的连接就行。下载后进行完全安装。
@@ -640,6 +809,8 @@ CAJ-CD
\verb|\input{chapters/Place_has_TrainDAO.java.tex}|\\
在2013/06/03更新的v0.4.7版本后,不再需要使用input命令导入highlight.sty。模板中已经内置了这个文件的内容,采用黑白等宽字体。使用之前版本input了highlight.sty文件的同学需要删除这个导入命令,否则会报错。
+\label{par:scrextraline}在生成的tex文件中倒数第4行应该是排版的源代码的最后一行。这一行最后的换行命令\verb|\\|通常是多余的、不该有的,应该删去。否则换段时会多出一个空行。这和我们不应该在一个段落的最后加上\verb|\\|的道理是一样的。如果有大量的源代码需要处理,建议使用本文替换工具将多余的\verb|\\|连同最后三行一起匹配,然后替换为仅留最后三行的内容。
+
如果需要完全的等宽效果,还需要手工修正一些符号。因为\LaTeX 对符号有特殊的处理,并不是普通的字体。需要按照表\ref{sourcereplace}在Highlight生成的tex文件中全文替换。
\threelinetable[htbp]{sourcereplace}{\textwidth}{cll}{源代码中等宽符号替换}
@@ -669,7 +840,7 @@ $\backslash$ &\verb|$\backslash$| & \verb|\sym
\begin{enumerate}
\item 以为回车就是换行。\LaTeX{}中换行的命令是“\verb|\\|”。
\item 以为换行就是另起一段。\LaTeX{}中另起一段的命令是“\verb|\par|”,也可以连续输入两个以上的回车。
-\item 以为空格就是空格。\LaTeX{}中中文与中文之间的空格或回车都会被忽略掉,英文与英文之间的空格和回车有多少个都只算作1 个。这是为了避免输入时录入不正确数量的空格。如果一定要输入连续多个空格,可以使用符号\verb|~|,或者命令\verb|\nbs{}|。后者是不可换行的空格。比如英文人名Donald Ervin Knuth,如果将其中的空格改为\verb|\nbs{}|,则系统会优先保证这三个单词在同一行显示。如果实在放不下了,才会在单词的音节断开处换行。例如:
+\item 以为空格就是空格。\LaTeX{}中中文与中文之间的空格或回车都会被忽略掉,英文与英文之间的空格和回车有多少个都只算作1 个。这是为了避免输入时录入不正确数量的空格。如果一定要输入连续多个空格,可以使用符号\verb|~|,或者命令\verb|\nbs{}|。 后者是不可换行的空格。比如英文人名Donald Ervin Knuth,如果将其中的空格改为\verb|\nbs{}|,则系统会优先保证这三个单词在同一行显示。如果实在放不下了,才会在单词的音节断开处换行。例如:
Donald\nbs{}Ervin\nbs{}Knuth\nbs{}Donald\nbs{}Ervin\nbs{}Knuth\nbs{}Donald\nbs{}Ervin\nbs{}Knuth\nbs{}Donald\nbs{}Ervin\nbs{}Knuth\nbs{}Donald\nbs{}Ervin\nbs{}Knuth\nbs{}Donald\nbs{}Ervin\nbs{}Knuth\nbs{}Donald\nbs{}Ervin\nbs{}Knuth\nbs{}Donald\nbs{}Ervin\nbs{}Knuth\nbs{}Donald\nbs{}Ervin\nbs{}Knuth\nbs{}Donald\nbs{}Ervin\nbs{}Knuth\nbs{}Donald\nbs{}Ervin\nbs{}Knuth\nbs{}Donald\nbs{}Ervin\nbs{}Knuth\nbs{}
\end{enumerate}
@@ -687,7 +858,7 @@ $\backslash$ &\verb|$\backslash$| & \verb|\sym
\section{修改本模板}
可以通过用pdflatex编译uestcthesis.dtx文件得到uestcthesis.pdf。uestcthesis.pdf是源代码的说明文档。
-本模板源代码可在\url{http://mirror.ctan.org/macros/latex/contrib/uestcthesis/source/}获得。
+本模板源代码可在\url{http://mirror.ctan.org/macros/latex/contrib/uestcthesis/source/} 获得。
修改前请注意本模板的许可协议。
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/acknowledgements.tex b/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/acknowledgements.tex
index 5d1ca1f6733..025c2842cc6 100644
--- a/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/acknowledgements.tex
+++ b/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/acknowledgements.tex
@@ -1,8 +1,8 @@
-% !Mode:: "TeX:UTF-8"
-
-历时将近两个月的时间终于将这篇论文写完,在论文的写作过程中遇到了无数的困难和障碍,都在同学和老师的帮助下度过了。尤其要强烈感谢我的论文指导老师—XX老师,她对我进行了无私的指导和帮助,不厌其烦的帮助进行论文的修改和改进。另外,在校图书馆查找资料的时候,图书馆的老师也给我提供了很多方面的支持与帮助。在此向帮助和指导过我的各位老师表示最中心的感谢!
-
-感谢这篇论文所涉及到的各位学者。本文引用了数位学者的研究文献,如果没有各位学者的研究成果的帮助和启发,我将很难完成本篇论文的写作。
-
-感谢我的同学和朋友,在我写论文的过程中给予我了很多你问素材,还在论文的撰写和排版灯过程中提供热情的帮助。
-由于我的学术水平有限,所写论文难免有不足之处,恳请各位老师和学友批评和指正!
+% !Mode:: "TeX:UTF-8"
+
+历时将近两个月的时间终于将这篇论文写完,在论文的写作过程中遇到了无数的困难和障碍,都在同学和老师的帮助下度过了。尤其要强烈感谢我的论文指导老师—XX老师,她对我进行了无私的指导和帮助,不厌其烦的帮助进行论文的修改和改进。另外,在校图书馆查找资料的时候,图书馆的老师也给我提供了很多方面的支持与帮助。在此向帮助和指导过我的各位老师表示最中心的感谢!
+
+感谢这篇论文所涉及到的各位学者。本文引用了数位学者的研究文献,如果没有各位学者的研究成果的帮助和启发,我将很难完成本篇论文的写作。
+
+感谢我的同学和朋友,在我写论文的过程中给予我了很多你问素材,还在论文的撰写和排版灯过程中提供热情的帮助。
+由于我的学术水平有限,所写论文难免有不足之处,恳请各位老师和学友批评和指正!
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/cv.tex b/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/cv.tex
new file mode 100644
index 00000000000..a1fbbafba7a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/cv.tex
@@ -0,0 +1,30 @@
+% !Mode:: "TeX:UTF-8"
+
+\chapter*{个人简历及攻读硕士学位期间取得的研究成果}
+\phantomsection
+\addcontentsline{toc}{chapter}{个人简历及攻读硕士学位期间取得的研究成果}
+\section*{个人简历:}
+
+\noindent 某人,男,汉族,1988年8月出生。
+
+\noindent 2010年9月$\sim$2013年6月,电子科技大学通信与信息工程学院,攻读硕士学位。\\
+2006年9月$\sim$2010年6月,电子科技大学通信与信息工程学院,攻读学士学位。
+
+\section*{发表论文:}
+\renewcommand{\labelenumi}{[\theenumi]}
+\begin{enumerate}[labelindent=0pt]
+\item Zhuang J, Huang P. Robust Adaptive Array Beamforming With Subspace Steering Vector Uncertainties[J]. Signal Processing Letters, IEEE, 2012, 19(12): 785-788.
+\item Zhuang J, Huang P, Huang W. Matched direction beamforming based on signal subspace[C]//Acoustics, Speech and Signal Processing (ICASSP), 2012 IEEE International Conference on. IEEE, 2012: 2585-2588.
+\end{enumerate}
+
+\section*{参加的科研项目:}
+
+\noindent 2006年9月$\sim$2010年6月:阵列信号处理方面的研究;\\
+2006年9月$\sim$2010年6月:国家科技重大专项,民用飞机XXX项目。
+
+\section*{获奖情况:}
+
+\noindent 2010年:电子科技大学研究生二等奖学金;\\
+2011年:电子科技大学研究生一等奖学金、优秀研究生称号;\\
+2012年:电子科技大学研究生一等奖学金、优秀研究生称号;\\
+\hspace*{4em}国家奖学金、四川省优秀毕业生。\\ \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/reference.bib b/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/reference.bib
index 255d184fb5b..8f281dd0d66 100644
--- a/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/reference.bib
+++ b/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/reference.bib
@@ -364,7 +364,7 @@
@MASTERSTHESIS{ZHANGZHIXIANG1998,
AUTHOR = {张志祥},
TITLE = {间断动力系统的随机扰动及其在守恒律方程中的应用},
- publisher = {北京大学数学学院},
+ school = {北京大学数学学院},
YEAR = {1998},
type = {},
address = {北京},
@@ -380,7 +380,7 @@
@PHDTHESIS{CALMS1965,
AUTHOR = {Calms, R B},
TITLE = {Infrared spectroscopic studies on solid oxygen},
- publisher = {Univ. of California},
+ school = {Univ. of California},
YEAR = {1965},
type = {},
address = {Berkeley},
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/titlepage.tex b/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/titlepage.tex
index fd0ea9dc27e..3d1e509e38e 100644
--- a/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/titlepage.tex
+++ b/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/titlepage.tex
@@ -5,18 +5,19 @@
\stuid{2923000000}
\major{软件工程}
\school{示范性软件学院}
-\adviser{某老师}{教授}{电子科技大学}
+\adviser{某老师A}{教授A}{电子科技大学A}
\university{电子科技大学}
\date{2013}{1}{13}
-%以下信息研究生填写,本科生必须删除或注释掉以下全部内容
+%以下信息研究生填写,本科生可删除下面内容。
\englishtitle{ENGLISH TITLE OF MASTER THESIS} %论文的英文名
\classnumber{K825.1-64} %分类号
\securityclassification{公开} %密级
\UDC{676.874} %《国际十进分类法UDC》的类号
-\adviserB{某老师}{教授}{电子科技大学}%第二指导教师
-\adviserC{某老师}{教授}{电子科技大学}%第二指导教师
-\adviserD{某老师}{教授}{电子科技大学}%第二指导教师
+\majortype{工程专业学位} %专业学位类别
+\adviserB{某老师B}{教授B}{电子科技大学B}%第二指导教师
+\adviserC{某老师C}{教授C}{电子科技大学C}%第二指导教师
+\adviserD{某老师D}{教授D}{电子科技大学D}%第二指导教师
\oraldefensedate{2013}{1}{13} %论文答辩日期
\awarddate{2013}{1}{13} %学位授予日期
\chairman{某老师} %答辩委员会主席
@@ -24,4 +25,5 @@
\englishmajor{Software Engineering} %专业英文名
\englishauthor{Zhang Xiaojun} %作者英文名
\englishadvisor{Mou Laoshi} %指导教师英文名
-\englishshcool{School of Software Engineering} %学院英文名
+\englishshcool{School of Communication and Information} % 学院英文名
+%\englishshcoolextraline{Engineering} %如果学院英文名在英文扉页中一行显示不下,则自行断开,将后半部分写在这条命令中。 \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/doc/packagecheck.tex b/Master/texmf-dist/doc/latex/uestcthesis/doc/packagecheck.tex
new file mode 100644
index 00000000000..0ddd9548a4f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/uestcthesis/doc/packagecheck.tex
@@ -0,0 +1,261 @@
+%%
+%% This is file `packagecheck.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% uestcthesis.dtx (with options: `packagecheck')
+%%
+%% This is a generated file.
+%%
+%% Copyright 2012-2013 Shi Fujun <shifujun@foxmail.com>
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% 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.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Shi Fujun <shifujun@foxmail.com>.
+%%
+%% This work consists of the files uestcthesis.dtx, uestcthesis.ins
+%% and the derived file uestcthesis.cls, uestcthesis.bst and beamerthemeuestcthesis.sty.
+%% Other files in this work's package are belongs to the respective owners.
+%%
+
+
+\makeatletter
+\def\version@uestcthesis{v1.0.0}
+\IfFileExists{ctexbook.cls}{
+\documentclass[cs4size,UTF8,fancyhdr,hyperref,fntef,openany]{ctexbook}
+}{
+\documentclass{article}
+}
+\def\@parse@version@checkpackage#1/#2/#3#4#5\@nil{#1/#2/#3#4 }
+\def\packagelist{}
+\newcommand{\checkpackage}[2]{%
+ \expandafter\def\csname#1@needversion\endcsname{#2}
+ \IfFileExists{#1.\@pkgextension}{%
+ \usepackage{#1}%
+ \@ifpackagelater{#1}{#2}{%
+ \expandafter\def\csname#1@checkresult\endcsname{OK!}
+ }{%
+ \expandafter\def\csname#1@checkresult\endcsname{too old!}
+ }
+ \expandafter\def\csname#1@currentversion\endcsname{%
+ \xdef\cver@checkpackage{\csname ver@#1.sty\endcsname}
+ \expandafter\@parse@version@checkpackage\cver@checkpackage\@nil%
+ }%
+ }%
+ {\expandafter\def\csname#1@checkresult\endcsname{not found!}}%
+
+ \xdef\packagelist{#1,\packagelist}
+}
+\newcommand{\checkpackagespecial}[2]{%
+ \expandafter\def\csname#1@needversion\endcsname{#2}
+ \IfFileExists{#1.\@pkgextension}{%
+ \usepackage{#1}%
+ \expandafter\def\csname#1@checkresult\endcsname{Maybe OK!}
+
+ \expandafter\def\csname#1@currentversion\endcsname{%
+ unknown!
+ }%
+ }%
+ {\expandafter\def\csname#1@checkresult\endcsname{not found!}}%
+
+ \xdef\packagelist{#1,\packagelist}
+}
+\newcommand{\checkctexbookclass}[1]{%
+ \expandafter\def\csname ctexbook@needversion\endcsname{#1}
+ \IfFileExists{ctexbook.\@clsextension}{%
+ \@ifclasslater{ctexbook}{#1}{%
+ \expandafter\def\csname ctexbook@checkresult\endcsname{OK!}
+ }{%
+ \expandafter\def\csname ctexbook@checkresult\endcsname{too old!}
+ }
+ \expandafter\def\csname ctexbook@currentversion\endcsname{%
+ \xdef\cver@checkpackage{\csname ver@ctexbook.cls\endcsname}
+ \expandafter\@parse@version@checkpackage\cver@checkpackage\@nil%
+ }%
+ }%
+ {\expandafter\def\csname ctexbook@checkresult\endcsname{not found!}}%
+
+ \xdef\packagelist{ctexbook,\packagelist}
+}
+\def\checkresult#1{%
+ \makebox[4.5cm][l]{#1}%
+ \makebox[10em][l]{\csname#1@needversion\endcsname}%
+ \makebox[10em][l]{\csname#1@currentversion\endcsname}%
+ \makebox[10em][l]{\csname#1@checkresult\endcsname}\\
+}
+
+\checkctexbookclass{2011/03/11}
+\checkpackage{mathptmx}{2005/04/12}
+\checkpackage{etoolbox}{2011/01/03}
+\checkpackage{ifthen}{2001/05/26}
+\checkpackage{geometry}{2010/09/12}
+\checkpackage{graphicx}{1999/02/16}
+\checkpackage{calc}{2007/08/22}
+\checkpackage{float}{2001/11/08}
+\checkpackagespecial{texnames}{}%这个宏包没有版本号
+\checkpackage{caption}{2013/05/02}
+\checkpackage{booktabs}{2005/04/14}
+\checkpackage{tabularx}{1999/01/07}
+\checkpackage{threeparttable}{2003/06/13}
+\checkpackage{longtable}{2004/02/01}
+\checkpackage{placeins}{2005/04/18}
+\checkpackage{flafter}{2000/07/23}
+\checkpackage{amsmath}{2013/01/14}
+\checkpackage{amsfonts}{2013/01/14}
+\checkpackage{amssymb}{2013/01/14}
+\checkpackage{bm}{2004/02/26}
+\checkpackage{ntheorem}{2011/08/15}
+\checkpackage{natbib}{2010/09/13}
+\checkpackage{multibib}{2008/12/10}
+\checkpackage{cmap}{2008/03/06}
+\checkpackage{hyperxmp}{2013/07/18}
+\checkpackage{hyperref}{2012/11/06}
+\checkpackage{subfigure}{2002/07/30}
+\checkpackage{enumitem}{2011/09/28}
+\checkpackage{color}{2005/11/14}
+\checkpackage{marvosym}{2011/07/20}
+\checkpackage{glossaries}{2013/12/05}
+\checkpackage{footmisc}{2011/06/06}
+\checkpackage{pifont}{2005/04/12}
+
+\checkpackagespecial{fontenc}{2005/09/27}
+\checkpackage{l3bootstrap}{2014/01/04}
+\checkpackage{l3names}{2014/01/04}
+\checkpackage{etex}{1998/03/26}
+\checkpackage{expl3}{2014/01/07}
+\checkpackage{l3basics}{2014/01/04}
+\checkpackage{l3expan}{2014/01/04}
+\checkpackage{l3tl}{2013/12/27}
+\checkpackage{l3seq}{2013/12/14}
+\checkpackage{l3int}{2013/08/02}
+\checkpackage{l3quark}{2013/12/14}
+\checkpackage{l3prg}{2014/01/04}
+\checkpackage{l3clist}{2013/07/28}
+\checkpackage{l3token}{2013/08/25}
+\checkpackage{l3prop}{2013/12/14}
+\checkpackage{l3msg}{2013/07/28}
+\checkpackage{l3file}{2013/10/13}
+\checkpackage{l3skip}{2013/07/28}
+\checkpackage{l3keys}{2013/12/08}
+\checkpackage{l3fp}{2014/01/04}
+\checkpackage{l3box}{2013/07/28}
+\checkpackage{l3coffins}{2013/12/14}
+\checkpackage{l3color}{2012/08/29}
+\checkpackage{l3luatex}{2013/07/28}
+\checkpackage{l3candidates}{2014/01/06}
+\checkpackage{ifpdf}{2011/01/30}
+\checkpackage{ifxetex}{2010/09/12}
+\checkpackage{keyval}{1999/03/16}
+\checkpackage{indentfirst}{1995/11/23}
+\checkpackage{fix-cm}{2006/09/13}
+\checkpackage{CJKutf8}{2012/05/07}
+\checkpackage{inputenc}{2008/03/30}
+\checkpackage{CJK}{2012/05/07}
+\checkpackage{MULEenc}{2012/05/07}
+\checkpackage{CJKpunct}{2009/05/06}
+\checkpackage{CJKfntef}{2012/05/07}
+\checkpackage{CJKulem}{2012/05/07}
+\checkpackage{ulem}{2012/05/18}
+\checkpackage{ifvtex}{2010/03/01}
+\checkpackage{graphics}{2009/02/05}
+\checkpackage{trig}{1999/03/16}
+\checkpackage{infwarerr}{2010/04/08}
+\checkpackage{ltxcmds}{2011/11/09}
+\checkpackage{caption3}{2013/05/02}
+\checkpackage{array}{2008/09/09}
+\checkpackage{amstext}{2000/06/29}
+\checkpackage{amsbsy}{1999/11/29}
+\checkpackage{amsopn}{1999/12/14}
+\checkpackage{atenddvi}{2007/04/17}
+\checkpackage{zref-abspage}{2012/04/04}
+\checkpackage{zref-base}{2012/04/04}
+\checkpackage{kvsetkeys}{2012/04/25}
+\checkpackage{etexcmds}{2011/02/16}
+\checkpackage{ifluatex}{2010/03/01}
+\checkpackage{kvdefinekeys}{2011/04/07}
+\checkpackage{pdftexcmds}{2011/11/29}
+\checkpackage{auxhook}{2011/03/04}
+\checkpackage{atbegshi}{2011/10/05}
+\checkpackage{zref-lastpage}{2012/04/04}
+\checkpackage{atveryend}{2011/06/30}
+\checkpackage{kvoptions}{2011/06/30}
+\checkpackage{pdfescape}{2011/11/25}
+\checkpackage{stringenc}{2011/12/02}
+\checkpackage{intcalc}{2007/09/27}
+\checkpackage{hobsub-hyperref}{2012/04/25}
+\checkpackage{hobsub-generic}{2012/04/25}
+\checkpackage{hobsub}{2012/04/25}
+\checkpackage{bigintcalc}{2012/04/08}
+\checkpackage{bitset}{2011/01/30}
+\checkpackage{uniquecounter}{2011/01/30}
+\checkpackage{letltxmacro}{2010/09/02}
+\checkpackage{hopatch}{2011/06/24}
+\checkpackage{xcolor-patch}{2011/01/30}
+\checkpackage{refcount}{2011/10/16}
+\checkpackage{hycolor}{2011/01/30}
+\checkpackage{url}{2006/04/12}
+\checkpackage{rerunfilecheck}{2011/04/15}
+\checkpackage{xkeyval}{2012/10/14}
+\checkpackage{mfirstuc}{2013/11/04}
+\checkpackage{textcase}{2004/10/07}
+\checkpackage{xfor}{2009/02/05}
+\checkpackage{datatool-base}{2013/09/06}
+\checkpackage{substr}{2009/10/20}
+\checkpackage{datatool-fp}{2013/08/29}
+\checkpackage{fp}{1995/04/02}
+\checkpackage{defpattern}{1994/10/12}
+\checkpackage{fp-basic}{1996/05/13}
+\checkpackage{fp-addons}{1995/03/15}
+\checkpackage{fp-snap}{1995/04/05}
+\checkpackage{fp-exp}{1995/04/03}
+\checkpackage{fp-trigo}{1995/04/14}
+\checkpackage{fp-pas}{1994/08/29}
+\checkpackage{fp-random}{1995/02/23}
+\checkpackage{fp-eqn}{1995/04/03}
+\checkpackage{fp-upn}{1996/10/21}
+\checkpackage{fp-eval}{1995/04/03}
+\checkpackage{glossaries-compatible-307}{2013/11/14}
+\checkpackage{glossary-hypernav}{2013/11/14}
+\checkpackage{glossary-list}{2013/11/14}
+\checkpackage{glossary-long}{2013/11/14}
+\checkpackage{glossary-super}{2013/11/14}
+\checkpackage{supertabular}{2004/02/20}
+\checkpackage{glossary-tree}{2013/11/14}
+\checkpackage{ltcaption}{2013/02/03}
+\checkpackage{nameref}{2012/10/27}
+\checkpackage{gettitlestring}{2010/12/03}
+\makeatother
+\begin{document}
+\chapter{Packages Check}
+\makeatletter%
+\noindent NOTICE:This report is prepared for uestcthesis \version@uestcthesis.
+
+\noindent\makebox[4.5cm][l]{\bf Package}\makebox[10em][l]{\bf Need}\makebox[10em][l]{\bf Have}\makebox[10em][l]{\bf Check Result}\\
+\newif\iflisthasnext
+\def\poppackagename#1,#2\@nil{%
+\checkresult{#1}%
+\def\packagelist{#2}%
+}
+\loop
+\expandafter\poppackagename\packagelist\@nil%
+\ifx\packagelist\empty\listhasnextfalse %
+\else\listhasnexttrue%
+\fi%
+\iflisthasnext%
+\repeat%
+\makeatother
+\end{document}
+
+
+\endinput
+%%
+%% End of file `packagecheck.tex'.
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/doc/uestcthesis-doc.pdf b/Master/texmf-dist/doc/latex/uestcthesis/doc/uestcthesis-doc.pdf
index 7f8fdd73885..9929d6509f4 100644
--- a/Master/texmf-dist/doc/latex/uestcthesis/doc/uestcthesis-doc.pdf
+++ b/Master/texmf-dist/doc/latex/uestcthesis/doc/uestcthesis-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/doc/uestcthesis-doc.tex b/Master/texmf-dist/doc/latex/uestcthesis/doc/uestcthesis-doc.tex
index aadece2abf7..95f11eb4e92 100644
--- a/Master/texmf-dist/doc/latex/uestcthesis/doc/uestcthesis-doc.tex
+++ b/Master/texmf-dist/doc/latex/uestcthesis/doc/uestcthesis-doc.tex
@@ -1,6 +1,7 @@
% !Mode:: "TeX:UTF-8"
-\documentclass[doctor]{uestcthesis}
+\documentclass[doctor,listoffigures,listoftables]{uestcthesis}
+
\begin{document}
\include{chapters/tuition}
\include{chapters/math}
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/source/rvdtx.sty b/Master/texmf-dist/doc/latex/uestcthesis/source/rvdtx.sty
deleted file mode 100644
index 3f6d0ac09a9..00000000000
--- a/Master/texmf-dist/doc/latex/uestcthesis/source/rvdtx.sty
+++ /dev/null
@@ -1,349 +0,0 @@
-%
-%
-% File: rvdtx.sty
-%
-% Auxiliary package to format *.dtx documents.
-%
-% Copyright (c) 2008, CV Radhakrishnan <cvr@river-valley.org>,
-%
-% This file may be distributed and/or modified under the conditions
-% of the LaTeX Project Public License, either version 1.2 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.2 or later is part of all distributions of LaTeX
-% version 1999/12/01 or later.
-%
-%
-\newcounter{colorscheme}
-
-\DeclareOption{green}{\setcounter{colorscheme}{1}}
-\DeclareOption{orange}{\setcounter{colorscheme}{0}}
-\ProcessOptions
-
-\RequirePackage[dvipsnames,svgnames]{xcolor}
-
-\ifcase\thecolorscheme
-%
-% Orange color spec (default)
-%
- \colorlet{itemcolor}{brown}
- \colorlet{verbcolor}{Sepia}
- \colorlet{botrulecolor}{orange!25}
- \colorlet{botbgcolor}{orange!15}
- \colorlet{botcolor}{orange!80}
- \colorlet{pgrulecolor}{orange}
- \colorlet{pgbgcolor}{white}
-
- \colorlet{quicklinkrulecolor}{orange!40}
- \colorlet{quicklinkcolor}{brown}
- \colorlet{topverticalrule}{brown}
- \colorlet{titlecolor}{brown}
- \colorlet{hlinkcolor}{brown}
- \colorlet{hlinktricolor}{orange!70}
- \colorlet{linkcolor}{brown}
- \colorlet{urlcolor}{brown}
-
- \colorlet{arrayrulecolor}{olive!30}
- \colorlet{seccolor}{brown}
-
- \colorlet{toprulecolor}{orange!30}
- \colorlet{topbgcolor}{orange!10}
- \colorlet{topcolor}{brown!80}
-%
-%
-\or% Green color specs
-%
-%
- \colorlet{itemcolor}{OliveGreen}
- \colorlet{verbcolor}{OliveGreen}
- \colorlet{botrulecolor}{GreenYellow!25}
- \colorlet{botbgcolor}{GreenYellow!30}
- \colorlet{botcolor}{Green!80}
- \colorlet{pgrulecolor}{GreenYellow}
- \colorlet{pgbgcolor}{white}
-
- \colorlet{quicklinkrulecolor}{Green!40}
- \colorlet{quicklinkcolor}{Green}
- \colorlet{topverticalrule}{Green}
- \colorlet{titlecolor}{DarkOliveGreen}
- \colorlet{hlinkcolor}{DarkOliveGreen}
- \colorlet{hlinktricolor}{Green!70}
- \colorlet{linkcolor}{OliveGreen}
- \colorlet{urlcolor}{OliveGreen}
-
- \colorlet{arrayrulecolor}{olive!30}
- \colorlet{seccolor}{OliveGreen}
-
- \colorlet{toprulecolor}{GreenYellow!50}
- \colorlet{topbgcolor}{GreenYellow!20}
- \colorlet{topcolor}{GreenYellow!80}
-\fi
-
-\def\floatpagefraction{.99}
-\usepackage{geometry}
-\geometry{top=2in,
- bottom=1in,
- left=2in,
- right=1in,
- a4paper}
-
-\RequirePackage{comment,xspace}
-\def\xml{\textsc{xml}\xspace}
-\def\pdf{\textsc{pdf}\xspace}
-\def\pdfa{\textsc{pdf/a-1}b\xspace}
-\def\pdfx{\textsc{pdf/x-1}a\xspace}
-\def\xmp{\textsc{xmp}\xspace}
-\def\pdftex{\textsc{pdf\TeX}\xspace}
-\def\defmacro#1{\texttt{\@bsl#1}}
-\def\thanh{H\`an Th\^e Th\`anh\xspace}
-
-\let\@DRAFTout@Hook\@empty
-\newcommand{\DRAFTout}{\g@addto@macro\@DRAFTout@Hook}
-\newcommand{\@DRAFTout@Out}{%
- \afterassignment\@DRAFTout@Test
- \global\setbox\@cclv= %
- }
-\newcommand{\@DRAFTout@Test}{%
- \ifvoid\@cclv\relax
- \aftergroup\@DRAFTout@Output
- \else
- \@DRAFTout@Output
- \fi%
- }
-\newcommand{\@DRAFTout@Output}{%
- \@DRAFTout@Hook%
- \@DRAFTout@Org@Out\box\@cclv%
- }
-\newcommand{\@DRAFTout@Org@Out}{}
-\newcommand*{\@DRAFTout@Init}{%
- \let\@DRAFTout@Org@Out\shipout
- \let\shipout\@DRAFTout@Out
- }
-\newdimen\OHeight
-\setlength\OHeight{\textheight}
-\addtolength\OHeight{\headheight}
-\addtolength\OHeight{\headsep}
-\addtolength\OHeight{\footskip}
-
-\newif\ifoverlay\overlayfalse
-
-\AtBeginDocument{\@DRAFTout@Init}
-\newcommand{\@DraftOverlay@Hook}{}
-\newcommand{\AddToDraftOverlay}{\g@addto@macro\@DraftOverlay@Hook}
-\newcommand{\ClearDraftOverlay}{\let\@DraftOverlay@Hook\@empty}
-\newcommand{\@DraftOverlay}{%
- \ifx\@DraftOverlay@Hook\@empty
- \else
- \bgroup
- \@tempdima=1in
- \@tempcnta=\@tempdima
- \@tempcntb=-\@tempdima
- \advance\@tempcntb\paperheight
- \ifoverlay
- \global\setbox\@cclv\vbox{%
- \box\@cclv
- \vbox{\let\protect\relax%
- \unitlength=1pt%
- \pictur@(0,0)(\strip@pt\@tempdima,\strip@pt\@tempdimb)%
- \@DraftOverlay@Hook%
- \endpicture}}%
- \else
- \global\setbox\@cclv\vbox{%
- \vbox{\let\protect\relax%
- \unitlength=1sp%
- \pictur@(0,0)(\@tempcnta,\@tempcntb)%
- \@DraftOverlay@Hook%
- \endpicture}%
- \box\@cclv}%
- \fi
- \egroup
- \fi
-}
-
-\definecolor{gray30}{gray}{.7}
-\definecolor{gray20}{gray}{.8}
-\definecolor{gray10}{gray}{.9}
-
-\DRAFTout{\@DraftOverlay}
-\long\def\puttext(#1)#2{\AddToDraftOverlay{%
- \setlength{\unitlength}{1pt}\thinlines%
- \put(#1){#2}}}
-
-\MakeShortVerb{\|}
-
-\IfFileExists{charter.sty}{\RequirePackage{charter}}{}
-\IfFileExists{lfr.sty}{\RequirePackage[scaled=.9]{lfr}}{}
-\IfFileExists{prima.sty}{\RequirePackage[scaled=.8]{prima}}{}
-
-\def\theCodelineNo{\reset@font\tiny\arabic{CodelineNo}}
-
-\def\@seccntformat#1{\llap{\csname the#1\endcsname.\hspace*{6pt}}}
-\def\section{\@startsection {section}{1}{\z@}%
- {-3.5ex \@plus -1ex \@minus -.2ex}%
- {2.3ex \@plus.2ex}%
- {\normalfont\large\bfseries\color{seccolor}}}
-\def\subsection{\@startsection{subsection}{2}{\z@}%
- {-3.25ex\@plus -1ex \@minus -.2ex}%
- {1.5ex \@plus .2ex}%
- {\normalfont\normalsize\bfseries\color{seccolor}}}
-\def\subsubsection{\@startsection{subsubsection}{3}{\z@}%
- {-3.25ex\@plus -1ex \@minus -.2ex}%
- {1.5ex \@plus .2ex}%
- {\normalfont\normalsize\bfseries\color{seccolor}}}
-
-%\RequirePackage[draft]{pdfdraftcopy}
-% \draftstring{}
- \puttext(0,36){\botstring}%
- \puttext(0,840){\copy\topbox}
-
-\RequirePackage{colortbl}
-\arrayrulecolor{arrayrulecolor}
-\let\shline\hline
-\def\hline{\noalign{\vskip3pt}\shline\noalign{\vskip4pt}}
-
-\RequirePackage[pdftex,colorlinks]{hyperref}
-\def\Hlink#1#2{\hyperlink{#2}{\color{hlinktricolor}%
- $\blacktriangleright$~\color{hlinkcolor}#1}}
- \def\@linkcolor{linkcolor}
- \def\@urlcolor{urlcolor}
-
-\pagestyle{empty}
-\def\version#1{\gdef\@version{#1}}
-\def\@version{\fileversion}
-\def\contact#1{\gdef\@contact{\texttt{#1}}}
-\def\author#1{\gdef\@author{#1}}
-\def\@author{River Valley Technologies}
-\def\@contact{\texttt{shifujun@foxmail.com}}
-\def\keywords#1{\gdef\@keywords{#1}}
-\def\@keywords{\LaTeX, \xml}
-
-\long\def\Hrule{\\[-4pt]\hspace*{-3em}%
- {\color{quicklinkrulecolor}\rule{\linewidth}{.1pt}}\\}
-
-\long\def\dtxmark[#1][#2]#3#4#5{\def\next{#1}%
- \ifcase\next\or\Hlink{#4}{#3}\Hrule \fi}
-
-\newbox\topbox
-\long\def\maketitle{\global\setbox\topbox=\vbox{\hsize=\paperwidth
- \parindent=0pt
- \fcolorbox{toprulecolor}{topbgcolor}%
- {\parbox[t][1.5in][c]{\paperwidth}%
- {\hspace*{15mm}%
- \parbox[c]{.35\paperwidth}{\fontsize{18pt}{20pt}%
- \raggedright\normalfont\sffamily \selectfont
- \color{titlecolor} \@title\\[6pt]
- {\normalsize\rmfamily\scshape\@author}}%
-% {\footnotesize\textsc{keywords:} \@keywords}}%
- \hfill
- \parbox[c][1.5in][c]{1mm}{\color{topverticalrule}%
- \rule{.1pt}{1.5in}}%
- \hfill
- \parbox[c][1.5in][c]{.35\paperwidth}%
- {\normalfont\footnotesize\sffamily\color{quicklinkcolor}%
- \vspace*{6pt} QUICK LINKS\Hrule
- \IfFileExists{tmp.out}{\input tmp.out}{}%
- }\hspace*{5mm}%
- }%
- }%
- }%
-}
-\gdef\botstring{\fcolorbox{botrulecolor}{botbgcolor}%
- {\parbox[t][.5in][t]{\paperwidth}%
- {\normalfont\sffamily\footnotesize%
- \color{botcolor}%
- \hspace*{5mm}\parbox[c][.5in][c]{.45\paperwidth}%
- {\raggedright项目主页:
- \href{https://github.com/shifujun/UESTCthesis}{%
- \texttt{https://github.com/shifujun/UESTCthesis}}\\
- 获得最新的模板、反馈问题均请访问项目主页!
- }\hfill%
- \parbox[c][.5in][c]{1cm}
- {\centering\sffamily\mdseries
- \fcolorbox{pgrulecolor}{pgbgcolor}{\thepage}%
- }\hfill
- \parbox[c][.5in][c]{.45\paperwidth}
- {\raggedleft\begin{tabular}{rl}%
- 版本:&\@version\\
- 日期:&\@date\\
- 联系方式:&\@contact
- \end{tabular}\hspace*{5mm}%
- }%
- }%
- }%
- }
-
-\RequirePackage{enumitem,amsfonts,amssymb}
-
-\setitemize[1]{label={\small\color{itemcolor}$\blacktriangleright$},itemsep=0pt}
-\setitemize[2]{label={\small\color{itemcolor}$\triangleright$},itemsep=0pt}
-\setenumerate[1]{label={\small\color{itemcolor}\arabic*.},itemsep=0pt}
-
-\def\MacroFont{\fontencoding\encodingdefault
- \fontfamily\ttdefault
- \fontseries\mddefault
- \fontshape\updefault
- \color{verbcolor}\small}%
-
-\def\verbatim@font{\normalfont\color{verbcolor}\ttfamily}
-
-\def\verb{\relax\ifmmode\hbox\else\leavevmode\null\fi
- \bgroup
- \verb@eol@error \let\do\@makeother \dospecials
- \verbatim@font\@noligs
- \@ifstar\@sverb\@verb}
-
-
-\def\@lbr{\expandafter\@gobble\string\{}
-\def\@rbr{\expandafter\@gobble\string\}}
-\def\@bsl{\expandafter\@gobble\string\\}
-\def\@Bsl#1{\texttt{\@bsl#1}\xspace}
-\def\trics#1{\protect\@Bsl{#1}}
-\def\onecs#1{\protect\@Bsl{#1}}
-%\let\trics\onecs
-
-\c@GlossaryColumns=1
-\c@IndexColumns=2
-
-\def\index@prologue{\section{Index}%
- \markboth{Index}{Index}%
- Numbers written in italic refer to the page
- where the corresponding entry is described;
- numbers underlined refer to the
- \ifcodeline@index
- code line of the
- \fi
- definition; numbers in roman refer to the
- \ifcodeline@index
- code lines
- \else
- pages
- \fi
- where the entry is used.
- }
-\def\glossary@prologue{}
-\renewenvironment{theglossary}{%
- \glossary@prologue%][\GlossaryMin]%
- \GlossaryParms \let\item\@idxitem \ignorespaces}%
- {}
-
-\newenvironment{decl}[1][]%
- {\par\small\addvspace{1.5ex plus 1ex}%
- \vskip -\parskip
- \ifx\relax#1\relax
- \def\@decl@date{}%
- \else
- \def\@decl@date{\NEWfeature{#1}}%
- \fi
- \noindent%\hspace{-\leftmargini}%
- \begin{tabular}{l}\hline\ignorespaces}%
- {\\\hline\end{tabular}\nobreak\@decl@date\par\nobreak
- \vspace{0.75ex}\vskip -\parskip\ignorespacesafterend\noindent}
-
-\endinput
-
-%%
-%% End of file 'rvdtx.sty'
-%%
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.dtx b/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.dtx
index 5fc03653a4c..da85630950f 100644
--- a/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.dtx
+++ b/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.dtx
@@ -30,7 +30,7 @@
%<class>\NeedsTeXFormat{LaTeX2e}[2011/06/27]
%<class>\ProvidesClass{uestcthesis}
%<*class>
- [2013/06/07 v0.4.8 UESTC thesis class]
+ [2014/03/12 v1.0.0 UESTC thesis class]
%</class>
%<*driver>
\documentclass{ltxdoc}
@@ -78,6 +78,11 @@
% \iffalse
%<*class>
% \fi
+% \section{文类版本号说明}
+% \changes{v1.0.0}{2014/03/12}{因学校正式推荐使用本模板,版本号改为1.0.0。}
+% 本模板的版本号由3段组成。在v1.0.0之前,第一段是0,表示模板处于测试期。从2014年3月12日起,
+% 学校正式推荐使用本模板,故将版本号第一段改为1,表示转为正式版。第二段每次增加1点,表示模板功能上有所增加。
+% 第三段每次增加1点,表示功能没有增加,只修复了Bug。
% \section{文类源代码}
% \changes{v0.21}{2013/01/22}{将模板重构为DocStrip格式}
% \subsection{中文支持}
@@ -95,7 +100,20 @@
% \begin{macrocode}
\LoadClass[cs4size,UTF8,fancyhdr,hyperref,fntef,openany]{ctexbook}[2011/03/11]
% \end{macrocode}
-%
+%\changes{v0.6.1}{2014/01/20}{修正所有正文的英文为Times字体。抄录环境中的英文使用打印机字体,并不能用Times字体。}
+% \begin{macrocode}
+\RequirePackage{mathptmx}
+% \end{macrocode}
+%\changes{v0.6.8}{2014/03/06}{将公式中的字体改回v0.6.1之前的CM字体。}
+% mathptmx宏包同时将公式中的字体也改为了Times字体。因为公式中还是用默认CM字体较多,所以这里还需要修改回来。
+% \begin{macrocode}
+\DeclareSymbolFont{symbols} {OMS}{cmsy}{m}{n}
+% \end{macrocode}
+%\changes{v0.6}{2014/01/16}{修正ttfamily为宋体,而不是默认的仿宋。}
+%修正ttfamily为宋体,而不是默认的仿宋。
+% \begin{macrocode}
+\renewcommand{\ttfamily}{\CTEX@save@ttfamily \CJKfamily {\CTEX@rm@family }}
+% \end{macrocode}
%调用etoolbox宏包,为了使用其提供的|\ifblank|命令。
% \begin{macrocode}
\RequirePackage{etoolbox}[2011/01/03]
@@ -153,6 +171,12 @@
\newcommand{\chapternumberformat@uestcthesis}{\chinese{chapter}}
%为了根据学位不同而设置不同的章标题序号方式而定义的命令。此处设置为本科论文章标题用汉字数字序号。
+\renewcommand{\firsttitlepage}{\firsttitlepage@master}
+%中文封面使用硕士学位论文封面。
+\renewcommand{\secondtitlepage}{\secondtitlepage@Academic}
+%中文扉页使用博士和学术型硕士中文扉页。
+\renewcommand{\thirdtitlepage}{\thirdtitlepage@Master}
+%英文扉页使用硕士学位英文扉页。
}
% \end{macrocode}
% \end{macro}
@@ -181,6 +205,12 @@
\newcommand{\chapternumberformat@uestcthesis}{\chinese{chapter}}
%为了根据学位不同而设置不同的章标题序号方式而定义的命令。此处设置为本科论文章标题用汉字数字序号。
+\renewcommand{\firsttitlepage}{\firsttitlepage@doctor}
+%中文封面使用博士学位论文封面。
+\renewcommand{\secondtitlepage}{\secondtitlepage@Academic}
+%中文扉页使用博士和学术型硕士中文扉页。
+\renewcommand{\thirdtitlepage}{\thirdtitlepage@Doctor}
+%英文扉页使用博士学位英文扉页。
}
% \end{macrocode}
% \end{macro}
@@ -199,9 +229,15 @@
}
\newcommand{\acknowledgementsname@uestcthesis}{致\enspace 谢}
\newcommand{\glossaryname@uestcthesis}{主要符号表}
-\newcommand{\entryname@uestcthesis}{符号或术语}
+\newcommand{\acronymname@uestcthesis}{缩略词表}
+\newcommand{\entryname@uestcthesis}{符号}
\newcommand{\descriptionname@uestcthesis}{说明}
-\newcommand{\glspageheader@uestcthesis}{页码}
+\newcommand{\pagelistname@uestcthesis}{页码}
+\newcommand{\acronymheader@uestcthesis}{缩略词}
+\newcommand{\acronymfull@uestcthesis}{英文全称}
+\newcommand{\acronymtranslation@uestcthesis}{中文全称}
+\renewcommand{\listfigurename}{图目录}
+\renewcommand{\listtablename}{表目录}
% \end{macrocode}
% \begin{macro}{\english@uestcthesis}
%英文选项相关设置:
@@ -223,19 +259,129 @@
\renewcommand{\CTEX@figurename}{Figure}
\renewcommand{\CTEX@tablename}{Table}
\renewcommand{\glossaryname@uestcthesis}{Glossary}
+\renewcommand{\acronymname@uestcthesis}{Acronyms}
\renewcommand{\entryname@uestcthesis}{Notation}
\renewcommand{\descriptionname@uestcthesis}{Description}
-\renewcommand{\glspageheader@uestcthesis}{Page}
+\renewcommand{\pagelistname@uestcthesis}{Page List}
+\renewcommand{\acronymheader@uestcthesis}{Acronym}
+\renewcommand{\acronymfull@uestcthesis}{Full Name}
+\renewcommand{\acronymtranslation@uestcthesis}{Chinese}
\renewcommand{\CTEX@appendixname}{Appendix~}
+\renewcommand{\listfigurename}{List of Figures}
+\renewcommand{\listtablename}{List of Tables}
}
% \end{macrocode}
% \end{macro}
-% 声明三个选项分别代表三种学位论文。由于其中的定义包含中文,所以声明必须放在ctexbook文类后面。
+% \begin{macro}{\firsttitlepage}
+% 设置一个通用的插入封面命令。然后在不同的选项设置中重新这个命令,插入正确的封面。
+% \begin{macrocode}
+\newcommand{\firsttitlepage}{\newpage 错误:没有指定封面!}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\secondtitlepage}
+% 设置一个通用的插入中文扉页命令。然后在不同的选项设置中重新这个命令,插入正确的中文扉页。
+% \begin{macrocode}
+\newcommand{\secondtitlepage}{\newpage 错误:没有指定中文扉页!}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\thirdtitlepage}
+% 设置一个通用的插入英文扉页命令。然后在不同的选项设置中重新这个命令,插入正确的英文扉页。
+% \begin{macrocode}
+\newcommand{\thirdtitlepage}{\newpage 错误:没有指定英文扉页!}
+% \end{macrocode}
+% \end{macro}
+% 声明7个选项分别代表7种论文类型,会有不同的封面或扉页。由于其中的定义包含中文,所以声明必须放在ctexbook文类后面。
+% \changes{v0.6.4}{2014/02/25}{新增3个选项。用以支持新增的3种中文扉页。}
+% bachelor代表学士学位;master代表学术型硕士学位;doctor代表博士学位;
+% engineeringmaster代表工程硕士学位;professionalmaster代表专业硕士学位;researchreport代表留学生研究报告;
+% engineeringdoctor代表工程博士学位;
+% english选项表示替换所有预定名为英文。
% \begin{macrocode}
\DeclareOption{bachelor}{\bachelor@uestcthesis}
\DeclareOption{master}{\master@uestcthesis}
\DeclareOption{doctor}{\doctor@uestcthesis}
\DeclareOption{english}{\english@uestcthesis}
+\DeclareOption{engineeringmaster}{%
+\master@uestcthesis
+%复用学术型硕士选项的设置。
+\renewcommand{\secondtitlepage}{\secondtitlepage@Engineering}
+%中文扉页使用工程博士/工程硕士中文扉页。
+}
+\DeclareOption{engineeringdoctor}{%
+\doctor@uestcthesis
+%复用学术型博士选项的设置。
+\renewcommand{\firsttitlepage}{\firsttitlepage@engineeringdoctor}
+%中文封面使用工程博士学位论文封面。
+\renewcommand{\secondtitlepage}{\secondtitlepage@Engineering}
+%中文扉页使用工程博士/工程硕士中文扉页。
+}
+\DeclareOption{professionalmaster}{%
+\master@uestcthesis
+%复用学术型硕士选项的设置。
+\renewcommand{\firsttitlepage}{\firsttitlepage@professionalmaster}
+%中文封面使用专业学位硕士学位论文封面。
+\renewcommand{\secondtitlepage}{\secondtitlepage@Professional}
+%中文扉页使用专业学位硕士中文扉页。
+}
+\DeclareOption{researchreport}{%
+\master@uestcthesis
+%复用学术型硕士选项的设置。
+\renewcommand{\secondtitlepage}{\secondtitlepage@ResearchReport}
+%中文扉页使用研究报告中文扉页。
+\renewcommand{\thirdtitlepage}{\thirdtitlepage@MasterResearchReport}
+%英文扉页使用研究报告英文扉页。
+}
+% \end{macrocode}
+% \changes{v0.6.4}{2014/02/25}{新增2个选项withoutforepages和onlychapters。}
+% 设置一个选项。启用后不编译摘要之前的部分(封面、中文扉页、英文扉页、独创性声明和论文使用授权)。
+% \begin{macrocode}
+\DeclareOption{withoutforepages}{
+\newcommand{\withoutforepages@uestcthesis}{}
+}
+% \end{macrocode}
+% 设置一个选项。启用后只编译正文部分。
+% \begin{macrocode}
+\DeclareOption{onlychapters}{
+\newcommand{\withoutforepages@uestcthesis}{}
+\newcommand{\onlychapters@uestcthesis}{}
+}
+% \end{macrocode}
+% \changes{v0.6}{2014/01/11}{添加个人简历的选项:cv}
+% 添加一个cv选项。启用后用contents目录中的cv.tex(人简历及攻读硕士学位期间取得的研究成果)
+% 代替publications.bib(攻博/硕期间发表的论文)显示在论文的最后。
+% \begin{macrocode}
+\DeclareOption{cv}{
+\newcommand{\usecv@uestcthesis}{\input{contents/cv.tex}}
+}
+% \end{macrocode}
+% 声明选项用以决定是否添加图表目录。
+% \changes{v0.6}{2014/01/11}{添加图表目录的选项:listoffigures和listoftables}
+% \begin{macrocode}
+\newcommand{\insertlof}{}
+\newcommand{\insertlot}{}
+\DeclareOption{listoffigures}{\renewcommand{\insertlof}{%
+\clearpage{\pagestyle{empty}\cleardoublepage}
+\figureslistmatter
+\def\l@figure##1##2{\ifnum 0>\c@tocdepth \else \vskip \z@ \@plus .2\p@ {\leftskip
+0em\relax \rightskip \@tocrmarg \parfillskip -\rightskip \parindent 0em\relax
+\@afterindenttrue \interlinepenalty \@M \leavevmode \@tempdima 1em\relax \advance
+\leftskip \@tempdima \null \nobreak \hskip -\leftskip {\CTEX@figurename~##1}\nobreak \leaders
+\hbox {$\m@th \mkern \@dotsep mu\hbox {.}\mkern \@dotsep mu$}\hfill \nobreak
+\hb@xt@ \@pnumwidth {\hfil \normalfont \normalcolor ##2}\par }\fi}
+\listoffigures
+}}
+
+\DeclareOption{listoftables}{\renewcommand{\insertlot}{%
+\clearpage{\pagestyle{empty}\cleardoublepage}
+\tableslistmatter
+\def\l@table##1##2{\ifnum 0>\c@tocdepth \else \vskip \z@ \@plus .2\p@ {\leftskip
+0em\relax \rightskip \@tocrmarg \parfillskip -\rightskip \parindent 0em\relax
+\@afterindenttrue \interlinepenalty \@M \leavevmode \@tempdima 1em\relax \advance
+\leftskip \@tempdima \null \nobreak \hskip -\leftskip {\CTEX@tablename~##1}\nobreak \leaders
+\hbox {$\m@th \mkern \@dotsep mu\hbox {.}\mkern \@dotsep mu$}\hfill \nobreak
+\hb@xt@ \@pnumwidth {\hfil \normalfont \normalcolor ##2}\par }\fi}
+\listoftables
+}}
\ProcessOptions\relax
% \end{macrocode}
% \subsection{版面设置}
@@ -249,9 +395,15 @@
%top:页面顶边与版心之间的距离。\\
%left:双页排版的内侧边距。
%
+% \changes{v0.5.2}{2013/08/07}{针对本科规范还没有修订,单独设置硕博的新规范要求的版面设置}
% \begin{macrocode}
+\ifdefstring{\degree@uestcthesis}{bachelor}{
\RequirePackage[a4paper,headheight=12.65pt,headsep=4mm,includeheadfoot,centering,
top=2.75cm,left=3cm]{geometry}
+}{
+\RequirePackage[a4paper,headheight=12.65pt,headsep=4mm,includeheadfoot,centering,
+ top=2.08cm,left=3cm]{geometry}
+}
% \end{macrocode}
%
%按照学校要求需要设置默认行距为20磅。参数是倍数值,没有单位。这个值是通过
@@ -287,20 +439,29 @@
\RequirePackage[format=hang,labelsep=space]{caption}
% \end{macrocode}
%
-%设置浮动体在文本中间的前后间距为6磅。同时在caption宏包的belowskip选项中设置的-7mm+6bp。
+%设置浮动体在文本中间的前后间距为6磅,按照硕博标准标题前后其余的6磅另行设置。
%
% \begin{macrocode}
\intextsep=6bp
% \end{macrocode}
%
-%分别设置表和图的标题与正文的距离。\\
-%aboveskip:标题与图表之间的距离。设置为0是为了将前文间距交给|\intextsep|设置。\\
-%belowskip:标题与下文之间的距离。其中-7mm是将后文间距先调为0,再加上需要的6磅。
-%这样设置是因为|\intextsep|命令设置出的效果中后文间距比6bp多出约7mm距离。
+%设置浮动体在页面顶端或底端时与文本之间的距离。
+% \begin{macrocode}
+\textfloatsep=6bp
+% \end{macrocode}
+%设置浮动体在页面顶端或底端时多个之间的距离。
+% \begin{macrocode}
+\floatsep=6bp
+% \end{macrocode}
%
+%分别设置表和图的标题与正文的距离。\\
+%aboveskip:标题与图表之间的距离。\\
+%belowskip:标题与下文之间的距离。\\
+%图的前后距离都设置为0是因为有子图标题可能在图题之后,故而不在此设置。
+% \changes{v0.5.2}{2013/08/07}{根据新的硕博规范单独设置硕博论文的图表标题前后段距}
% \begin{macrocode}
-\captionsetup[figure]{aboveskip=0bp,belowskip=-7mm+6bp}
-\captionsetup[table]{aboveskip=0bp,belowskip=0bp}
+\captionsetup[figure]{aboveskip=0bp,belowskip=0bp}
+\captionsetup[table]{aboveskip=0bp,belowskip=6bp}
% \end{macrocode}
%
%调用宏包:\\
@@ -355,28 +516,128 @@
%|\pic|命令生成一个独占一行、居中的图片。标题前后间距符合科大毕设标准
% \begin{macrocode}
\newcommand{\pic}[4][htbp]{
-\begin{figure}[##1]
-\centering
- \includegraphics[##3]{##4}
- \caption{##2}
- \label{##4}
-\end{figure}
+\begin{figure}[##1]%
+\centering%
+ \includegraphics[##3]{##4}%
+ \caption{##2}%
+ \label{##4}%
+ \vspace{6bp}%
+\end{figure}%
}
% \end{macrocode}
% \end{macro}
-% \begin{environment}{pics}
+% \subsubsection{子图环境设置}
+%\changes{v0.5.0}{2013/08/01}{改变子图的标题位置,使之符合学校标准}
+%由于子图中包含了中文,所以使用|\edef|等嵌套定义方式不能使用。故而定义了20个子图
+%名宏。
+% \begin{macro}{\clearallsubfigcaptions}
+% 既做初始化又做清空使用。
+% \begin{macrocode}
+\newcommand{\clearallsubfigcaptions}{
+\gdef\subfigcaptionA{}\gdef\subfigcaptionB{}\gdef\subfigcaptionC{}%
+\gdef\subfigcaptionD{}\gdef\subfigcaptionE{}\gdef\subfigcaptionF{}%
+\gdef\subfigcaptionG{}\gdef\subfigcaptionH{}\gdef\subfigcaptionI{}%
+\gdef\subfigcaptionJ{}\gdef\subfigcaptionK{}\gdef\subfigcaptionL{}%
+\gdef\subfigcaptionM{}\gdef\subfigcaptionN{}\gdef\subfigcaptionO{}%
+\gdef\subfigcaptionP{}\gdef\subfigcaptionQ{}\gdef\subfigcaptionR{}%
+\gdef\subfigcaptionS{}\gdef\subfigcaptionT{}%
+}
+\clearallsubfigcaptions
+% \end{macrocode}
+% \end{macro}
+%重定义|\@makesubfigurecaption|命令,将传入|\@makesubfigurecaption|命令中的子图
+%标题存入前面自定义的20个子图标题宏中,而不直接打印在原来的位置。
+%\changes{v0.6.5}{2014/03/01}{修复BUG:子图有不居中的情况。}
+% \begin{macrocode}
+\def\@makesubfigurecaption ##1##2{\setbox \@tempboxa \hbox {\subcapsize {
+\subcaplabelfont ##1}{\subcapfont \ignorespaces }}\@tempdimb =-\subfigcapmargin
+\multiply \@tempdimb \tw@ \advance \@tempdimb \@tempdima \hbox to\@tempdima
+{\hss \ifdim \wd \@tempboxa >\@tempdimb \subfig@caption {##1}{}\else
+\ifsubcapnooneline \subfig@caption {##1}{}\else \box \@tempboxa \fi \fi \hss }
+\ifthenelse{\equal{\subfigcaptionA}{}}{\gdef\subfigcaptionA{{(a)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionB}{}}{\gdef\subfigcaptionB{;{(b)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionC}{}}{\gdef\subfigcaptionC{;{(c)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionD}{}}{\gdef\subfigcaptionD{;{(d)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionE}{}}{\gdef\subfigcaptionE{;{(e)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionF}{}}{\gdef\subfigcaptionF{;{(f)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionG}{}}{\gdef\subfigcaptionG{;{(g)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionH}{}}{\gdef\subfigcaptionH{;{(h)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionI}{}}{\gdef\subfigcaptionI{;{(i)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionJ}{}}{\gdef\subfigcaptionJ{;{(j)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionK}{}}{\gdef\subfigcaptionK{;{(k)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionL}{}}{\gdef\subfigcaptionL{;{(l)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionM}{}}{\gdef\subfigcaptionM{;{(m)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionN}{}}{\gdef\subfigcaptionN{;{(n)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionO}{}}{\gdef\subfigcaptionO{;{(o)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionP}{}}{\gdef\subfigcaptionP{;{(p)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionQ}{}}{\gdef\subfigcaptionQ{;{(q)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionR}{}}{\gdef\subfigcaptionR{;{(r)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionS}{}}{\gdef\subfigcaptionS{;{(s)}{\ignorespaces ##2}}}
+{\ifthenelse{\equal{\subfigcaptionT}{}}{\gdef\subfigcaptionT{;{(t)}{\ignorespaces ##2}}}
+{\gdef\subfigcaptionA{子图不能超过20个!!!}}}}}}}}}}}}}}}}}}}}}}
+% \end{macrocode}
+% \begin{macro}{\allsubpiccaptions}
+% 该命令只是连续打印所有的子图名。
+% \begin{macrocode}
+\newcommand{\allsubpiccaptions}{%
+\subfigcaptionA\subfigcaptionB\subfigcaptionC\subfigcaptionD\subfigcaptionE%
+\subfigcaptionF\subfigcaptionG\subfigcaptionH\subfigcaptionI\subfigcaptionJ%
+\subfigcaptionK\subfigcaptionL\subfigcaptionM\subfigcaptionN\subfigcaptionO%
+\subfigcaptionP\subfigcaptionQ\subfigcaptionR\subfigcaptionS\subfigcaptionT}
+% \end{macrocode}
+% \end{macro}
+% 定义6个变量,分别是:多图环境整体的标签变量、多图环境整体的标题变量、
+% 临时存储子图标题的盒子(用于测量子图标题长度)、子图标题缩进量、子图标题序号
+% 缩进量(就是序号的宽度)、子图标题宽度。
+% \begin{macrocode}
+\newcommand{\subpiclabel}{}
+\newcommand{\subpiccaption}{}
+\newsavebox{\tempsubpiccaptionbox}
+\newlength{\tempsubpiccaptionindent}
+\newlength{\tempsubpiccaptionheadindent}
+\newlength{\tempsubpiccaptionwidth}
+% \end{macrocode}
+% \begin{environment}{pics}%
%定义子图环境和插入子图命令
% \begin{macrocode}
-\newcommand{\subpiclabel}{}%定义一个空的多图环境整体的标签变量
-\newcommand{\subpiccaption}{}%定义一个空的多图环境整体的标题变量
\newenvironment{pics}[3][htbp]{%定义多图环境
\renewcommand{\subpiclabel}{##3}%设置多图环境整体的标签
\renewcommand{\subpiccaption}{##2}%设置多图环境整体的标题。这里先定义两个空变量,又设置值,是因为在定义一个环境时,环境结尾中不能调用##2,##3等传入的值。所以要在环境结尾中插入标题和标签就只能这么做了。
-\begin{figure}[##1]
-\centering}
-{\caption{\subpiccaption}
-\label{\subpiclabel}
-\end{figure}
+\begin{figure}[##1]%
+\begin{center}%
+}%
+{%
+\end{center}%
+\raggedright%
+\sbox{\tempsubpiccaptionbox}{\parbox{\textwidth}%
+{\zihao{5}图~\thefigure~\subpiccaption}}%
+\settowidth{\tempsubpiccaptionheadindent}{\zihao{5}图~\thefigure~}%
+% \end{macrocode}
+%这里用一个判断语句来根据主图题是否超过一行而分别处理。按照规范,不超过一行才居中,
+%超过一行则左对齐。
+%\changes{v0.5.5}{2013/11/26}{修复BUG:无法引用子图的总标签问题。}
+%\changes{v0.6.5}{2014/03/01}{修复BUG:当子图环境整体标题和子图标题都超过一行时,子图标题没有悬挂缩进的问题。}
+%\changes{v0.6.9}{2014/03/08}{修复BUG:当子图环境整体标题中存在下标时错误判断为标题超出一行。}
+% \begin{macrocode}
+\ifthenelse{\lengthtest{\ht\tempsubpiccaptionbox > 16pt}}{%THEN
+\noindent\caption{\subpiccaption}\label{\subpiclabel}\par%
+\noindent\hspace*{\tempsubpiccaptionheadindent}%
+\parbox{\textwidth-\tempsubpiccaptionheadindent}{\zihao{5}\allsubpiccaptions}%
+}{%ELSE
+{\centering\caption{\subpiccaption}\label{\subpiclabel}}\par
+\sbox{\tempsubpiccaptionbox}{\zihao{5}图~\thefigure~\subpiccaption}%
+\setlength{\tempsubpiccaptionindent}{\textwidth}%
+\addtolength{\tempsubpiccaptionindent}{-\wd\tempsubpiccaptionbox}%
+\setlength{\tempsubpiccaptionindent}{.5\tempsubpiccaptionindent}%
+\setlength{\tempsubpiccaptionwidth}{\textwidth}%
+\addtolength{\tempsubpiccaptionwidth}{-\tempsubpiccaptionindent}%
+\addtolength{\tempsubpiccaptionwidth}{-\tempsubpiccaptionheadindent}%
+\hspace*{\tempsubpiccaptionindent}\hspace*{\tempsubpiccaptionheadindent}%
+\parbox{\tempsubpiccaptionwidth}{\zihao{5}\allsubpiccaptions}%
+}%
+\vspace{6bp}%
+\end{figure}%
+\clearallsubfigcaptions%
}
% \end{macrocode}
% \end{environment}
@@ -464,6 +725,7 @@
% \end{macro}
% \subsection{页眉页脚设置}
% \changes{v0.4.6}{2013/06/02}{修正bug:页脚字号改为小五}
+% \changes{v0.6.7}{2014/03/04}{修正bug:缩略词表和主要符号表各自的第二页页眉不正确的问题。}
% \begin{macro}{\mainmatterfancy}
%定义正文版式设置
% \begin{macrocode}
@@ -513,19 +775,19 @@
%定义主要符号表版式设置
% \begin{macrocode}
\newcommand{\glossarymatterfancy}{%定义主要符号表版式设置
-\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[C]{\zihao{5}\glossaryname@uestcthesis}%
\fancyfoot[C]{\zihao{-5}\thepage}%
}
% \end{macrocode}
-%由于主要符号表在目录后面,而且是自动生成的。导致主要符号表的第一页页面还显示目录。
-%所以这里有一个BUG需要修正。glossary宏包提供的|\glossarypreamble|原本是空的宏,
-%会自动插入在主要符号表的前面。
+% \end{macro}
+% \begin{macro}{\acronymnamematterfancy}
+%定义缩略词表版式设置
% \begin{macrocode}
-\renewcommand{\glossarypreamble}{%
-\fancyhead[C]{\zihao{5}\glossaryname@uestcthesis}%页眉居中打印“主要符号表”
-}
+\newcommand{\acronymnamematterfancy}{%定义缩略词表版式设置
+\fancyhf{}
+\fancyhead[C]{\zihao{5}\acronymname@uestcthesis}%
+\fancyfoot[C]{\zihao{-5}\thepage}%
}
% \end{macrocode}
% \end{macro}
@@ -578,6 +840,39 @@
%使章标题页使用plain版式,需要单独定义它。使它的页眉页脚与其他页一致。
}
% \end{macrocode}
+%定义图目录表目录版式
+% \begin{macrocode}
+\newcommand{\figureslistmatterfancy}{
+\fancyhf{}
+\fancyhead[C]{图目录}%
+\fancyfoot[C]{\zihao{-5}\thepage}%页码位于页面底端,居中打印。
+}
+\newcommand{\tableslistmatterfancy}{
+\fancyhf{}
+\fancyhead[C]{表目录}
+\fancyfoot[C]{\zihao{-5}\thepage}%页码位于页面底端,居中打印。
+}
+\newcommand{\figureslistmatter}{
+\pagestyle{fancy}
+\figureslistmatterfancy
+\fancypagestyle{plain}{\figureslistmatterfancy}
+}
+\newcommand{\tableslistmatter}{
+\pagestyle{fancy}
+\tableslistmatterfancy
+\fancypagestyle{plain}{\tableslistmatterfancy}
+}
+\newcommand{\glossarymatter}{
+\pagestyle{fancy}
+\glossarymatterfancy
+\fancypagestyle{plain}{\glossarymatterfancy}
+}
+\newcommand{\acronymnamematter}{
+\pagestyle{fancy}
+\acronymnamematterfancy
+\fancypagestyle{plain}{\acronymnamematterfancy}
+}
+% \end{macrocode}
% \end{macro}
% \subsection{封面设置}
%根据不同的学位,定义不同的封面设置。学校规定封面必须用文印中心提供的封面,
@@ -593,7 +888,7 @@
% \end{macrocode}
% \end{macro}
% \begin{macro}{\major}
-%设置专业命令
+%设置学科专业或工程领域命令
% \begin{macrocode}
\newcommand{\major}[1]{
\newcommand{\@major}{#1}
@@ -759,11 +1054,23 @@
\newcommand{\englishshcool}[1]{
\newcommand{\@englishshcool}{#1}
}
+\newcommand{\englishshcoolextraline}[1]{
+\newcommand{\@englishshcoolextraline}{#1}
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\majortype}
+%设置工专业学位类别命令
+% \begin{macrocode}
+\newcommand{\majortype}[1]{
+\newcommand{\@majortype}{#1}
+}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\uestclogo}
%插入学校LOGO的命令
%\changes{v0.4.1}{2013/05/04}{将学校的LOGO集成在cls文件里。}
+%\changes{v0.5.6}{2013/12/25}{按照学校识别视觉系统修正了LOGO的颜色。}
% \begin{macrocode}
\begin{filecontents*}{logo.tex}
% \end{macrocode}
@@ -1203,7 +1510,7 @@
}
}
{
-\newrgbcolor{curcolor}{0 0.33725491 0.62352943}
+\newrgbcolor{curcolor}{0 0.36078431 0.63529412}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -1646,7 +1953,7 @@
}
}
{
-\newrgbcolor{curcolor}{0 0.33725491 0.62352943}
+\newrgbcolor{curcolor}{0 0.36078431 0.63529412}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -1665,7 +1972,7 @@
}
}
{
-\newrgbcolor{curcolor}{0 0.33725491 0.62352943}
+\newrgbcolor{curcolor}{0 0.36078431 0.63529412}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -1688,7 +1995,7 @@
}
}
{
-\newrgbcolor{curcolor}{0 0.33725491 0.62352943}
+\newrgbcolor{curcolor}{0 0.36078431 0.63529412}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -1705,7 +2012,7 @@
}
}
{
-\newrgbcolor{curcolor}{0 0.33725491 0.62352943}
+\newrgbcolor{curcolor}{0 0.36078431 0.63529412}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -1824,7 +2131,7 @@
}
}
{
-\newrgbcolor{curcolor}{0 0.33725491 0.62352943}
+\newrgbcolor{curcolor}{0 0.36078431 0.63529412}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -1853,7 +2160,7 @@
}
}
{
-\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275}
+\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -1870,7 +2177,7 @@
}
}
{
-\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275}
+\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -1884,7 +2191,7 @@
}
}
{
-\newrgbcolor{curcolor}{0 0.33725491 0.62352943}
+\newrgbcolor{curcolor}{0 0.36078431 0.63529412}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -1895,7 +2202,7 @@
}
}
{
-\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275}
+\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -1935,7 +2242,7 @@
}
}
{
-\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275}
+\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -3122,9 +3429,10 @@
\end{document}
% \fi
%\changes{v0.4.2}{2013/05/14}{针对默认编译器不能使用write18命令的情况,在不能正常显示logo时显示一段说明文字。}
+% \changes{v0.6.4}{2014/02/25}{用withoutforepages选项控制是否编译LOGO}
% \begin{macrocode}
\end{filecontents*}
-
+\ifdef{\withoutforepages@uestcthesis}{}{%withoutforepages选项效果
\immediate\write18{latex logo}%
\immediate\write18{dvips logo}%
\IfFileExists{logo.dvi}{
@@ -3142,15 +3450,18 @@
如果您是从MikTeX或CTAN.org处得到的此模板,请访问\url{https://github.com/shifujun/UESTCthesis}获取最新版本和相应的编译脚本。}
}
}
+}%这个大括号是前面withoutforepages选项判断的ifdef命令的一部分。
% \end{macrocode}
% \end{macro}
% \subsubsection{学士学位封面}
% \begin{macro}{\bachelortitlepage@uestcthesis}
-%定义学士学位封面的格式
+% 定义学士学位封面的格式
% \begin{macrocode}
\ifdefstring{\degree@uestcthesis}{bachelor}{
\renewcommand{\bachelortitlepage@uestcthesis}{
\renewcommand{\maketitle}{
+\setcounter{page}{1}%页码重置为1
+\pagenumbering{Alph}%页码使用大写罗马数字
\begin{titlepage}
\begin{center}
\zihao{3}
@@ -3175,24 +3486,23 @@
{\zihao{3}指导单位~}\makebox[20em][c]{\uline{\hfill\@university\hfill}}\\[5mm]
{\zihao{3}\@date}
\end{center}
+\clearpage{\pagestyle{empty}\cleardoublepage}
\end{titlepage}}}}{}
% \end{macrocode}
% \end{macro}
-% \subsubsection{硕士学位封面}
-% \begin{macro}{\mastertitlepage@uestcthesis}
-%定义硕士学位封面的格式
+% \subsubsection{硕博学位封面定义}
+% \changes{v0.6.4}{2014/02/25}{将封面、中文扉页、英文扉页都独立出来。}
+% \begin{macro}{\firsttitlepage@doctor}
+% 博士学位论文封面。对应研究生院规范中的附1-1。
% \begin{macrocode}
-\ifdefstring{\degree@uestcthesis}{master}{
-\renewcommand{\mastertitlepage@uestcthesis}{
-\renewcommand{\maketitle}{%定义封面的格式
-\begin{titlepage}
+\newcommand{\firsttitlepage@doctor}{%
\begin{center}
{\zihao{2}电\enspace{}子\enspace{}科\enspace{}技\enspace{}大\enspace{}学}\\
{\zihao{-4}UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA}\\
~\\
~\\
-{\zihao{0}硕士学位论文}\\[12bp]
-{\bf\zihao{3}MASTER THESIS}\\[2cm]
+{\zihao{0}博士学位论文}\\[12bp]
+{\bf\zihao{3}DOCTORAL DISSERTATION}\\[2cm]
\uestclogobadge\\[2cm]
\renewcommand{\ULthickness}{0.8pt}
\renewcommand{\CJKunderlinecolor}{\color{black}}
@@ -3209,95 +3519,52 @@
{\zihao{3}作者姓名~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@author\hfill}}\\[5mm]
{\zihao{3}指导教师~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@advisername\hfill}}\\[5mm]
\end{center}
-\newpage
-\thispagestyle{empty}
-\noindent
-{\zihao{-4}分类号}\makebox[15em][l]{\zihao{-4}\uline{~~~\@classnumber\hfill}}
-{\zihao{-4}密级}\makebox[15em][l]{\zihao{-4}\uline{~~~\@securityclassification\hfill}}\\
-{\zihao{-4}UDC\textsuperscript{注1}\!}\makebox[15em][l]{\zihao{-4}\uline{~~~\@UDC\hfill}}\\
+\clearpage{\pagestyle{empty}\cleardoublepage}
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\firsttitlepage@engineeringdoctor}
+% 工程博士学位论文封面。对应研究生院规范中的附1-2。
+% \begin{macrocode}
+\newcommand{\firsttitlepage@engineeringdoctor}{%
\begin{center}
-{\zihao{-0}学\quad{}位\quad{}论\quad{}文}\\
+{\zihao{2}电\enspace{}子\enspace{}科\enspace{}技\enspace{}大\enspace{}学}\\
+{\zihao{-4}UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA}\\
+~\\
+~\\
+{\zihao{0}工程博士学位论文}\\[12bp]
+{\bf\zihao{3}ENGINEERING DOCTORAL DISSERTATION}\\[2cm]
+\uestclogobadge\\[2cm]
+\renewcommand{\ULthickness}{0.8pt}
+\renewcommand{\CJKunderlinecolor}{\color{black}}
+\linespread{1.25}
+\noindent
+\parbox[t][14ex][t]{\linewidth}{\centering
+{\zihao{-2} 论文题目~~}{\zihao{3}\uline{\@title}}
+}\\[3mm]
+\linespread{1.391}
+\renewcommand{\ULthickness}{0.4pt}
{\zihao{3}~}\\
-\makebox[\linewidth][c]{\zihao{3}\uline{\hfill\@title\hfill}}\\
-{\zihao{-4}(题名和副题名)}\\
-{\zihao{5}~}\\
-{\zihao{5}~}\\
-\makebox[10em][c]{\zihao{3}\uline{\hfill\@author\hfill}}\\
-{\zihao{-4}(作者姓名)}\\
-{\zihao{-4}~}\\
-{\zihao{5}~}\\
-{\zihao{-4}指导教师}\makebox[29em][c]{\zihao{-4}\uline{\hfill\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\[5bp]
-{\zihao{-4}\qquad\qquad}\makebox[29em][c]{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\[5bp]
-{\zihao{-4}\qquad\qquad}\makebox[29em][c]{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserCname}}{}{\@adviserBname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\[5bp]
-{\zihao{-4}\qquad\qquad}\makebox[29em][c]{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserDname}}{}{\@adviserBname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\[5bp]
-{\zihao{-4}(姓名、职称、单位名称)}\\[8bp]
-\end{center}
-{\zihao{-4}申请学位级别}\makebox[10em][l]{\zihao{-4}\uline{\hfill\@degree\hfill}}
-{\zihao{-4}学科专业}\makebox[15em][l]{\zihao{-4}\uline{\hfill\@major\hfill}}\\[13bp]
-{\zihao{-4}提交论文日期}\makebox[10em][l]{\zihao{-4}\uline{\hfill\@date\hfill}}
-{\zihao{-4}论文答辩日期}\makebox[13em][l]{\zihao{-4}\uline{\hfill\@oraldefensedate\hfill}}\\[13bp]
-{\zihao{-4}学位授予单位和日期}\makebox[26em][l]{\zihao{3}\uline{\hfill 电子科技大学\hfill\@awarddate}}\\[13bp]
-{\zihao{-4}答辩委员会主席}\makebox[16em][l]{\zihao{-4}\uline{\hfill\@chairman\hfill}}\\[13bp]
-{\zihao{-4}评阅人}\makebox[32em][l]{\zihao{-4}\uline{\hfill\@appraiser\hfill}}\\
-\vfill
-{\zihao{5}注1:注明《国际十进分类法UDC》的类号。}
-\newpage
-\thispagestyle{empty}
-\begin{center}
-{\zihao{-4}~}\\
-{\zihao{-4}~}\\
-{\zihao{-4}~}\\
-{\bf\zihao{-2}\@englishtitle}\\
-\vfill
-{\zihao{-3}A Thesis Submitted to}\\[1ex]
-{\zihao{-3}University of Electronic Science and Technology of China}\\
-\vspace{3cm}
-\makebox[6em][r]{\zihao{4}Major:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishmajor\hfill}}\\[1ex]
-\makebox[6em][r]{\zihao{4}Author:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishauthor\hfill}}\\[1ex]
-\makebox[6em][r]{\zihao{4}Advisor:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishadvisor\hfill}}\\[1ex]
-\makebox[6em][r]{\zihao{4}School:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcool\hfill}}\\[1ex]
-\end{center}
-\newpage
-\thispagestyle{empty}
-\linespread{1.5}
-\begin{center}
-{\bf\zihao{-2}独创性声明}\par
-\end{center}
-{\zihao{4}\qquad 本人声明所呈交的学位论文是本人在导师指导下进行的研究工作及取得的研究成果。据我所知,除了文中特别加以标注和致谢的地方外,论文中不包含其他人已经发表或撰写过的研究成果,也不包含为获得电子科技大学或其它教育机构的学位或证书而使用过的材料。与我一同工作的同志对本研究所做的任何贡献均已在论文中作了明确的说明并表示谢意。\par
-~\par
-作者签名:\makebox[5em][l]{\uline{\hfill}}\hfill
-日期:\qquad{}年\qquad{}月\qquad{}日 \par
-~\par
-\begin{center}
-{\bf\zihao{-2}论文使用授权}\par
+{\zihao{3}工程领域~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@major\hfill}}\\[5mm]
+{\zihao{3}学\qquad 号~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@stuid\hfill}}\\[5mm]
+{\zihao{3}作者姓名~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@author\hfill}}\\[5mm]
+{\zihao{3}指导教师~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@advisername\hfill}}\\[5mm]
\end{center}
-{\zihao{4}\qquad 本学位论文作者完全了解电子科技大学有关保留、使用学位论文的规定,有权保留并向国家有关部门或机构送交论文的复印件和磁盘,允许论文被查阅和借阅。本人授权电子科技大学可以将学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存、汇编学位论文。\par
-(保密的学位论文在解密后应遵守此规定) \par
-~\par
-}
-\qquad 作者签名:\makebox[5em][l]{\uline{\hfill}}\hfill
-导师签名:\makebox[7em][l]{\uline{\hfill}}\par
-\hfill 日期:\qquad{}年\qquad{}月\qquad{}日 \par
+\clearpage{\pagestyle{empty}\cleardoublepage}
}
-\linespread{1.391}
-\end{titlepage}}}}{}
% \end{macrocode}
% \end{macro}
-% \subsubsection{博士学位封面}
-% \begin{macro}{\doctortitlepage@uestcthesis}
-%定义博士学位封面的格式
+% \begin{macro}{\firsttitlepage@master}
+% 硕士学位论文封面。对应研究生院规范中的附1-3。
% \begin{macrocode}
-\ifdefstring{\degree@uestcthesis}{doctor}{
-\renewcommand{\doctortitlepage@uestcthesis}{
-\renewcommand{\maketitle}{%定义封面的格式
-\begin{titlepage}
+\newcommand{\firsttitlepage@master}{%
\begin{center}
{\zihao{2}电\enspace{}子\enspace{}科\enspace{}技\enspace{}大\enspace{}学}\\
{\zihao{-4}UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA}\\
~\\
~\\
-{\zihao{0}博士学位论文}\\[12bp]
-{\bf\zihao{3}DOCTORAL DISSERTATION}\\[2cm]
+{\zihao{0}硕士学位论文}\\[12bp]
+{\bf\zihao{3}MASTER THESIS}\\[2cm]
\uestclogobadge\\[2cm]
\renewcommand{\ULthickness}{0.8pt}
\renewcommand{\CJKunderlinecolor}{\color{black}}
@@ -3314,38 +3581,249 @@
{\zihao{3}作者姓名~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@author\hfill}}\\[5mm]
{\zihao{3}指导教师~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@advisername\hfill}}\\[5mm]
\end{center}
+\clearpage{\pagestyle{empty}\cleardoublepage}
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\firsttitlepage@professionalmaster}
+% 专业学位硕士学位论文封面。对应研究生院规范中的附1-4。
+% \begin{macrocode}
+\newcommand{\firsttitlepage@professionalmaster}{%
+\begin{center}
+{\zihao{2}电\enspace{}子\enspace{}科\enspace{}技\enspace{}大\enspace{}学}\\
+{\zihao{-4}UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA}\\
+~\\
+~\\
+{\zihao{0}专业学位硕士学位论文}\\[12bp]
+{\bf\zihao{3}MASTER THESIS FOR PROFESSIONAL DEGREE}\\[2cm]
+\uestclogobadge\\[2cm]
+\renewcommand{\ULthickness}{0.8pt}
+\renewcommand{\CJKunderlinecolor}{\color{black}}
+\linespread{1.25}
+\noindent
+\parbox[t][14ex][t]{\linewidth}{\centering
+{\zihao{-2} 论文题目~~}{\zihao{3}\uline{\@title}}
+}\\[3mm]
+\linespread{1.391}
+\renewcommand{\ULthickness}{0.4pt}
+{\zihao{3}~}\\
+\makebox[12em][s]{\zihao{3}专业学位类别}~\makebox[9.26cm][c]{\zihao{3}\uline{\hfill\@majortype\hfill}}\\[5mm]
+\makebox[12em][s]{\zihao{3}学号}~\makebox[9.26cm][c]{\zihao{3}\uline{\hfill\@stuid\hfill}}\\[5mm]
+\makebox[12em][s]{\zihao{3}作者姓名}~\makebox[9.26cm][c]{\zihao{3}\uline{\hfill\@author\hfill}}\\[5mm]
+\makebox[12em][s]{\zihao{3}指导教师}~\makebox[9.26cm][c]{\zihao{3}\uline{\hfill\@advisername\hfill}}\\[5mm]
+\end{center}
+\clearpage{\pagestyle{empty}\cleardoublepage}
+}
+% \end{macrocode}
+% \end{macro}
+% \subsubsection{硕博学位中文扉页}
+% \changes{v0.6.3}{2014/02/24}{修订硕博封面第2页,使之和学校范例尽量一样。}
+% \begin{macro}{\secondtitlepage@Academic}
+% 博士和学术型硕士中文扉页。对应研究生院规范中的附2-1。
+% \begin{macrocode}
+\newcommand{\secondtitlepage@Academic}{%
\newpage
\thispagestyle{empty}
+\vspace*{-4.1mm}
\noindent
-{\zihao{-4}分类号}\makebox[15em][l]{\zihao{-4}\uline{~~~\@classnumber\hfill}}
-{\zihao{-4}密级}\makebox[15em][l]{\zihao{-4}\uline{~~~\@securityclassification\hfill}}\\
-{\zihao{-4}UDC\textsuperscript{注1}\!}\makebox[15em][l]{\zihao{-4}\uline{~~~\@UDC\hfill}}\\
+{\zihao{-4}分类号}\makebox[6.35cm][l]{\zihao{5}\uline{~~~\@classnumber\hfill}}
+{\zihao{-4}密级}\makebox[5.24cm][l]{\zihao{4}\uline{~~~\@securityclassification\hfill}}\\[2.3mm]
+{\zihao{-4}UDC\zihao{-5}\textsuperscript{~注1}\!}\makebox[6.48cm][l]{\zihao{5}\uline{~~~\@UDC\hfill}}\\[1.1mm]
\begin{center}
{\zihao{-0}学\quad{}位\quad{}论\quad{}文}\\
-{\zihao{3}~}\\
-\makebox[\linewidth][c]{\zihao{3}\uline{\hfill\@title\hfill}}\\
+{\zihao{3}~}\\[3.3mm]
+\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\[0.82cm]
+\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\
+\vspace{-2.47cm}
+\noindent\parbox[t][2cm][t]{34em}{\centering\zihao{2}\baselineskip=39.13766pt\@title}\\[6.8mm]
{\zihao{-4}(题名和副题名)}\\
{\zihao{5}~}\\
+\vspace{-3mm}
+\makebox[4.13cm][c]{\zihao{3}\@author}\\\vspace{-0.58cm}
+\makebox[4.13cm][c]{\zihao{3}\uline{\hfill}}\\[3mm]
+{\zihao{-4}(作者姓名)}\\
+{\zihao{-4}~}\\
{\zihao{5}~}\\
-\makebox[10em][c]{\zihao{3}\uline{\hfill\@author\hfill}}\\
+\vspace{-5mm}
+{\zihao{-4}指导教师}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill%
+\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\[5bp]
+{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{%
+\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\[5bp]
+{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{%
+\isundefined{\@adviserCname}}{}{\@adviserCname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\[5bp]
+{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{%
+\isundefined{\@adviserDname}}{}{\@adviserDname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\[6.5mm]
+{\zihao{-4}(姓名、职称、单位名称)}\\
+\vspace{-3mm}
+\end{center}
+{\zihao{-4}申请学位级别}\makebox[10em][l]{\zihao{3}\uline{\hfill\@degree\hfill}}
+{\zihao{-4}学科专业}\makebox[15em][l]{\zihao{3}\uline{\hfill\@major\hfill}}\\[13bp]
+{\zihao{-4}提交论文日期}\makebox[10em][l]{\zihao{3}\uline{\hfill\@date\hfill}}
+{\zihao{-4}论文答辩日期}\makebox[13em][l]{\zihao{3}\uline{\hfill\@oraldefensedate\hfill}}\\[13bp]
+{\zihao{-4}学位授予单位和日期}\makebox[26em][l]{\zihao{3}\uline{\hfill 电子科技大学\hfill\@awarddate}}\\[13bp]
+{\zihao{-4}答辩委员会主席}\makebox[16em][l]{\zihao{3}\uline{\hfill\@chairman\hfill}}\\[13bp]
+{\zihao{-4}评阅人}\makebox[32em][l]{\zihao{3}\uline{\hfill\@appraiser\hfill}}\\[3mm]
+{\zihao{5}注1:注明《国际十进分类法UDC》的类号。}%
+\clearpage{\pagestyle{empty}\cleardoublepage}
+}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\secondtitlepage@Engineering}
+% 工程博士/工程硕士中文扉页。对应研究生院规范中的附2-2。
+% \begin{macrocode}
+\newcommand{\secondtitlepage@Engineering}{%
+\newpage
+\thispagestyle{empty}
+\vspace*{-4.1mm}
+\noindent
+{\zihao{-4}分类号}\makebox[6.35cm][l]{\zihao{5}\uline{~~~\@classnumber\hfill}}
+{\zihao{-4}密级}\makebox[5.24cm][l]{\zihao{4}\uline{~~~\@securityclassification\hfill}}\\[2.3mm]
+{\zihao{-4}UDC\zihao{-5}\textsuperscript{~注1}\!}\makebox[6.48cm][l]{\zihao{5}\uline{~~~\@UDC\hfill}}\\[1.1mm]
+\begin{center}
+{\zihao{-0}学\quad{}位\quad{}论\quad{}文}\\
+{\zihao{3}~}\\[3.3mm]
+\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\[0.82cm]
+\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\
+\vspace{-2.47cm}
+\noindent\parbox[t][2cm][t]{34em}{\centering\zihao{2}\baselineskip=39.13766pt\@title}\\[6.8mm]
+{\zihao{-4}(题名和副题名)}\\
+{\zihao{5}~}\\
+\vspace{-3mm}
+\makebox[4.13cm][c]{\zihao{3}\@author}\\\vspace{-0.58cm}
+\makebox[4.13cm][c]{\zihao{3}\uline{\hfill}}\\[3mm]
{\zihao{-4}(作者姓名)}\\
{\zihao{-4}~}\\
{\zihao{5}~}\\
-{\zihao{-4}指导教师}\makebox[29em][c]{\zihao{-4}\uline{\hfill\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\[5bp]
-{\zihao{-4}\qquad\qquad}\makebox[29em][c]{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\[5bp]
-{\zihao{-4}\qquad\qquad}\makebox[29em][c]{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserCname}}{}{\@adviserBname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\[5bp]
-{\zihao{-4}\qquad\qquad}\makebox[29em][c]{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserDname}}{}{\@adviserBname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\[5bp]
-{\zihao{-4}(姓名、职称、单位名称)}\\[8bp]
+\vspace{-5mm}
+{\zihao{-4}指导教师}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill%
+\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\[5bp]
+{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{%
+\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\[5bp]
+{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{%
+\isundefined{\@adviserCname}}{}{\@adviserCname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\[5bp]
+{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{%
+\isundefined{\@adviserDname}}{}{\@adviserDname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\[6.5mm]
+{\zihao{-4}(姓名、职称、单位名称)}\\
+\vspace{-3mm}
\end{center}
-{\zihao{-4}申请学位级别}\makebox[10em][l]{\zihao{-4}\uline{\hfill\@degree\hfill}}
-{\zihao{-4}学科专业}\makebox[15em][l]{\zihao{-4}\uline{\hfill\@major\hfill}}\\[13bp]
-{\zihao{-4}提交论文日期}\makebox[10em][l]{\zihao{-4}\uline{\hfill\@date\hfill}}
-{\zihao{-4}论文答辩日期}\makebox[13em][l]{\zihao{-4}\uline{\hfill\@oraldefensedate\hfill}}\\[13bp]
+{\zihao{-4}申请学位级别}\makebox[10em][l]{\zihao{3}\uline{\hfill\@degree\hfill}}
+{\zihao{-4}专业学位类别}\makebox[13em][l]{\zihao{3}\uline{\hfill\@majortype\hfill}}\\[13bp]
+{\zihao{-4}工程领域名称}\makebox[29em][l]{\zihao{3}\uline{\hfill\@major\hfill}}\\[13bp]
+{\zihao{-4}提交论文日期}\makebox[10em][l]{\zihao{3}\uline{\hfill\@date\hfill}}
+{\zihao{-4}论文答辩日期}\makebox[13em][l]{\zihao{3}\uline{\hfill\@oraldefensedate\hfill}}\\[13bp]
{\zihao{-4}学位授予单位和日期}\makebox[26em][l]{\zihao{3}\uline{\hfill 电子科技大学\hfill\@awarddate}}\\[13bp]
-{\zihao{-4}答辩委员会主席}\makebox[16em][l]{\zihao{-4}\uline{\hfill\@chairman\hfill}}\\[13bp]
-{\zihao{-4}评阅人}\makebox[32em][l]{\zihao{-4}\uline{\hfill\@appraiser\hfill}}\\
-\vfill
-{\zihao{5}注1:注明《国际十进分类法UDC》的类号。}
+{\zihao{-4}答辩委员会主席}\makebox[16em][l]{\zihao{3}\uline{\hfill\@chairman\hfill}}\\[13bp]
+{\zihao{-4}评阅人}\makebox[32em][l]{\zihao{3}\uline{\hfill\@appraiser\hfill}}\\[3mm]
+{\zihao{5}注1:注明《国际十进分类法UDC》的类号。}%
+\clearpage{\pagestyle{empty}\cleardoublepage}
+}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\secondtitlepage@Professional}
+% 其他专业学位硕士中文扉页。对应研究生院规范中的附2-3。
+% \begin{macrocode}
+\newcommand{\secondtitlepage@Professional}{%
+\newpage
+\thispagestyle{empty}
+\vspace*{-4.1mm}
+\noindent
+{\zihao{-4}分类号}\makebox[6.35cm][l]{\zihao{5}\uline{~~~\@classnumber\hfill}}
+{\zihao{-4}密级}\makebox[5.24cm][l]{\zihao{4}\uline{~~~\@securityclassification\hfill}}\\[2.3mm]
+{\zihao{-4}UDC\zihao{-5}\textsuperscript{~注1}\!}\makebox[6.48cm][l]{\zihao{5}\uline{~~~\@UDC\hfill}}\\[1.1mm]
+\begin{center}
+{\zihao{-0}学\quad{}位\quad{}论\quad{}文}\\
+{\zihao{3}~}\\[3.3mm]
+\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\[0.82cm]
+\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\
+\vspace{-2.47cm}
+\noindent\parbox[t][2cm][t]{34em}{\centering\zihao{2}\baselineskip=39.13766pt\@title}\\[6.8mm]
+{\zihao{-4}(题名和副题名)}\\
+{\zihao{5}~}\\
+\vspace{-3mm}
+\makebox[4.13cm][c]{\zihao{3}\@author}\\\vspace{-0.58cm}
+\makebox[4.13cm][c]{\zihao{3}\uline{\hfill}}\\[3mm]
+{\zihao{-4}(作者姓名)}\\
+{\zihao{-4}~}\\
+{\zihao{5}~}\\
+\vspace{-5mm}
+{\zihao{-4}指导教师}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill%
+\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\[5bp]
+{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{%
+\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\[5bp]
+{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{%
+\isundefined{\@adviserCname}}{}{\@adviserCname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\[5bp]
+{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{%
+\isundefined{\@adviserDname}}{}{\@adviserDname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\[6.5mm]
+{\zihao{-4}(姓名、职称、单位名称)}\\
+\vspace{-3mm}
+\end{center}
+{\zihao{-4}申请学位级别}\makebox[10em][l]{\zihao{3}\uline{\hfill\@degree\hfill}}
+{\zihao{-4}专业学位类别}\makebox[13em][l]{\zihao{3}\uline{\hfill\@majortype\hfill}}\\[13bp]
+{\zihao{-4}提交论文日期}\makebox[10em][l]{\zihao{3}\uline{\hfill\@date\hfill}}
+{\zihao{-4}论文答辩日期}\makebox[13em][l]{\zihao{3}\uline{\hfill\@oraldefensedate\hfill}}\\[13bp]
+{\zihao{-4}学位授予单位和日期}\makebox[26em][l]{\zihao{3}\uline{\hfill 电子科技大学\hfill\@awarddate}}\\[13bp]
+{\zihao{-4}答辩委员会主席}\makebox[16em][l]{\zihao{3}\uline{\hfill\@chairman\hfill}}\\[13bp]
+{\zihao{-4}评阅人}\makebox[32em][l]{\zihao{3}\uline{\hfill\@appraiser\hfill}}\\[3mm]
+{\zihao{5}注1:注明《国际十进分类法UDC》的类号。}%
+\clearpage{\pagestyle{empty}\cleardoublepage}
+}%
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\secondtitlepage@ResearchReport}
+% 硕士留学生研究报告类中文扉页。对应研究生院规范中的附2-4。
+% \begin{macrocode}
+\newcommand{\secondtitlepage@ResearchReport}{%
+\newpage
+\thispagestyle{empty}
+\vspace*{-4.1mm}
+\noindent
+{\zihao{-4}分类号}\makebox[6.35cm][l]{\zihao{5}\uline{~~~\@classnumber\hfill}}
+{\zihao{-4}密级}\makebox[5.24cm][l]{\zihao{4}\uline{~~~\@securityclassification\hfill}}\\[2.3mm]
+{\zihao{-4}UDC\zihao{-5}\textsuperscript{~注1}\!}\makebox[6.48cm][l]{\zihao{5}\uline{~~~\@UDC\hfill}}\\[1.1mm]
+\begin{center}
+{\zihao{-0}研\quad{}究\quad{}报\quad{}告}\\
+{\zihao{3}~}\\[3.3mm]
+\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\[0.82cm]
+\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\
+\vspace{-2.47cm}
+\noindent\parbox[t][2cm][t]{34em}{\centering\zihao{2}\baselineskip=39.13766pt\@title}\\[6.8mm]
+{\zihao{-4}(题名和副题名)}\\
+{\zihao{5}~}\\
+\vspace{-3mm}
+\makebox[4.13cm][c]{\zihao{3}\@author}\\\vspace{-0.58cm}
+\makebox[4.13cm][c]{\zihao{3}\uline{\hfill}}\\[3mm]
+{\zihao{-4}(作者姓名)}\\
+{\zihao{-4}~}\\
+{\zihao{5}~}\\
+\vspace{-5mm}
+{\zihao{-4}指导教师}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill%
+\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\[5bp]
+{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{%
+\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\[5bp]
+{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{%
+\isundefined{\@adviserCname}}{}{\@adviserCname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\[5bp]
+{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{%
+\isundefined{\@adviserDname}}{}{\@adviserDname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\[6.5mm]
+{\zihao{-4}(姓名、职称、单位名称)}\\
+\vspace{-3mm}
+\end{center}
+{\zihao{-4}申请学位级别}\makebox[10em][l]{\zihao{3}\uline{\hfill\@degree\hfill}}
+{\zihao{-4}学科专业}\makebox[15em][l]{\zihao{3}\uline{\hfill\@major\hfill}}\\[13bp]
+{\zihao{-4}提交论文日期}\makebox[10em][l]{\zihao{3}\uline{\hfill\@date\hfill}}
+{\zihao{-4}论文答辩日期}\makebox[13em][l]{\zihao{3}\uline{\hfill\@oraldefensedate\hfill}}\\[13bp]
+{\zihao{-4}学位授予单位和日期}\makebox[26em][l]{\zihao{3}\uline{\hfill 电子科技大学\hfill\@awarddate}}\\[13bp]
+{\zihao{-4}答辩委员会主席}\makebox[16em][l]{\zihao{3}\uline{\hfill\@chairman\hfill}}\\[13bp]
+{\zihao{-4}评阅人}\makebox[32em][l]{\zihao{3}\uline{\hfill\@appraiser\hfill}}\\[3mm]
+{\zihao{5}注1:注明《国际十进分类法UDC》的类号。}%
+\clearpage{\pagestyle{empty}\cleardoublepage}
+}%
+% \end{macrocode}
+% \end{macro}
+% \subsubsection{硕博学位英文扉页}
+% \begin{macro}{\thirdtitlepage@Doctor}
+% 博士英文扉页。对应研究生院规范中的附3。
+% \begin{macrocode}
+\newcommand{\thirdtitlepage@Doctor}{%
\newpage
\thispagestyle{empty}
\begin{center}
@@ -3361,7 +3839,73 @@
\makebox[6em][r]{\zihao{4}Author:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishauthor\hfill}}\\[1ex]
\makebox[6em][r]{\zihao{4}Advisor:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishadvisor\hfill}}\\[1ex]
\makebox[6em][r]{\zihao{4}School:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcool\hfill}}\\[1ex]
+\ifdef{\@englishshcoolextraline}{%可能有的额外一行学院英文名称。为一行显示不下的学院英文名称准备。
+\makebox[6em][r]{}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcoolextraline\hfill}}\\[1ex]%
+}{}
\end{center}
+\clearpage{\pagestyle{empty}\cleardoublepage}
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\thirdtitlepage@Master}
+% 硕士英文扉页。对应研究生院规范中的附3。
+% \begin{macrocode}
+\newcommand{\thirdtitlepage@Master}{%
+\newpage
+\thispagestyle{empty}
+\begin{center}
+{\zihao{-4}~}\\
+{\zihao{-4}~}\\
+{\zihao{-4}~}\\
+{\bf\zihao{-2}\@englishtitle}\\
+\vfill
+{\zihao{-3}A Master Thesis Submitted to}\\[1ex]
+{\zihao{-3}University of Electronic Science and Technology of China}\\
+\vspace{3cm}
+\makebox[6em][r]{\zihao{4}Major:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishmajor\hfill}}\\[1ex]
+\makebox[6em][r]{\zihao{4}Author:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishauthor\hfill}}\\[1ex]
+\makebox[6em][r]{\zihao{4}Advisor:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishadvisor\hfill}}\\[1ex]
+\makebox[6em][r]{\zihao{4}School:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcool\hfill}}\\[1ex]
+\ifdef{\@englishshcoolextraline}{%可能有的额外一行学院英文名称。为一行显示不下的学院英文名称准备。
+\makebox[6em][r]{}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcoolextraline\hfill}}\\[1ex]%
+}{}
+\end{center}
+\clearpage{\pagestyle{empty}\cleardoublepage}
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\thirdtitlepage@MasterResearchReport}
+% 硕士研究报告英文扉页。对应研究生院规范中的附3。
+% \begin{macrocode}
+\newcommand{\thirdtitlepage@MasterResearchReport}{%
+\newpage
+\thispagestyle{empty}
+\begin{center}
+{\zihao{-4}~}\\
+{\zihao{-4}~}\\
+{\zihao{-4}~}\\
+{\bf\zihao{-2}\@englishtitle}\\
+\vfill
+{\zihao{-3}A Master Research Report Submitted to}\\[1ex]
+{\zihao{-3}University of Electronic Science and Technology of China}\\
+\vspace{3cm}
+\makebox[6em][r]{\zihao{4}Major:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishmajor\hfill}}\\[1ex]
+\makebox[6em][r]{\zihao{4}Author:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishauthor\hfill}}\\[1ex]
+\makebox[6em][r]{\zihao{4}Advisor:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishadvisor\hfill}}\\[1ex]
+\makebox[6em][r]{\zihao{4}School:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcool\hfill}}\\[1ex]
+\ifdef{\@englishshcoolextraline}{%可能有的额外一行学院英文名称。为一行显示不下的学院英文名称准备。
+\makebox[6em][r]{}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcoolextraline\hfill}}\\[1ex]%
+}{}
+\end{center}
+\clearpage{\pagestyle{empty}\cleardoublepage}
+}
+% \end{macrocode}
+% \end{macro}
+% \subsubsection{独创性声明和论文使用授权}
+% \begin{macro}{\fourthtitlepage}
+% 独创性声明和论文使用授权。对应研究生院规范中的附4。
+% \begin{macrocode}
+\newcommand{\fourthtitlepage}{%
\newpage
\thispagestyle{empty}
\linespread{1.5}
@@ -3384,6 +3928,42 @@
导师签名:\makebox[7em][l]{\uline{\hfill}}\par
\hfill 日期:\qquad{}年\qquad{}月\qquad{}日 \par
}
+\clearpage{\pagestyle{empty}\cleardoublepage}
+}
+% \end{macrocode}
+% \end{macro}
+% \subsubsection{硕士学位封面}
+% \begin{macro}{\mastertitlepage@uestcthesis}
+%定义硕士学位封面的格式
+% \begin{macrocode}
+\ifdefstring{\degree@uestcthesis}{master}{
+\renewcommand{\mastertitlepage@uestcthesis}{
+\renewcommand{\maketitle}{%定义封面的格式
+\setcounter{page}{1}%页码重置为1
+\pagenumbering{Alph}%页码使用大写罗马数字
+\begin{titlepage}
+\firsttitlepage%插入封面
+\secondtitlepage%插入中文扉页
+\thirdtitlepage%插入英文扉页
+\fourthtitlepage%插入独创性声明和论文使用授权
+\linespread{1.391}
+\end{titlepage}}}}{}
+% \end{macrocode}
+% \end{macro}
+% \subsubsection{博士学位封面}
+% \begin{macro}{\doctortitlepage@uestcthesis}
+%定义博士学位封面的格式
+% \begin{macrocode}
+\ifdefstring{\degree@uestcthesis}{doctor}{
+\renewcommand{\doctortitlepage@uestcthesis}{
+\renewcommand{\maketitle}{%定义封面的格式
+\setcounter{page}{1}%页码重置为1
+\pagenumbering{Alph}%页码使用大写罗马数字
+\begin{titlepage}
+\firsttitlepage%插入封面
+\secondtitlepage%插入中文扉页
+\thirdtitlepage%插入英文扉页
+\fourthtitlepage%插入独创性声明和论文使用授权
\linespread{1.391}
\end{titlepage}}}}{}
% \end{macrocode}
@@ -3398,10 +3978,11 @@
% \begin{macrocode}
\setcounter{secnumdepth}{3}
% \end{macrocode}
-%
+% \changes{v0.5.2}{2013/08/07}{由于本科论文规范还未修改,单独设置硕博标题前后段距。}
%设置章标题格式。弹性长度的距离为行距的20\%。排版规则中说明可以适当调整各级标题段后间距。
% \begin{macrocode}
\chaptername@uestcthesis
+\ifdefstring{\degree@uestcthesis}{bachelor}{
\CTEXsetup[ nameformat={},
numberformat={},
titleformat={},
@@ -3410,30 +3991,61 @@
afterskip={30bp plus 6bp minus 6bp},%章标题段后30磅。
format={\heiti\zihao{-3}\centering},
]{chapter}
+}{
+\CTEXsetup[ nameformat={},
+ numberformat={},
+ titleformat={},
+ aftername={~},
+ beforeskip={1.8mm},%章标题段前30磅,这里2mm是由于实际效果与MS WORD有差异而微调出的。具体测量的是页眉线到章标题文字上边的距离。
+ afterskip={18bp plus 3.6bp minus 3.6bp},%章标题段后30磅。
+ format={\heiti\zihao{-3}\centering},
+ ]{chapter}
+}
% \end{macrocode}
%
%设置1级节标题格式
% \begin{macrocode}
+\ifdefstring{\degree@uestcthesis}{bachelor}{
\CTEXsetup[ aftername={~},
beforeskip={18bp},
afterskip={18bp plus 3.6bp minus 3.6bp},
format={\heiti\zihao{4}\flushleft}]{section}
+}{
+\CTEXsetup[ aftername={~},
+ beforeskip={18bp},
+ afterskip={6bp plus 1.2bp minus 1.2bp},
+ format={\heiti\zihao{4}\flushleft}]{section}
+}
% \end{macrocode}
%
%设置2级节标题格式
% \begin{macrocode}
+\ifdefstring{\degree@uestcthesis}{bachelor}{
\CTEXsetup[ aftername={~},
beforeskip={12bp},
afterskip={12bp plus 2.4bp minus 2.4bp},
format={\heiti\zihao{4}\flushleft}]{subsection}
+}{
+\CTEXsetup[ aftername={~},
+ beforeskip={12bp},
+ afterskip={6bp plus 1.2bp minus 1.2bp},
+ format={\heiti\zihao{4}\flushleft}]{subsection}
+}
% \end{macrocode}
%
%设置3级节标题格式
% \begin{macrocode}
+\ifdefstring{\degree@uestcthesis}{bachelor}{
\CTEXsetup[ aftername={~},
beforeskip={6bp},
afterskip={6bp plus 1.2bp minus 1.2bp},
format={\heiti\zihao{-4}\flushleft}]{subsubsection}
+}{
+\CTEXsetup[ aftername={~},
+ beforeskip={12bp},
+ afterskip={6bp plus 1.2bp minus 1.2bp},
+ format={\heiti\zihao{-4}\flushleft}]{subsubsection}
+}
% \end{macrocode}
% \subsection{摘要设置}
%调用ifthen宏包,可提供|\ifthenelse|判断命令。
@@ -3465,11 +4077,13 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字
}
% \end{macrocode}
% \end{macro}
+%\changes{v0.5.4}{2013/10/29}{修改中英文摘要标题和关键词的字体,改为加粗形式。并按照范例,在“摘要”二字中间加空格。}
+%\changes{v0.6.1}{2014/01/20}{修改中英文关键词换行缩进。}
% \begin{macrocode}
-\chapter*{摘要}%插入不带章号的摘要
+\chapter*{摘\enspace 要}%插入不带章号的摘要
}
{\\[3mm]%摘要后换行空出3mm
-{\heiti 关键词:}\@ckeywords%插入关键词
+{\textbf{关键词:}}\parbox[t]{378.59134pt}{\@ckeywords}%插入关键词
}
% \end{macrocode}
% \end{environment}
@@ -3492,10 +4106,10 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字
% \end{macro}
% \begin{macrocode}
\Eabstractmatter%设置英文摘要版式
-\chapter*{ABSTRACT}%插入不带章号的ABSTRACT
+\chapter*{\bf ABSTRACT}%插入不带章号的ABSTRACT
}
{\\[3mm]%摘要后换行空出3mm
-{\heiti Keywords:}\@ekeywords%插入关键词
+{\bf Keywords:\nbs}\parbox[t]{367.97586pt}{\@ekeywords}%插入关键词
}
% \end{macrocode}
% \end{environment}
@@ -3540,9 +4154,11 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字
}
% \end{macrocode}
% \subsection{数学式设置}
-%amsmath和kmath宏包提供更美观的数学字体。
+%amsmath数学宏包。
+% \changes{v0.5.2}{2013/08/07}{去除kmath宏包。}
+% \changes{v0.6.7}{2014/03/04}{添加希腊字母等粗体的bm宏包}
% \begin{macrocode}
-\RequirePackage{amsmath,kmath}
+\RequirePackage{amsmath,amsfonts,amssymb,bm}
% \end{macrocode}
%
%使公式编号数字间加一个短横线。例如(1-1)。
@@ -3579,7 +4195,7 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字
%定义一种不带标号的证明环境。
% \begin{macrocode}
\theoremstyle{nonumberplain}
-\theoremsymbol{}
+\theoremsymbol{■}
\newtheorem{zhengming}{证明}
\def\endzhengming{\quad\@endtheorem}
% \end{macrocode}
@@ -3610,20 +4226,69 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字
\@auxoutpublicationsname \bibliography {#1}}
}
% \end{macrocode}
+%\subsection{注脚格式排版设置}
+% \changes{v0.5.0}{2013/08/01}{添加注脚格式的排版设置}
+% \changes{v0.6.5}{2014/03/01}{修复BUG:注脚在pdf中超级链接跳转失效的问题。}
+% \changes{v0.6.6}{2014/03/03}{修复BUG:按照学校规范,注脚应该每页重新编号。}
+%修正footmisc宏包的hang选项与CTeX宏包的冲突。修正来源:\\
+%\url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=76571}
+% \begin{macrocode}
+\renewcommand*\CTEXsetfont{%
+ \begingroup
+ \settowidth\ccwd{\CTEX@spaceChar\CJKglue}%
+ \edef\x{\noexpand\ccwd\the\ccwd}%
+ \expandafter\endgroup\x
+ \ifdim\parindent=0pt\else\parindent2\ccwd\fi}
+% \end{macrocode}
+%加载注脚宏包footmisc,使用悬挂选项hang
+%
+% \begin{macrocode}
+\RequirePackage[hang,perpage]{footmisc}
+% \end{macrocode}
+%设置注脚内容缩进,5.2mm是对比word中悬挂缩进1.5字符的结果测量得出的。
+% \begin{macrocode}
+\setlength{\footnotemargin}{5.2mm}
+% \end{macrocode}
+%重绘注脚线,其中7.4mm、5.05cm和0.02cm都是对比范文在word中的效果测量出的。
+%其中|\vfill|用于将注脚置于页面底部。因为模板禁止了底部对齐,以保证不会出现过大的段距。
+% \changes{v0.6.6}{2014/03/03}{修正注脚线和内容的距离。}
+% \begin{macrocode}
+\renewcommand{\footnoterule}{\vfill\noindent
+\vspace*{0.9mm}\hspace{7.4mm}\rule{5.05cm}{0.02cm}\vspace*{2.6pt}}
+% \end{macrocode}
+%定义注脚所用的带圆圈的序号样式
+% \begin{macrocode}
+\RequirePackage{pifont}
+\def\@circlednumber#1{\ifcase#1\or \ding{192}\or \ding{193}\or \ding{194}\or
+ \ding{195}\or \ding{196}\or \ding{197}\or \ding{198}\or \ding{199}
+ \or \ding{200} \or \ding{201} \else\@ctrerr\fi}
+\def\circlednumber#1{\expandafter\@circlednumber\csname c@#1\endcsname}
+\renewcommand{\thefootnote}{\circlednumber{footnote}}
+% \end{macrocode}
+%重定义注脚的格式,将序号的字体取消默认的上标样式。
+% \begin{macrocode}
+\def\@makefntext #1{\ifFN@hangfoot \bgroup \setbox \@tempboxa \hbox {\ifdim
+\footnotemargin >0pt \hb@xt@ \footnotemargin {\hbox { \normalfont \@thefnmark}
+\hss }\else \hbox { \normalfont \@thefnmark} \fi }\leftmargin \wd \@tempboxa
+\rightmargin \z@ \linewidth \columnwidth \advance \linewidth -\leftmargin
+\parshape \@ne \leftmargin \linewidth \footnotesize \@setpar {{\@@par }}
+\leavevmode \llap {\box \@tempboxa }\parskip \hangfootparskip \relax \parindent
+\hangfootparindent \relax \else \parindent 1em \noindent \ifdim \footnotemargin
+ >\z@ \hb@xt@ \footnotemargin {\hss \hbox { \normalfont \@thefnmark} }\else
+ \ifdim \footnotemargin =\z@ \llap {\hbox { \normalfont \@thefnmark} }\else
+ \llap {\hb@xt@ -\footnotemargin {\hbox { \normalfont \@thefnmark} \hss }}
+ \fi \fi \fi \footnotelayout #1\ifFN@hangfoot \par \egroup \fi}
+% \end{macrocode}
% \subsection{PDF文件相关设置}
% 设置pdf文件中的超链接和书签
+% \changes{v0.6}{2014/01/11}{去除pdf文件中显示的超级链接有色外框}
% \begin{macrocode}
\RequirePackage{cmap}%pdflatex编译时,可以生成可复制、粘贴的中文PDF文档
\RequirePackage{hyperxmp}%在pdf中加入XMP高级元信息
\RequirePackage[pdftex,unicode,
bookmarksnumbered=true,
bookmarksopen=true,
- colorlinks=false,
- pdfborder={0 0 1},
- citecolor=blue,
- linkcolor=red,
- anchorcolor=green,
- urlcolor=blue,
+ hidelinks=true,
breaklinks=true,
pdfdisplaydoctitle=true
]{hyperref}
@@ -3648,27 +4313,10 @@ pdfpagelayout={TwoPageRight}
%枚举环境宏包,去除所有垂直附加距离。
% \changes{v0.31}{2013/02/21}{去除枚举环境的所有垂直附加距离。}
% \changes{v0.4.3}{2013/05/20}{修复bug:枚举环境与前后文存在额外间距}
+% \changes{v0.6}{2014/01/12}{用enumitem宏包代替enumerate宏包。使枚举环境的序号缩进和正文一致。}
% \begin{macrocode}
-\RequirePackage{enumerate}
-%为了修正枚举环境与前后文存在额外间距的问题:重构枚举环境中的\@enum@命令,将其中的\list命令重构,再将\list命令中的\@trivlist命令重构。一切重构都是为了将\@trivlist命令中的第一个\@topsepadd重置为0。
-\newskip\@topsepadd@uestcthesis
-\def\@trivlist@uestcthesis{\if@noskipsec \leavevmode \fi \@topsepadd@uestcthesis \topsep \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 \rightskip \@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 }
-
-\def\list@uestcthesis#1#2{\ifnum \@listdepth >5\relax \@toodeep \else \global \advance \@listdepth \@ne \fi \rightmargin \z@ \listparindent \z@ \itemindent \z@ \csname @list\romannumeral \the \@listdepth \endcsname \def \@itemlabel {#1}\let \makelabel \@mklab \@nmbrlistfalse #2\relax \@trivlist@uestcthesis \parskip \parsep \parindent \listparindent \advance \linewidth -\rightmargin \advance \linewidth -\leftmargin \advance \@totalleftmargin \leftmargin \parshape \@ne \@totalleftmargin \linewidth \ignorespaces }
-
-\def\@enum@{\list@uestcthesis {\csname label\@enumctr \endcsname }{\usecounter {\@enumctr }\def \makelabel ##1{\hss \llap {##1}}}}
-
-\def\enumerate{%
- \ifnum \@enumdepth >3 \@toodeep\else
- \advance\@enumdepth \@ne
- \edef\@enumctr{enum\romannumeral\the\@enumdepth}\fi
- \@ifnextchar[{\@@enum@}{\@enum@}
- \parsep=0pt
- \itemsep=0pt
- \parskip=0pt
- \partopsep=0pt
- \topsep=0pt
- }
+\RequirePackage{enumitem}
+\setlist[1]{topsep=0pt,partopsep=0pt,parsep=0pt,itemsep=0pt,leftmargin=*,align=left,labelindent=\parindent}
% \end{macrocode}
% \subsection{排版源代码相关设置}
%排版源代码所需宏包
@@ -3698,62 +4346,101 @@ pdfpagelayout={TwoPageRight}
\definecolor{bgcolor}{rgb}{1,1,1}
% \end{macrocode}
% \subsection{主要符号表设置}
+%\changes{v0.6}{2014/01/11}{将glossary宏包替换为新版的glossaries宏包。可同时提供缩略词表和主要符号表 。}
%设置术语表宏包供主要符号表使用
% \begin{macrocode}
-\RequirePackage[header,cols=3,hyper=true]{glossary}
-\makeglossary
+\RequirePackage[style=long3colheader,description,acronym]{glossaries}
+\makeglossaries
\renewcommand{\glossaryname}{\glossaryname@uestcthesis}
\renewcommand{\entryname}{\entryname@uestcthesis}
\renewcommand{\descriptionname}{\descriptionname@uestcthesis}
-\renewcommand{\glspageheader}{\glspageheader@uestcthesis}
+\renewcommand{\acronymname}{\acronymname@uestcthesis}
+\renewcommand{\pagelistname}{\pagelistname@uestcthesis}
% \end{macrocode}
-% \begin{macro}{\ifusingglossary}
-%设置一个变量用以判断是否使用主要符号表
-% \begin{macrocode}
-\newcommand{\ifusingglossary}{}
-% \end{macrocode}
-% \end{macro}
% \begin{macro}{\fuhao}
%包装向主要符号表中插入条目的命令
% \begin{macrocode}
-\newcommand{\fuhao}[3]{
-\glossary{name={#1},description={#2},sort=#3}
-\renewcommand{\ifusingglossary}{true}%设置使用主要符号表
+\newcommand{\fuhao}[3]{%
+\newglossaryentry{#3}{name={#1},description={#2},sort=#3}%
}
% \end{macrocode}
% \end{macro}
+% \begin{macrocode}
+\newglossarystyle{acronymwithtranslation}{%缩略词表样式定义
+ \setglossarystyle{long3colheader}%在long3colheader基础上修改
+ \renewcommand*{\glossaryheader}{%重定义表头
+ \bfseries\acronymheader@uestcthesis&\bfseries\acronymfull@uestcthesis&
+ \bfseries\acronymtranslation@uestcthesis\tabularnewline\endhead}%
+ \renewenvironment{theglossary}%重定义列宽
+ {\begin{longtable}{lp{\glsdescwidth}p{7em}}}%
+ {\end{longtable}}%
+ \renewcommand{\glossentry}[2]{%重定义显示什么列:缩略词、英文全称、中文全称
+ \glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}} &
+ \csname glo@##1@first\endcsname & \glossentrydesc{##1}\tabularnewline
+ }%
+ \renewcommand{\subglossentry}[3]{%
+ &
+ \glssubentryitem{##2}%
+ \glstarget{##2}{\strut}\csname glo@##2@first\endcsname &
+ \glossentrydesc{##2}\tabularnewline
+ }%
+}
+% \end{macrocode}
+
% \subsection{自动添加论文的必选结构}
%\changes{v0.4.3}{2013/05/20}{由于目前(2013年)本科和硕博关于参考文献与致谢顺序的规定不一样,所以在这里区分设置}
%\changes{v0.4.2}{2013/05/14}{修复只有单页目录时页眉显示主要符号表的问题。}
%\changes{v0.4.3}{2013/05/20}{修复bug:摘要应从右页开始。前置部分都需要章起右页。}
%\changes{v0.4.4}{2013/05/23}{本科论文中将外文资料和翻译加入目录中。}
+%\changes{v0.5.4}{2013/10/29}{修改封面到摘要之前的部分实际的页码,避免pdf阅读器中页码冲突。}
+%\changes{v0.6.1}{2014/01/20}{添加摘要和目录到pdf书签中。}
+%\changes{v0.6.4}{2014/02/25}{用withoutforepages选项和onlychapters选项控制忽略必选结构中的一部分。}
% \begin{macrocode}
% !Mode:: "TeX:UTF-8"
\AtBeginDocument{%插入到论文内容的最前面。
\begin{CJK}{UTF8}{rm}%中文支持环境,此处内容不受ctexbook文类影响,所以必须手动加这个环境。
+\ifdef{\withoutforepages@uestcthesis}{}{%withoutforepages选项效果
\maketitle%生成并插入封面
-\clearpage{\pagestyle{empty}\cleardoublepage}
+}%
+\ifdef{\onlychapters@uestcthesis}{}{%onlychapters选项效果
\Cabstractmatter%设置中文摘要版式
+\pdfbookmark[1]{摘要}{Cabstract}%添加中文摘要的PDF书签
\include{contents/Cabstract}%插入中文摘要
\clearpage{\pagestyle{empty}\cleardoublepage}
\Eabstractmatter%设置英文摘要版式
+\pdfbookmark[1]{Abstract}{Eabstract}%添加英文摘要的PDF书签
\include{contents/Eabstract}%插入英文摘要
\clearpage{\pagestyle{empty}\cleardoublepage}
\tocmatter%目录版式
+\pdfbookmark[1]{目录}{tableofcontents}%添加目录的PDF书签
\tableofcontents%插入目录
+\insertlof%插入图目录
+\insertlot%插入表目录
\clearpage{\pagestyle{empty}\cleardoublepage}%目录之后另起一页,这样无论目录后有没有主要符号表,主要符号表的页眉设置命令都会应用到下一页。
%此处遇到问题:目录之后到正文之前如果加入章节,这些章节的版式不受传统版式设置控制。估计是BUG。此处耗时6小时20分钟,终于找到了修正方案。
-\glossarymatterfancy%设置主要符号表版式。
+\acronymnamematter%设置缩略词表版式
+\printacronyms[style=acronymwithtranslation]
+\clearpage{\pagestyle{empty}\cleardoublepage}
+\glossarymatter%设置主要符号表版式。
\printglossary%插入主要符号表
\clearpage{\pagestyle{empty}\cleardoublepage}
\mainmatter%修正主要符号表版式,这里是受目录版式的影响,必须在此加入\mainmatter。
+}%
\end{CJK}
\mainmatter%正文区版式
\makeatletter
\newcmds@uestcthesis%自定义图表命令,这些命令必须在document环境里声明才能在正文中使用,所以只能放在这里了。
+% \end{macrocode}
+%设置公式与上下文之间的间距。
+% \begin{macrocode}
+\abovedisplayskip=6bp
+\abovedisplayshortskip=6bp
+\belowdisplayskip=6bp
+\belowdisplayshortskip=6bp
\makeatother
}
+\ifdef{\onlychapters@uestcthesis}{}{%onlychapters选项效果
\newcommand{\insertacknowledgement}{
\chapter*{\acknowledgementsname@uestcthesis}%用带星号的章命令插入不带章号的致谢。
\markboth{\acknowledgementsname@uestcthesis}{}%页眉设置
@@ -3782,8 +4469,13 @@ pdfpagelayout={TwoPageRight}
\newpage
\insertreference
}
-
+% \end{macrocode}
+% \changes{v0.6.1}{2014/01/20}{修正附录中图表公式的标号格式。}
+% \begin{macrocode}
\appendix%附录版式
+\renewcommand{\thefigure}{\Alph{chapter}\textendash\arabic{figure}}
+\renewcommand{\thetable}{\Alph{chapter}\textendash\arabic{table}}
+\renewcommand{\theequation}{\Alph{chapter}\textendash\arabic{equation}}
\renewcommand{\chaptermark}[1]{\markboth{\CTEX@appendixname\Alph{chapter}~ #1 }{}}%附录页眉设置
\input{contents/appendix.tex}%插入附录内容
\clearpage
@@ -3858,14 +4550,22 @@ pdfpagelayout={TwoPageRight}
% 下面的大括号实际上是上一节判断是否为本科论文的|\ifdefstring|命令的else部分。也就是只有硕博论文才执行的命令。
% \begin{macrocode}
{
-\IfFileExists{contents/publications.bib}{%如果删除了publications.bib,则不显示这一章
-\CTEXoptions[ bibname={\publicationsname@degree}]%设置攻博/硕期间发表的论文章题目
-\phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。
-\addcontentsline{toc}{chapter}{\publicationsname@degree}%将攻博/硕期间发表的论文编入目录
-{\zihao{5}
-\bibliographypublications{contents/publications}%插入攻博/硕期间发表的论文
-}}{}}
+\ifdef{\usecv@uestcthesis}{\usecv@uestcthesis}{
+ \IfFileExists{contents/publications.bib}{%如果删除了publications.bib,则不显示这一章
+ \CTEXoptions[ bibname={\publicationsname@degree}]%设置攻博/硕期间发表的论文章题目
+ \phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。
+ \addcontentsline{toc}{chapter}{\publicationsname@degree}%将攻博/硕期间发表的论文编入目录
+ {\zihao{5}%
+% \end{macrocode}
+% footmisc宏包的perpage选项会向每个aux文件中写入一个命令。由于publications没有tex文件,只有aux文件。所以出现了错误。这里将要写入aux文件的内容清空。
+% \begin{macrocode}
+ \def\footnotehint{}%
+ \bibliographypublications{contents/publications}%插入攻博/硕期间发表的论文
+ }}{}
+ }
+}
\clearpage\end{CJK}}
+}%这是大括号是前面onlychapters选项的ifdef命令的一部分。
% \end{macrocode}
% \iffalse
%</class>
@@ -7101,6 +7801,256 @@ EXECUTE {end.bib}
%</bst>
% \fi
% \iffalse
+%<*packagecheck>
+% \fi
+% \section{版本检查程序}
+% \changes{v0.6.2}{2014/02/11}{增加一个用于检查依赖宏包版本的文件。}
+% \begin{macrocode}
+% !Mode:: "TeX:UTF-8"
+
+\makeatletter
+\def\version@uestcthesis{v1.0.0}
+\IfFileExists{ctexbook.cls}{
+\documentclass[cs4size,UTF8,fancyhdr,hyperref,fntef,openany]{ctexbook}
+}{
+\documentclass{article}
+}
+\def\@parse@version@checkpackage#1/#2/#3#4#5\@nil{#1/#2/#3#4 }
+\def\packagelist{}
+%检查指定宏包版本是否高于所需版本日期,如果宏包存在则加载后读取版本日期。
+\newcommand{\checkpackage}[2]{%
+ \expandafter\def\csname#1@needversion\endcsname{#2}
+ \IfFileExists{#1.\@pkgextension}{%
+ \usepackage{#1}%
+ \@ifpackagelater{#1}{#2}{%
+ \expandafter\def\csname#1@checkresult\endcsname{OK!}
+ }{%
+ \expandafter\def\csname#1@checkresult\endcsname{too old!}
+ }
+ \expandafter\def\csname#1@currentversion\endcsname{%
+ \xdef\cver@checkpackage{\csname ver@#1.sty\endcsname}
+ \expandafter\@parse@version@checkpackage\cver@checkpackage\@nil%
+ }%
+ }%
+ {\expandafter\def\csname#1@checkresult\endcsname{not found!}}%
+
+ \xdef\packagelist{#1,\packagelist}
+}
+%个别宏包版本无法读取,鉴于版本较旧,只检查是否存在
+\newcommand{\checkpackagespecial}[2]{%
+ \expandafter\def\csname#1@needversion\endcsname{#2}
+ \IfFileExists{#1.\@pkgextension}{%
+ \usepackage{#1}%
+ \expandafter\def\csname#1@checkresult\endcsname{Maybe OK!}
+
+ \expandafter\def\csname#1@currentversion\endcsname{%
+ unknown!
+ }%
+ }%
+ {\expandafter\def\csname#1@checkresult\endcsname{not found!}}%
+
+ \xdef\packagelist{#1,\packagelist}
+}
+%检查ctexbook文类的版本
+\newcommand{\checkctexbookclass}[1]{%
+ \expandafter\def\csname ctexbook@needversion\endcsname{#1}
+ \IfFileExists{ctexbook.\@clsextension}{%
+ \@ifclasslater{ctexbook}{#1}{%
+ \expandafter\def\csname ctexbook@checkresult\endcsname{OK!}
+ }{%
+ \expandafter\def\csname ctexbook@checkresult\endcsname{too old!}
+ }
+ \expandafter\def\csname ctexbook@currentversion\endcsname{%
+ \xdef\cver@checkpackage{\csname ver@ctexbook.cls\endcsname}
+ \expandafter\@parse@version@checkpackage\cver@checkpackage\@nil%
+ }%
+ }%
+ {\expandafter\def\csname ctexbook@checkresult\endcsname{not found!}}%
+
+ \xdef\packagelist{ctexbook,\packagelist}
+}
+%生成输出行
+\def\checkresult#1{%
+ \makebox[4.5cm][l]{#1}%
+ \makebox[10em][l]{\csname#1@needversion\endcsname}%
+ \makebox[10em][l]{\csname#1@currentversion\endcsname}%
+ \makebox[10em][l]{\csname#1@checkresult\endcsname}\\
+}
+
+
+
+%这些宏包是模板中主动加载的,测试顺序和模板中的加载顺序一致。
+\checkctexbookclass{2011/03/11}
+\checkpackage{mathptmx}{2005/04/12}
+\checkpackage{etoolbox}{2011/01/03}
+\checkpackage{ifthen}{2001/05/26}
+\checkpackage{geometry}{2010/09/12}
+\checkpackage{graphicx}{1999/02/16}
+\checkpackage{calc}{2007/08/22}
+\checkpackage{float}{2001/11/08}
+\checkpackagespecial{texnames}{}%这个宏包没有版本号
+\checkpackage{caption}{2013/05/02}
+\checkpackage{booktabs}{2005/04/14}
+\checkpackage{tabularx}{1999/01/07}
+\checkpackage{threeparttable}{2003/06/13}
+\checkpackage{longtable}{2004/02/01}
+\checkpackage{placeins}{2005/04/18}
+\checkpackage{flafter}{2000/07/23}
+\checkpackage{amsmath}{2013/01/14}
+\checkpackage{amsfonts}{2013/01/14}
+\checkpackage{amssymb}{2013/01/14}
+\checkpackage{bm}{2004/02/26}
+\checkpackage{ntheorem}{2011/08/15}
+\checkpackage{natbib}{2010/09/13}
+\checkpackage{multibib}{2008/12/10}
+\checkpackage{cmap}{2008/03/06}
+\checkpackage{hyperxmp}{2013/07/18}
+\checkpackage{hyperref}{2012/11/06}
+\checkpackage{subfigure}{2002/07/30}
+\checkpackage{enumitem}{2011/09/28}
+\checkpackage{color}{2005/11/14}
+\checkpackage{marvosym}{2011/07/20}
+\checkpackage{glossaries}{2013/12/05}
+\checkpackage{footmisc}{2011/06/06}
+\checkpackage{pifont}{2005/04/12}
+
+%这些宏包是由前面的宏包自动加载的。它们应该已经加载完毕。
+\checkpackagespecial{fontenc}{2005/09/27}
+\checkpackage{l3bootstrap}{2014/01/04}
+\checkpackage{l3names}{2014/01/04}
+\checkpackage{etex}{1998/03/26}
+\checkpackage{expl3}{2014/01/07}
+\checkpackage{l3basics}{2014/01/04}
+\checkpackage{l3expan}{2014/01/04}
+\checkpackage{l3tl}{2013/12/27}
+\checkpackage{l3seq}{2013/12/14}
+\checkpackage{l3int}{2013/08/02}
+\checkpackage{l3quark}{2013/12/14}
+\checkpackage{l3prg}{2014/01/04}
+\checkpackage{l3clist}{2013/07/28}
+\checkpackage{l3token}{2013/08/25}
+\checkpackage{l3prop}{2013/12/14}
+\checkpackage{l3msg}{2013/07/28}
+\checkpackage{l3file}{2013/10/13}
+\checkpackage{l3skip}{2013/07/28}
+\checkpackage{l3keys}{2013/12/08}
+\checkpackage{l3fp}{2014/01/04}
+\checkpackage{l3box}{2013/07/28}
+\checkpackage{l3coffins}{2013/12/14}
+\checkpackage{l3color}{2012/08/29}
+\checkpackage{l3luatex}{2013/07/28}
+\checkpackage{l3candidates}{2014/01/06}
+\checkpackage{ifpdf}{2011/01/30}
+\checkpackage{ifxetex}{2010/09/12}
+\checkpackage{keyval}{1999/03/16}
+\checkpackage{indentfirst}{1995/11/23}
+\checkpackage{fix-cm}{2006/09/13}
+\checkpackage{CJKutf8}{2012/05/07}
+\checkpackage{inputenc}{2008/03/30}
+\checkpackage{CJK}{2012/05/07}
+\checkpackage{MULEenc}{2012/05/07}
+\checkpackage{CJKpunct}{2009/05/06}
+\checkpackage{CJKfntef}{2012/05/07}
+\checkpackage{CJKulem}{2012/05/07}
+\checkpackage{ulem}{2012/05/18}
+\checkpackage{ifvtex}{2010/03/01}
+\checkpackage{graphics}{2009/02/05}
+\checkpackage{trig}{1999/03/16}
+\checkpackage{infwarerr}{2010/04/08}
+\checkpackage{ltxcmds}{2011/11/09}
+\checkpackage{caption3}{2013/05/02}
+\checkpackage{array}{2008/09/09}
+\checkpackage{amstext}{2000/06/29}
+\checkpackage{amsbsy}{1999/11/29}
+\checkpackage{amsopn}{1999/12/14}
+\checkpackage{atenddvi}{2007/04/17}
+\checkpackage{zref-abspage}{2012/04/04}
+\checkpackage{zref-base}{2012/04/04}
+\checkpackage{kvsetkeys}{2012/04/25}
+\checkpackage{etexcmds}{2011/02/16}
+\checkpackage{ifluatex}{2010/03/01}
+\checkpackage{kvdefinekeys}{2011/04/07}
+\checkpackage{pdftexcmds}{2011/11/29}
+\checkpackage{auxhook}{2011/03/04}
+\checkpackage{atbegshi}{2011/10/05}
+\checkpackage{zref-lastpage}{2012/04/04}
+\checkpackage{atveryend}{2011/06/30}
+\checkpackage{kvoptions}{2011/06/30}
+\checkpackage{pdfescape}{2011/11/25}
+\checkpackage{stringenc}{2011/12/02}
+\checkpackage{intcalc}{2007/09/27}
+\checkpackage{hobsub-hyperref}{2012/04/25}
+\checkpackage{hobsub-generic}{2012/04/25}
+\checkpackage{hobsub}{2012/04/25}
+\checkpackage{bigintcalc}{2012/04/08}
+\checkpackage{bitset}{2011/01/30}
+\checkpackage{uniquecounter}{2011/01/30}
+\checkpackage{letltxmacro}{2010/09/02}
+\checkpackage{hopatch}{2011/06/24}
+\checkpackage{xcolor-patch}{2011/01/30}
+\checkpackage{refcount}{2011/10/16}
+\checkpackage{hycolor}{2011/01/30}
+\checkpackage{url}{2006/04/12}
+\checkpackage{rerunfilecheck}{2011/04/15}
+\checkpackage{xkeyval}{2012/10/14}
+\checkpackage{mfirstuc}{2013/11/04}
+\checkpackage{textcase}{2004/10/07}
+\checkpackage{xfor}{2009/02/05}
+\checkpackage{datatool-base}{2013/09/06}
+\checkpackage{substr}{2009/10/20}
+\checkpackage{datatool-fp}{2013/08/29}
+\checkpackage{fp}{1995/04/02}
+\checkpackage{defpattern}{1994/10/12}
+\checkpackage{fp-basic}{1996/05/13}
+\checkpackage{fp-addons}{1995/03/15}
+\checkpackage{fp-snap}{1995/04/05}
+\checkpackage{fp-exp}{1995/04/03}
+\checkpackage{fp-trigo}{1995/04/14}
+\checkpackage{fp-pas}{1994/08/29}
+\checkpackage{fp-random}{1995/02/23}
+\checkpackage{fp-eqn}{1995/04/03}
+\checkpackage{fp-upn}{1996/10/21}
+\checkpackage{fp-eval}{1995/04/03}
+\checkpackage{glossaries-compatible-307}{2013/11/14}
+\checkpackage{glossary-hypernav}{2013/11/14}
+\checkpackage{glossary-list}{2013/11/14}
+\checkpackage{glossary-long}{2013/11/14}
+\checkpackage{glossary-super}{2013/11/14}
+\checkpackage{supertabular}{2004/02/20}
+\checkpackage{glossary-tree}{2013/11/14}
+\checkpackage{ltcaption}{2013/02/03}
+\checkpackage{nameref}{2012/10/27}
+\checkpackage{gettitlestring}{2010/12/03}
+\makeatother
+\begin{document}
+\chapter{Packages Check}
+\makeatletter%
+\noindent NOTICE:This report is prepared for uestcthesis \version@uestcthesis.
+
+\noindent\makebox[4.5cm][l]{\bf Package}\makebox[10em][l]{\bf Need}\makebox[10em][l]{\bf Have}\makebox[10em][l]{\bf Check Result}\\
+\newif\iflisthasnext
+%从记录宏包名的\packagelist弹出一个宏包名
+\def\poppackagename#1,#2\@nil{%
+\checkresult{#1}%
+\def\packagelist{#2}%
+}
+\loop
+\expandafter\poppackagename\packagelist\@nil%
+\ifx\packagelist\empty\listhasnextfalse %
+\else\listhasnexttrue%
+\fi%
+\iflisthasnext%
+\repeat%
+\makeatother
+\end{document}
+
+% \end{macrocode}
+% \iffalse
+%</packagecheck>
+% \fi
+
+
+% \iffalse
%<*beamer>
% \fi
% \section{Beamer主题}
@@ -7148,7 +8098,7 @@ EXECUTE {end.bib}
}
}
{
-\newrgbcolor{curcolor}{0 0.33725491 0.62352943}
+\newrgbcolor{curcolor}{0 0.36078431 0.63529412}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -7650,7 +8600,7 @@ EXECUTE {end.bib}
}
}
{
-\newrgbcolor{curcolor}{0 0.33725491 0.62352943}
+\newrgbcolor{curcolor}{0 0.36078431 0.63529412}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -7679,7 +8629,7 @@ EXECUTE {end.bib}
}
}
{
-\newrgbcolor{curcolor}{0 0.33725491 0.62352943}
+\newrgbcolor{curcolor}{0 0.36078431 0.63529412}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -7705,7 +8655,7 @@ EXECUTE {end.bib}
}
}
{
-\newrgbcolor{curcolor}{0 0.33725491 0.62352943}
+\newrgbcolor{curcolor}{0 0.36078431 0.63529412}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -7723,7 +8673,7 @@ EXECUTE {end.bib}
}
}
{
-\newrgbcolor{curcolor}{0 0.33725491 0.62352943}
+\newrgbcolor{curcolor}{0 0.36078431 0.63529412}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -7779,7 +8729,7 @@ EXECUTE {end.bib}
}
}
{
-\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275}
+\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -7796,7 +8746,7 @@ EXECUTE {end.bib}
}
}
{
-\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275}
+\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -7821,7 +8771,7 @@ EXECUTE {end.bib}
}
}
{
-\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275}
+\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
@@ -7861,7 +8811,7 @@ EXECUTE {end.bib}
}
}
{
-\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275}
+\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706}
\pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor]
{
\newpath
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins b/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins
index f715ee53793..2e710260e01 100644
--- a/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins
+++ b/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins
@@ -1,70 +1,71 @@
-% !Mode:: "TeX:UTF-8:INS"
-
-%%% uestcthesis.ins
-%%% Copyright 2012-2013 Shi Fujun <shifujun@foxmail.com>
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3
-%% 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.3 or later is part of all distributions of LaTeX
-%% version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status `maintained'.
-%%
-%% The Current Maintainer of this work is Shi Fujun <shifujun@foxmail.com>.
-%%
-%% This work consists of the files uestcthesis.dtx and uestcthesis.ins
-%% and the derived file uestcthesis.cls, uestcthesis.bst and beamerthemeuestcthesis.sty.
-%% Other files in this work's package are belongs to the respective owners.
-\input docstrip.tex
-\keepsilent
-\askforoverwritefalse
-
-\usedir{tex/latex/uestcthesis}
-
-\preamble
-
-This is a generated file.
-
- Copyright 2012-2013 Shi Fujun <shifujun@foxmail.com>
-
- This work may be distributed and/or modified under the
- conditions of the LaTeX Project Public License, either version 1.3
- 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.3 or later is part of all distributions of LaTeX
- version 2005/12/01 or later.
-
- This work has the LPPL maintenance status `maintained'.
-
- The Current Maintainer of this work is Shi Fujun <shifujun@foxmail.com>.
-
- This work consists of the files uestcthesis.dtx, uestcthesis.ins
- and the derived file uestcthesis.cls, uestcthesis.bst and beamerthemeuestcthesis.sty.
- Other files in this work's package are belongs to the respective owners.
-
-\endpreamble
-
-\generate{\file{uestcthesis.cls}{\from{uestcthesis.dtx}{class}}}
-\generate{\file{uestcthesis.bst}{\from{uestcthesis.dtx}{bst}}}
-\generate{\file{beamerthemeuestcthesis.sty}{\from{uestcthesis.dtx}{beamer}}}
-
-\obeyspaces
-\Msg{*************************************************************}
-\Msg{* *}
-\Msg{* To finish the installation you have to move the following *}
-\Msg{* file into a directory searched by TeX: *}
-\Msg{* *}
-\Msg{*uestcthesis.cls uestcthesis.bst beamerthemeuestcthesis.sty *}
-\Msg{* *}
-\Msg{* To produce the documentation run the file uestcthesis.dtx *}
-\Msg{* through LaTeX. *}
-\Msg{* *}
-\Msg{* Happy TeXing! *}
-\Msg{* *}
-\Msg{*************************************************************}
-
-\endbatchfile
+% !Mode:: "TeX:UTF-8:INS"
+
+%%% uestcthesis.ins
+%%% Copyright 2012-2013 Shi Fujun <shifujun@foxmail.com>
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% 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.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Shi Fujun <shifujun@foxmail.com>.
+%%
+%% This work consists of the files uestcthesis.dtx and uestcthesis.ins
+%% and the derived file uestcthesis.cls, uestcthesis.bst and beamerthemeuestcthesis.sty.
+%% Other files in this work's package are belongs to the respective owners.
+\input docstrip.tex
+\keepsilent
+\askforoverwritefalse
+
+\usedir{tex/latex/uestcthesis}
+
+\preamble
+
+This is a generated file.
+
+ Copyright 2012-2013 Shi Fujun <shifujun@foxmail.com>
+
+ This work may be distributed and/or modified under the
+ conditions of the LaTeX Project Public License, either version 1.3
+ 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.3 or later is part of all distributions of LaTeX
+ version 2005/12/01 or later.
+
+ This work has the LPPL maintenance status `maintained'.
+
+ The Current Maintainer of this work is Shi Fujun <shifujun@foxmail.com>.
+
+ This work consists of the files uestcthesis.dtx, uestcthesis.ins
+ and the derived file uestcthesis.cls, uestcthesis.bst and beamerthemeuestcthesis.sty.
+ Other files in this work's package are belongs to the respective owners.
+
+\endpreamble
+
+\generate{\file{uestcthesis.cls}{\from{uestcthesis.dtx}{class}}}
+\generate{\file{uestcthesis.bst}{\from{uestcthesis.dtx}{bst}}}
+\generate{\file{beamerthemeuestcthesis.sty}{\from{uestcthesis.dtx}{beamer}}}
+\generate{\file{packagecheck.tex}{\from{uestcthesis.dtx}{packagecheck}}}
+
+\obeyspaces
+\Msg{*************************************************************}
+\Msg{* *}
+\Msg{* To finish the installation you have to move the following *}
+\Msg{* file into a directory searched by TeX: *}
+\Msg{* *}
+\Msg{*uestcthesis.cls uestcthesis.bst beamerthemeuestcthesis.sty *}
+\Msg{* *}
+\Msg{* To produce the documentation run the file uestcthesis.dtx *}
+\Msg{* through LaTeX. *}
+\Msg{* *}
+\Msg{* Happy TeXing! *}
+\Msg{* *}
+\Msg{*************************************************************}
+
+\endbatchfile
diff --git a/Master/texmf-dist/doc/latex/uestcthesis/uestcthesis.pdf b/Master/texmf-dist/doc/latex/uestcthesis/uestcthesis.pdf
deleted file mode 100644
index d881969e433..00000000000
--- a/Master/texmf-dist/doc/latex/uestcthesis/uestcthesis.pdf
+++ /dev/null
Binary files differ