From 0da954038fc199402b8d190a323de81a997709c4 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 27 May 2013 01:52:04 +0000 Subject: uestcthesus update 5/27 git-svn-id: svn://tug.org/texlive/trunk@30711 c570f23f-e606-0410-a88d-b1316a301751 --- .../bibtex/bst/uestcthesis/uestcthesis.bst | 22 +- Master/texmf-dist/doc/latex/uestcthesis/README | 2 - .../doc/latex/uestcthesis/doc/chapters/tuition.tex | 113 ++++--- .../uestcthesis/doc/contents/publications.bib | 4 + .../doc/latex/uestcthesis/doc/uestcthesis-doc.pdf | Bin 1103789 -> 1119039 bytes .../doc/latex/uestcthesis/source/rvdtx.sty | 349 +++++++++++++++++++++ .../doc/latex/uestcthesis/source/uestcthesis.dtx | 165 +++++++--- .../doc/latex/uestcthesis/source/uestcthesis.ins | 144 ++++----- .../doc/latex/uestcthesis/uestcthesis.pdf | Bin 0 -> 658787 bytes .../tex/latex/uestcthesis/uestcthesis.cls | 85 +++-- 10 files changed, 697 insertions(+), 187 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/uestcthesis/source/rvdtx.sty create mode 100644 Master/texmf-dist/doc/latex/uestcthesis/uestcthesis.pdf (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/bibtex/bst/uestcthesis/uestcthesis.bst b/Master/texmf-dist/bibtex/bst/uestcthesis/uestcthesis.bst index 0ed97ef09d5..f99376ef6da 100644 --- a/Master/texmf-dist/bibtex/bst/uestcthesis/uestcthesis.bst +++ b/Master/texmf-dist/bibtex/bst/uestcthesis/uestcthesis.bst @@ -27,10 +27,9 @@ %% Other files in this work's package are belongs to the respective owners. %% - %本文件基于吴凯制作的GBT7714-2005NLang.bst(1 Beta 2 测试版2012年9月20日)修改而成。 - %根据GBT7714-2005NLang.bst中copyright的要求,将文件名修改成uestcthesis.bst。 - %对吴凯的杰出工作表示感谢! - +%%本文件基于吴凯制作的GBT7714-2005NLang.bst(1 Beta 2 测试版2012年9月20日)修改而成。 +%%根据GBT7714-2005NLang.bst中copyright的要求,将文件名修改成uestcthesis.bst。 +%%对吴凯的杰出工作表示感谢! ENTRY { address author @@ -2765,6 +2764,21 @@ FUNCTION {unpublished} } if$ } +FUNCTION {onlynote} %定义note类型,将note项目单独原文输出,满足自定义任何条目的需求 +{ +newline$ + "\bibitem[" write$ + label write$ + "]{" write$ + cite$ write$ + "}" write$ + newline$ + "" + before.all 'output.state := + new.block + note output + fin.entry +} FUNCTION {default.type} { book } %wk 因为主要是基于book类型,因此将缺省类型由misc改为book diff --git a/Master/texmf-dist/doc/latex/uestcthesis/README b/Master/texmf-dist/doc/latex/uestcthesis/README index 3f99a2341db..13db7e2d1ac 100644 --- a/Master/texmf-dist/doc/latex/uestcthesis/README +++ b/Master/texmf-dist/doc/latex/uestcthesis/README @@ -14,7 +14,6 @@ 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 *************************Translation in zh_CN_UTF-8**************************** UESTCthesis是电子科技大学毕业论文LaTeX模板。 @@ -27,6 +26,5 @@ uestcthesis.cls, uestcthesis.bst 这两个文件需要放在 可以被pdfLaTeX搜索到的地方。最简单的方式就是放在工作目录中。 其他说明请见doc目录下的“uestcthesis-doc.pdf"。 -项目主页:https://github.com/shifujun/UESTCthesis 作者:时富军 ******************************************************************************* 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 ad1bdd03b24..1e8e662e629 100644 --- a/Master/texmf-dist/doc/latex/uestcthesis/doc/chapters/tuition.tex +++ b/Master/texmf-dist/doc/latex/uestcthesis/doc/chapters/tuition.tex @@ -1,11 +1,33 @@ % !Mode:: "TeX:UTF-8" \chapter{更新日志} +\noindent +2013年5月25日:v0.4.4 +\begin{enumerate} +\item 修正摘要关键词的逗号之前会有一个多余的空格,而英文摘要关键词的逗号后没有空格的问题。 +\item 修正可能会出现超大段距的问题。并且重新设置了一个默认为0的弹性段距,最大为10磅,最小为-1磅。有弹性段距会让排版得到更美观的结果。而且-1 到10磅相对于行距来说并不明显。 +\item 增加了一个参考文献类型ONLYNOTE,可以将参考文献的note字段直接作为参考文献条目内容。用于录入不规范的参考文献条目,例如攻读期间取得的成果中可能会要录入获奖\cite{onlynoteexample}。而获奖并不是标准的参考文献类型。 +\item 本科论文目录中加入外文资料原文和译文。 +\item 本科论文的章标题序号改为阿拉伯数字序号。 +\item 修正表格字号,按照规范应为五号字(英文10.5磅)。 +\item 发现问题:如果\verb|\citeup|命令之前是标点符号,请暂时手动将前面的字符同\verb|\citeup|命令都放入\verb|\mbox{}|命令的括号中,例如:\verb|《新华字典\mbox{》\citeup{xxx}}|。 这样可以避免在这个标点符号之后直接换行,而将上标的[] 置于下一行行首。 +\end{enumerate} + +\noindent +2013年5月20日:v0.4.3 +\begin{enumerate} +\item 修复BUG:枚举环境之前与前后文有额外的间距,现已去掉。 +\item 修复BUG:之前模板没有按照规范要求将摘要等前置内容章起右页,现已修正。至于中文摘要在第I页,而英文摘要在第III 页的问题,我认为是正常的,页码不应该因为左页没内容就跳过去。奇偶页码与左右页的关系不应该改变。 +\item 修复BUG:由于我的疏忽,本科论文规范修订时将目录中的缩进打错成半角,这和硕博规范不一致。现已将本科论文的目录缩进修正和今年的规范一致,硕博不变。 +\item 修复BUG:之前模板的参考文献和致谢的顺序是按照硕博规范设置的,刚刚发现本科规范和硕博规范在这个顺序上是反的。现已将本科论文的致谢置于参考文献之后。 +\item 发现可能编译出错的问题,新安装的CTeX套装在安装目录下\verb|\CTeX\tex\latex\ctex|中有一个旧版本的ctex 宏包,应将这个目录删除,ctex 才会下载最新的ctex宏包。我已在模板中添加了需要的ctexbook版本。 +\end{enumerate} + \noindent 2013年5月14日:v0.4.2 \begin{enumerate} \item 修复BUG:此版本之前,当目录只有一页时目录的页眉显示成主要符号表。 -\item 上一版本在使用WinEdt等自带的编译功能时不显示LOGO,但是会引起封面多出一页。此版本装饰了这个问题,在不使用正确编译的编译脚本编译时在LOGO处显示一段说明文字。 +\item 上一版本在使用WinEdt等自带的编译功能时不显示LOGO,但是会引起封面多出一页。此版本装饰了这个问题,在不使用正确编译的编译脚本编译时在LOGO 处显示一段说明文字。 \end{enumerate} @@ -16,17 +38,17 @@ 生成所需的特殊编译过程已写入到批处理脚本中。这个过程是: -用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} \noindent 2013年4月4日:v0.4 \begin{enumerate} -\item 添加english选项,使用后将所有预定名变为英文。供我校留学生使用。这个需求是研究生院老师提出来的,同时也有研究生同学向我询问可否支持的。使用方法是在master或doctor选项后加上,english。 +\item 添加english选项,使用后将所有预定名变为英文。供我校留学生使用。这个需求是研究生院老师提出来的,同时也有研究生同学向我询问可否支持的。使用方法是在master或doctor 选项后加上,english。 例如:\verb|\documentclass[master,english]{uestcthesis}| -\item 添加定理环境的结束符语句。但是目前所有结束符还设置为空。也就是没有任何变化。因为学校的规范中没有定义各种环境的结束符应该是什么。这个需求是一位数学学院的同学提出来的。需要用的同学可以暂时自己改,例如,将uestcthesis.cls文件的661行改为\verb|\theoremsymbol{【证毕】}|,即可在证明环境后自动加上这个标志。注意修改cls文件请使用notepad++等支持无BOM头的UTF-8编辑器。 +\item 添加定理环境的结束符语句。但是目前所有结束符还设置为空。也就是没有任何变化。因为学校的规范中没有定义各种环境的结束符应该是什么。这个需求是一位数学学院的同学提出来的。需要用的同学可以暂时自己改,例如,将uestcthesis.cls文件的661行改为\verb|\theoremsymbol{【证毕】}|,即可在证明环境后自动加上这个标志。注意修改cls 文件请使用notepad++等支持无BOM 头的UTF-8编辑器。 \end{enumerate} \noindent @@ -54,7 +76,7 @@ \begin{enumerate} \item 在模板内部修复了参考文献的遗留问题,不再需要sed工具。 \item 模板已经提交到CTAN,并已被MiKTeX收录。所以本模板已经可以通过MiKTeX的宏包管理器安装,不再需要typesetting目录。更新说明中安装一节。 -\item 在pdf元数据中填写了论文的信息,并加入了XMP高级元数据。设置了用Adobe Reader打开时的默认阅读方式为书籍方式。 +\item 在pdf元数据中填写了论文的信息,并加入了XMP高级元数据。设置了用Adobe Reader 打开时的默认阅读方式为书籍方式。 \item 加入了排版源代码的方案说明,见\ref{source:section}节。 \end{enumerate} @@ -66,25 +88,25 @@ \chapter{模板使用说明} \section{简介} -2013年1月14日更新后的模板已经支持本硕博三种标准。并且本人已经和教务处实践科交流过,实践科对本模板是支持的。同时实践科也表示可以接收pdf格式的电子档。并且已经同意将本科毕业论文的排版规范改为和研究生标准统一化,所以也简化了本模板的开发工作。本次更新后已经针对本科和硕博的不同要求,可以分别编译出不同结构的论文。 +2013年1月14日更新后的模板已经支持本硕博三种标准。并且本人已经和教务处实践科交流过,实践科对本模板是支持的。同时实践科也表示可以接收pdf 格式的电子档。并且已经同意将本科毕业论文的排版规范改为和研究生标准统一化,所以也简化了本模板的开发工作。本次更新后已经针对本科和硕博的不同要求,可以分别编译出不同结构的论文。 本模板以《研究生学位论文(含研究报告)撰写规范(2012年修订版)》(以下称学校标准)为标准。对于其中未提及的规范,参照中国高等学校自然科学学报编排规范(修订版)》。参考文献格式符合学校标准的基础上,采用国标GBT7714-2005。编译结果已经可以符合学校标准,如有不完全符合的地方,请大家分享反馈回来,我尽量修改。改不了的地方,请大家看看历年的硕博论文,本模板的排版质量已经非常非常高了。 \subsection{面向没用用过\LaTeX{}的用户介绍} Q:什么是\LaTeX{}? -A:\LaTeX{}是\TeX{}的一种扩展。\TeX{}是科技论文排版的首选软件,\TeX{}程序从1989年至今没有过任何修改,可见这个程序的可靠性之高。在用\TeX{}写文章时,需要边写内容边定义格式。而\LaTeX{}在\TeX{}基础上,将排版和写作分开,使得写作的人不用管格式的处理,从而专注于文章的内容! +A:\LaTeX{}是\TeX{}的一种扩展。\TeX{}是科技论文排版的首选软件,\TeX{}程序从1989 年至今没有过任何修改,可见这个程序的可靠性之高。在用\TeX{} 写文章时,需要边写内容边定义格式。而\LaTeX{}在\TeX{}基础上,将排版和写作分开,使得写作的人不用管格式的处理,从而专注于文章的内容! Q:我怎么没听说过这东西? -A:确实\LaTeX{}在国内普及度不高,学校对本科生的论文很少要求到\TeX{}可以达到的高度。但是研究生和博士生论文一般都需要用\LaTeX{}排版。全世界著名大学都要求用\LaTeX{}排版毕业论文。国内大部分的重点大学也都有\LaTeX{}学位论文模板(\href{http://zzg34b.w3.c361.com/templet/graduateThesis.htm}{点击查看列表})。比如清华大学的校内论坛还有专门的TeX讨论分区。 +A:确实\LaTeX{}在国内普及度不高,学校对本科生的论文很少要求到\TeX{}可以达到的高度。但是研究生和博士生论文一般都需要用\LaTeX{} 排版。全世界著名大学都要求用\LaTeX{} 排版毕业论文。国内大部分的重点大学也都有\LaTeX{} 学位论文模板(\href{http://zzg34b.w3.c361.com/templet/graduateThesis.htm}{点击查看列表})。比如清华大学的校内论坛还有专门的TeX 讨论分区。 Q:使用本模板比使用Word好在哪? A: \begin{enumerate} \item 不用设置任何字号、字体、行距、页眉、页脚、页边距、目录,使用者根本就不需要知道这些命令。 -\item \TeX{}诞生的最初目的之一就是排版数学公式,\TeX{}排版出的数学公式比Word在细节上要好太多了。全世界所有的数学期刊包括中国的数学期刊,都(只)接受\LaTeX{}源文件。 -\item 文章中的所有序号,第X章、第X节、图X-X、表X-X都是自动生成的,绝不会出错!如果要引用某个图,只需要给图起一个别名,引用这个别名即可,TeX会自动将它变成正确的序号。 +\item \TeX{}诞生的最初目的之一就是排版数学公式,\TeX{}排版出的数学公式比Word在细节上要好太多了。全世界所有的数学期刊包括中国的数学期刊,都(只)接受\LaTeX{} 源文件。 +\item 文章中的所有序号,第X章、第X节、图X-X、表X-X都是自动生成的,绝不会出错!如果要引用某个图,只需要给图起一个别名,引用这个别名即可,TeX 会自动将它变成正确的序号。 \item 全自动的行距、字距微调,确保不该换行的地方不换行(比如参考文献的引用角标不会到下一行开头去),不该换页的地方不换页(比如图和图题之间),能放下的图片不会因为一点点距离不够就放到下一页。 \item 参考文献的格式全自动处理成模板设置好的格式,绝不会出错!参考文献的输入内容大多学术网站都查询后可导出,比如Google学术搜索。 \item 生成的PDF文件可全文查找,所有的引用都自动生成超链接。 @@ -92,7 +114,7 @@ A: Q:\LaTeX{}有什么缺点? -A:编写过程中不能像Word一样所见即所得,\LaTeX{}是一种所思即所得的排版系统。\LaTeX{}需要在编译时才能确定文章中的引用序号和各种图片表格的位置,所以虽然不能边写边看结果,但是得到的结果质量比Word高。 +A:编写过程中不能像Word一样所见即所得,\LaTeX{}是一种所思即所得的排版系统。\LaTeX{}需要在编译时才能确定文章中的引用序号和各种图片表格的位置,所以虽然不能边写边看结果,但是得到的结果质量比Word 高。 Q:多久能学会使用\LaTeX{}? @@ -109,7 +131,7 @@ A:使用本模板写作毕业论文,使用者是作者的角色,并不需 其余内容见后文介绍。 \subsection{面向\LaTeX{}程序员的介绍} -许多\LaTeX{}用户并没有区分出\LaTeX{}和\TeX{}的重要区别:\TeX{}是内容和排版混在一起的,而\LaTeX{}是将内容和排版分开的。如果没有注意到这个区别,使用\LaTeX{}只是比\TeX{}多了些高级命令而已。 +许多\LaTeX{}用户并没有区分出\LaTeX{}和\TeX{}的重要区别:\TeX{}是内容和排版混在一起的,而\LaTeX{}是将内容和排版分开的。如果没有注意到这个区别,使用\LaTeX{}只是比\TeX{} 多了些高级命令而已。 本模板直接将所有排版内容都写在了文类中,并包装了一些作者命令。希望今后的维护者能够注意到这个特点,不要破坏它。国内许多其他高校的\LaTeX{}模板大多没有采用文类,许多设置的方式也不是最好的。所以借鉴时需要谨慎。 @@ -117,29 +139,38 @@ A:使用本模板写作毕业论文,使用者是作者的角色,并不需 \section{安装$\mathbb{C}$\kern-.05em\TeX{}套装} $\mathbb{C}$\kern-.05em\TeX{}是Windows系统下面向中文优化的一套\TeX{}工具的集合,包括编译器、编辑器、阅读器等一系列工具。安装后即可立刻使用。 -从网页\url{http://www.ctex.org/CTeXDownload}下载$\mathbb{C}$\kern-.05em\TeX{}(当前版本2.9.2.164,大小203M) 。可以在网页上看到这个203M的版本不包含完整的宏包(插件),所以安装这个版本在第一次使用时需要联网才能正常使用。也可以直接下载1.31G的完整版。安装完成后,前者比后者会节约大概2GB的磁盘空间。 +从网页\url{http://www.ctex.org/CTeXDownload}下载$\mathbb{C}$\kern-.05em\TeX{}(当前版本2.9.2.164,大小203M) 。 可以在网页上看到这个203M的版本不包含完整的宏包(插件),所以安装这个版本在第一次使用时需要联网才能正常使用。也可以直接下载1.31G的完整版(不推荐)。安装完成后,前者比后者会节约大概2GB的磁盘空间。 -安装时建议不要改变除安装路径以外的其他选项,即完整安装。由于安装包中包含非常多文件,所以某些笔记本硬盘可能会安装的比较慢。这是正常现象。安装完成后扩展名为tex 的文件应该会被自动关联。双击thesis.tex应该会自动用WinEdt打开。 +安装时建议不要改变除安装路径以外的其他选项,即完整安装。由于安装包中包含非常多文件,所以某些笔记本硬盘可能会安装的比较慢。这是正常现象。安装完成后扩展名为tex 的文件应该会被自动关联。双击thesis.tex应该会自动用WinEdt 打开。 \subsection{安装模板} -(如果从github下载本模板,并保持uestcthesis.cls 和 uestcthesis.bst两个文件在工作目录中,就不需要再安装模板了。) +\subsubsection{从GitHub上下载模板} +推荐从GitHub上的本项目主页(\url{https://github.com/shifujun/UESTCthesis})中下载本模板。页面上有一个zip按钮,可以无需安装git程序下载最新的模板。解压开这个zip,可以得到本说明文档和一个example目录。example目录既是本说明文档的源文件也是模板。example相当于一个人的论文撰写工作目录。关于它的结构,见下文的\ref{templatestructure}节。 +\subsubsection{从CTeX(MiKTeX)中安装模板(不推荐)} +此安装模板的方法可以将模板安装在CTeX宏包库中,这样在任何位置都可以使用模板。不过我们撰写论文一般只撰写一份,所以这样做好处不是很大。而且这样的安装方式并不总能获得最新的模板。 -运行开始菜单 $\longrightarrow$ CTeX $\longrightarrow$ MiKTeX $\longrightarrow$ Maintenance (Admin) $\longrightarrow$ Package Manager (Admin)。 这个程序是管理CTeX系统中的宏包用的。点击菜单栏中的Repository $\longrightarrow$ Change Package Repository。选择第一项“Package shall be installed from the Internet”,点击下一步,选择服务器。在学校使用可以选择China 的mirrors.ustc.edu.cn。这是中科大的源,同在教育网中,速度会比较快。然后点完成。之后程序应该会立刻开始同步数据。 +运行开始菜单 $\longrightarrow$ CTeX $\longrightarrow$ MiKTeX $\longrightarrow$ Maintenance (Admin) $\longrightarrow$ Package Manager (Admin)。 这个程序是管理CTeX 系统中的宏包用的。点击菜单栏中的Repository $\longrightarrow$ Change Package Repository。 选择第一项“Package shall be installed from the Internet”,点击下一步,选择服务器。在学校使用可以选择China 的mirrors.ustc.edu.cn。这是中科大的源,同在教育网中,速度会比较快。然后点完成。之后程序应该会立刻开始同步数据。 同步完成后,在工具栏右侧的Name:处填写uestcthesis,然后回车。搜索出来的就是本模板。右键点击本模板的条目,选择Install。完成后点Close关闭。 安装完成后运行开始菜单 $\longrightarrow$ CTeX $\longrightarrow$ MiKTeX $\longrightarrow$ Maintenance (Admin) $\longrightarrow$ Settings (Admin)。依次点击按钮“Refresh FNDB” 和“Update Formats”,然后确定。 +\subsection{更新模板} +在正式打印论文之前一定要访问项目主页检查模板是否有更新。一般来说每次更新都会修正bug,所以推荐尽早更新模板。更新模板时无需改动已撰写的论文内容。只需替换模板的两个排版设置文件uestcthesis.cls和uestcthesis.bst。这两个文件一般在工作目录中,也可能由CTeX安装在系统中。如果从GitHub上下载的模板,指的就是example目录中的这两个文件。从GitHub上下载新的模板,用其中的cls和bst文件替换现有的文件即可。 + +如果是用CTeX或MikTeX安装的模板,请用Update程序更新模板。但不一定能获得最新的模板,因为模板首先在GitHub上更新。 \subsection{测试编译} 用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 编辑窗口。 -通过将此文件设置为主文件之后,以后只要thesis.tex在WinEdt中打开了,即使当前编辑的文件不是thesis.tex,编译时也会编译thesis.tex文件。这样可以避免每次都切换回thesis.tex编辑窗口。 +如果安装的是Basic版的$\mathbb{C}$\kern-.05em\TeX{}套装,则第一次编译时会自动联网下载缺少的宏包,所以会比较慢。编译完之后会自动弹出编译好的pdf 论文。 -如果安装的是Basic版的$\mathbb{C}$\kern-.05em\TeX{}套装,则第一次编译时会自动联网下载缺少的宏包,所以会比较慢。编译完之后会自动弹出编译好的pdf论文。 +如果安装的是Full版的$\mathbb{C}$\kern-.05em\TeX{}套装,当前版本应该没有问题。但也应该联网更新宏包。选择菜单TeX,MikTeX,MikTeX Update Wizard。 然后选择“I want to get updated packages from a remote package repository”,“Let me choose a remote package repository”。 同样可以选择中科大的源。 +\section{模板结构}\label{templatestructure} +从GitHub上下载的zip解压后,只有example目录是一份模板。source目录是模板的源代码。example就相当于一份论文,也叫工作目录。你可以重命名这个目录。 -如果安装的是Full版的$\mathbb{C}$\kern-.05em\TeX{}套装,当前版本应该没有问题。但也应该联网更新宏包。选择菜单TeX,MikTeX,MikTeX Update Wizard。然后选择“I want to get updated packages from a remote package repository”,“Let me choose a remote package repository”。同样可以选择中科大的源。 -\section{模板结构} -下载下来的模板解压缩后应放在一个单独的目录(工作目录)中,例如UESTCthesis。其中应包含3个目录和3个文件,见表~\ref{structtab}。在Github下载的压缩包中编译和清理批处理脚本压缩在zip包中了,请根据使用的操作系统选择zip解压到工作目录中。\\ +工作目录中应包含3个目录和3个文件,见表~\ref{structtab}。表中说明为Windows环境下的情况。Linux和Mac请将bat文件换为sh文件即可。example目录中还有两个zip文件:windows下编译脚本.zip和linux,mac下编译脚本.zip。选择其中一个解压到工作目录中。 \threelinetable[htbp]{structtab}{\textwidth}{lcX}{模板结构} {名称&目录/文件&说明\\ }{ @@ -159,12 +190,12 @@ clean.bat &清理批处理 &双击可删除目录中全部编译过程生成 然后打开contents目录中的titlepage.tex。填写其中的信息。本科生注意要删除其中后一部分的信息,否则编译会出错。 \subsection{编写正文} \subsubsection{新建一章} -论文正文的每一章都是一个单独的tex文件,存放于chapters目录中。由于本模板采用UTF-8编码,所以不能用Windows记事本新建的UTF-8文本文件创建tex文件。因为Windows的UTF-8格式文件头和我们用的不一样。所以为了方便起见,chapters目录下有一个DuplicateMe.tex文件,它是一个写好文件头的空文件。新建一章时只需要将它复制一份,改一个新的文件名即可。文件名最好可以代表这一章的内容。 +论文正文的每一章都是一个单独的tex文件,存放于chapters目录中。由于本模板采用UTF-8 编码,所以不能用Windows 记事本新建的UTF-8文本文件创建tex 文件。因为Windows的UTF-8 格式文件头和我们用的不一样。所以为了方便起见,chapters 目录下有一个DuplicateMe.tex文件,它是一个写好文件头的空文件。新建一章时只需要将它复制一份,改一个新的文件名即可。文件名最好可以代表这一章的内容。 -chapters目录中的文件并不会都出现在最终的论文中,比如DuplicateMe.tex放在chapters中就不会有影响。将一章加入到论文中,需要在thesis.tex中加入\\ +chapters目录中的文件并不会都出现在最终的论文中,比如DuplicateMe.tex放在chapters 中就不会有影响。将一章加入到论文中,需要在thesis.tex中加入\\ \verb|\include{chapters/DuplicateMe}|这样的语句。\verb|\include{}|的顺序决定章的顺序。在写作中,可以将前面已经写好并检查排版没问题的章暂时从thesis.tex去掉,比如在\verb|\include{chapters/DuplicateMe}| 前面加一个\%,把这行注释掉。 -为了跨平台着想,本模板直接采用了UTF-8编码。每个文件的第一句话都是\verb|% !Mode:: "TeX:UTF-8"|,\%后面都是注释,不会出现在文章内容中。这句话是为了让一些文本编辑器自动选择UTF-8 编码打开文件。在Windows 中,文本文件的默认编码是ANSI,虽然可以另存为UTF-8,但是依然有区别。Windows记事本的UTF-8格式多了一个BOM文件头。 +为了跨平台着想,本模板直接采用了UTF-8编码。每个文件的第一句话都是\verb|% !Mode:: "TeX:UTF-8"|,\%后面都是注释,不会出现在文章内容中。这句话是为了让一些文本编辑器自动选择UTF-8 编码打开文件。在Windows 中,文本文件的默认编码是ANSI,虽然可以另存为UTF-8,但是依然有区别。Windows记事本的UTF-8 格式多了一个BOM文件头。 \subsubsection{章节命令} 本模板使用的全是标准的章节命令。有:\\ @@ -172,7 +203,7 @@ chapters目录中的文件并不会都出现在最终的论文中,比如Duplic 这四个级别的章节命令。如果不懂怎么用,可以打开tuition.tex看看。 \subsubsection{修改论文} -$\mathbb{C}$\kern-.05em\TeX{}套装自带的PDF阅读器SumatraPDF,也就是按F9编译后自动弹出的PDF阅读器,它可以自动在tex源文件中找到对应的段落。在SumatraPDF中双击指定段落,即可自动转到tex源文件中对应的位置。另外,可以用这个方法查看范例论文中的图片、表格、公式等源文件编写方法。 +$\mathbb{C}$\kern-.05em\TeX{}套装自带的PDF阅读器SumatraPDF,也就是按F9编译后自动弹出的PDF 阅读器,它可以自动在tex源文件中找到对应的段落。在SumatraPDF 中双击指定段落,即可自动转到tex源文件中对应的位置。另外,可以用这个方法查看范例论文中的图片、表格、公式等源文件编写方法。 \subsubsection{插入图片} 为了控制全文的图片插入形式一致,包括居中、前后间距、题注字体等,本模板定义了几个命令来插入图片: @@ -180,7 +211,7 @@ $\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|heigh=5cm| 等参数。最后一个参数既是文件名也是标签名(标签名用于引用图片,如图X-X这种),这个文件名不需要扩展名,有也没关系。图片必须放在pics目录下。同时建议不同扩展名的图片,也不要起一样的名字。图片格式支持png,pdf,jpg,jpeg。 还可以插入多幅图片组成的子图组,这些图共用一个图编号,各自又有自己的子编号。\\ \verb|\begin{pics}[htbp]{整体标题}{整体标签(英文数字组成)}|\\ @@ -191,7 +222,7 @@ $\mathbb{C}$\kern-.05em\TeX{}套装自带的PDF阅读器SumatraPDF,也就是 \addsubpic{郁金香}{width=0.4\textwidth}{Tulips} \addsubpic{企鹅}{width=0.4\textwidth}{Penguins} \end{pics} -这四行命令中,第一行和最后一行定义了一个子图环境,在其中可以插入若干条addsubpic命令。当一行图片排满后可以换行到下一行。注意图片间有间距,所以两张\verb|0.5\textwidth|宽的图片不能排在一行。\par +这四行命令中,第一行和最后一行定义了一个子图环境,在其中可以插入若干条addsubpic 命令。当一行图片排满后可以换行到下一行。注意图片间有间距,所以两张\verb|0.5\textwidth|宽的图片不能排在一行。\par \subsubsection{插入表格} \TeX 系统对表格的支持可能不够出色。这种说法主要是因为微软的Excel实在是太出色了,以至于人们经常用Excel 制作结构非常复杂看起来很好看的表格。其实大多数表格都可以简化。《中国高等学校自然科学学报编排规范(修订版)》中讲到:表应精心设计,为使表的结构简洁,建议采用三线表,必要时可加辅助线,如表~\ref{tab2}。 @@ -230,9 +261,9 @@ HomeRF&2.4GHz&FHSS\\ \item[a] 这里还可以添加脚注! } -仔细观察可以发现,threelinetable是一个有8个参数的命令。第一个参数和插入图片的一样,是一个可选参数,功能也一样。第一行的参数只有那个\{lcr\}要说一下,大括号里的字母可以是lcrX四个字母。每个字母代表表中一列的对齐方式。lcr分别是左对齐、居中、右对齐。X是将剩余空间都分配给这列,并且这列内容可以自动换行。X可以有多个,那样多列宽度平均分配。 +仔细观察可以发现,threelinetable是一个有8个参数的命令。第一个参数和插入图片的一样,是一个可选参数,功能也一样。第一行的参数只有那个\{lcr\} 要说一下,大括号里的字母可以是lcrX四个字母。每个字母代表表中一列的对齐方式。lcr分别是左对齐、居中、右对齐。X是将剩余空间都分配给这列,并且这列内容可以自动换行。X可以有多个,那样多列宽度平均分配。 -第二行和第三行的一对大括号中是表头内容。第三行和第七行的一对大括号中是表格的内容。这两部分的内容使用的都是TeX的标准表格格式:每个单元格间用\&符号分开,每行结束要用\verb|\\|表示换行。 +第二行和第三行的一对大括号中是表头内容。第三行和第七行的一对大括号中是表格的内容。这两部分的内容使用的都是TeX 的标准表格格式:每个单元格间用\&符号分开,每行结束要用\verb|\\|表示换行。 在802.11b旁边有一个\verb|\tnote{a}|命令,它是用来添加表格脚注的命令。a是手工输入的编号,因为你可以在表格中加许多个a。在最后三行的大括号中,要解释这个脚注a的内容,就像倒数第二行的内容那样。如果表格中没有脚注,将最后一个大括号内容空置即可。 @@ -324,12 +355,12 @@ HomeRF&2.4GHz&FHSS\\ } 这个超长三线表环境不支持添加脚注。这个表格不是浮动体,会排版到当前位置的。 -为了解决复杂的表格暂时不方便用\LaTeX 制作的问题。我定义了一个折中的命令,就是插入表格的图片,然后给图片加上表格的标题,如表~\ref{excel}。这个表格是用Excel绘制的,然后在Excel中选中这些单元格,然后右键点复制。Excel会把表格以图片的形式复制到剪贴板,所以可以打开Windows画图粘贴进去就行了。注意不要用QQ截图等工具截图,这样会截图到本不该显示的一些Excel辅助线。\\ +为了解决复杂的表格暂时不方便用\LaTeX 制作的问题。我定义了一个折中的命令,就是插入表格的图片,然后给图片加上表格的标题,如表~\ref{excel}。 这个表格是用Excel绘制的,然后在Excel中选中这些单元格,然后右键点复制。Excel 会把表格以图片的形式复制到剪贴板,所以可以打开Windows 画图粘贴进去就行了。注意不要用QQ截图等工具截图,这样会截图到本不该显示的一些Excel辅助线。\\ \verb|\pictable[htbp]{表标题}{width=\textwidth}{图片文件名}|\par 这个命令其实和插入图片的命令是相像的。\par \pictable[htbp]{用Excel制作的表格}{width=0.5\textwidth}{excel} \subsection{插入数学公式} -本模板对数学式没有做过多修改,仅添加了amsmath和kmath宏包,以提供更美观的数学字体。关于数学式的编写规则请阅读“TeXbook中文版.pdf”中的16至19章。这本书是\TeX{}的作者高德纳写的\TeX{}权威著作,网友xianxian翻译。 +本模板对数学式没有做过多修改,仅添加了amsmath和kmath宏包,以提供更美观的数学字体。关于数学式的编写规则请阅读“TeXbook中文版.pdf”中的16至19 章。这本书是\TeX{}的作者高德纳写的\TeX{} 权威著作,网友xianxian翻译。 行内公式:单个\$包围的行内公式。例如:\\ \verb|若$A\in F^{n\times n}$,且对任意非负整数$p$,有|\\ @@ -366,7 +397,7 @@ A^D=\lim_{\varepsilon\rightarrow 0}(A^{p+1}+\varepsilon I)^{-1}C^{(p)}_A \end{dingli} \subsection{交叉引用} -在正文的任意位置可以用命令\verb|\label{标签名}|\label{crossref}在此设置一个标签,然后在论文的其他位置可以使用命令\verb|\ref{标签名}|和\verb|\pageref{标签名}| 分别显示该标签位于的章节号和页码。例如:此例见第~\pageref{crossref}~页的第~\ref{crossref}~节。在输入\verb|\ref{标签名}|命令时,如果其前后有是中文,可以在其与中文之间加入一个\verb|~|符号,使其空一格更美观。 +在正文的任意位置可以用命令\verb|\label{标签名}|\label{crossref}在此设置一个标签,然后在论文的其他位置可以使用命令\verb|\ref{标签名}|和\verb|\pageref{标签名}| 分别显示该标签位于的章节号和页码。例如:此例见第~\pageref{crossref}~页的第~\ref{crossref}~节。在输入\verb|\ref{标签名}| 命令时,如果其前后有是中文,可以在其与中文之间加入一个\verb|~|符号,使其空一格更美观。 \subsection{枚举环境} 枚举环境就是如下的东西,使用方法见此处的源代码。可以引用其中编号,例如~\ref{testinenumerate}。 @@ -420,19 +451,19 @@ publications.bib &攻读期间的研究成果,本科生可忽略此文件 编辑contents/titlepage.tex即可输入封面的信息。 \subsection{摘要} 分别编辑两个摘要文件。其中:\verb|\begin{Cabstract}{}{}{}{}{}|是Cabstract摘要环境的起始语句,从它到它对应的\verb|\end{Cabstract}| 之间的部分就是这个环境的内容,也就是中文摘要的内容。 -\verb|\begin{Cabstract}|旁边有五个大括号,其中填写关键词。按照要求关键词应选择3--5个,所以至少填前三个。括号可以空着(其中不能有空格),但不能删除,必须有5对大括号。英文摘要也是一样的,只是环境名变成Eabstract了。 +\verb|\begin{Cabstract}|旁边有五个大括号,其中填写关键词。按照要求关键词应选择3--5 个,所以至少填前三个。括号可以空着(其中不能有空格),但不能删除,必须有5对大括号。英文摘要也是一样的,只是环境名变成Eabstract 了。 \subsection{参考文献} -用文本编辑器打开contents目录中的reference.bib文件(可用鼠标拖动文件到WinEdt窗口上打开)。模板带的reference.bib文件是一份示例文件,其中包含所有参考文献样式的示例各一条。可以按照其中的示例编写。其中多余3个作者的条目无需按照示例中的写法在最后手工写“等”或“et al”,参考文献模板的新版本已经解决了这一问题。 +用文本编辑器打开contents目录中的reference.bib文件(可用鼠标拖动文件到WinEdt窗口上打开)。模板带的reference.bib 文件是一份示例文件,其中包含所有参考文献样式的示例各一条。可以按照其中的示例编写。其中多余3 个作者的条目无需按照示例中的写法在最后手工写“等”或“et al”,参考文献模板的新版本已经解决了这一问题。 -还可以通过Google学术搜索\url{http://scholar.google.com/}直接导出bibtex格式。打开Google学术搜索,点击页面上的“设置”,将其中的参考书目管理软件设置为显示导入\BibTeX{} 的链接。之后搜索条目下方就会出现“导入\BibTeX{}”。将内容复制到reference.bib中即可。但是需要注意的是,Google等网站提供的内容有一些字段不完整的情况。使用时应对照原reference.bib 中相同的参考文献类型,核对是否缺少某一字段。中文的参考文献要令language = \{Chinese\}(非空即可)。 +还可以通过Google学术搜索\url{http://scholar.google.com/}直接导出bibtex格式。打开Google学术搜索,点击页面上的“设置”,将其中的参考书目管理软件设置为显示导入\BibTeX{} 的链接。之后搜索条目下方就会出现“导入\BibTeX{}”。 将内容复制到reference.bib中即可。但是需要注意的是,Google等网站提供的内容有一些字段不完整的情况。使用时应对照原reference.bib 中相同的参考文献类型,核对是否缺少某一字段。中文的参考文献要令language = \{Chinese\} (非空即可)。 注意bib文件中每一条目的第一行例如:\\ \verb|@ARTICLE{turongting2007,|\\ -注意后面的“,”不要删除。其中turongting2007是这条参考文献的标签,用于在文章中引用这个参考文献,以显示它的标号。标签必须是英文和数字组成的。Google学术搜索导出的条目标签是自动用作者名+年份+标题第一个词生成的,英文的当然没问题,但是中文文献的标签需要手工修改成一个英文和数字组成的标签。而ARTICLE是条目的类型。 +注意后面的“,”不要删除。其中turongting2007是这条参考文献的标签,用于在文章中引用这个参考文献,以显示它的标号。标签必须是英文和数字组成的。Google 学术搜索导出的条目标签是自动用作者名+年份+标题第一个词生成的,英文的当然没问题,但是中文文献的标签需要手工修改成一个英文和数字组成的标签。而ARTICLE是条目的类型。 -在正文中引用参考文献时有两个命令可以使用。\verb|\cite{标签名1,标签名2……}|和\verb|\citeup{标签名1,标签名2……}|分别是正常字号的中括号引用和上角标形式的中括号引用。两个命令的大括号中可以写多个标签名,用英文逗号分隔开来。\par +在正文中引用参考文献时有两个命令可以使用。\verb|\cite{标签名1,标签名2……}|和\verb|\citeup{标签名1,标签名2……}| 分别是正常字号的中括号引用和上角标形式的中括号引用。两个命令的大括号中可以写多个标签名,用英文逗号分隔开来。\par -本模板生成的参考文献格式符合GB/T7714-2005,但有一处错误需要手动修正。生成的英文析出文献的文献类型标识码之后会有一个句号(GB/T7714-2005规定没有)。这个错误比较不明显,出现的频率也不多。可以只在最后提交正式论文时再行修复。 +本模板生成的参考文献格式符合GB/T7714-2005,但有一处错误需要手动修正。生成的英文析出文献的文献类型标识码之后会有一个句号(GB/T7714-2005 规定没有)。这个错误比较不明显,出现的频率也不多。可以只在最后提交正式论文时再行修复。 关闭打开的thesis.pdf文件。双击执行“compile.bat”即可自动修复这个错误并重新编译出thesis.pdf 。 @@ -571,14 +602,14 @@ CAJ-CD 输出细节选项卡不用动。设置格式化选项卡如图~\ref{highlight2}。其中高亮主题有很多,但是我们的论文如果要黑白打印的话,最好还是选择这个print主题。 \pic[htbp]{格式化选项卡设置}{}{highlight2} -然后设置输出路径,可以设置到chapters目录中。然后选择输入文件,可以批量转换很多源文件。最后点转换文件即可。转换好的文件是以源文件名后再加.tex扩展名命名的。在论文中需要插入的位置写入:\\ +然后设置输出路径,可以设置到chapters目录中。然后选择输入文件(文件路径中不能包含中文),可以批量转换很多源文件。最后点转换文件即可。转换好的文件是以源文件名后再加.tex 扩展名命名的。在论文中需要插入的位置写入:\\ \verb|\input{chapters/highlight.sty}|\\ \verb|\input{chapters/Place_has_TrainDAO.java.tex}|\\ 其中第一行只需要在第一次插入时写一次即可,用于声明主题格式。第二行才是插入需要的源代码。示例结果如下: \input{chapters/highlight.sty} \input{chapters/Place_has_TrainDAO.java.tex} \section{Linux中编译} -本模板已经在Linux系统中测试过,可以正常编译。在TeXLive完全安装的基础上,所有宏包包括CJK都安装了,还需要另外安装宋体和黑体。本模板使用的宋体和黑体是Windows自带的,也是Word使用的。需要在Windows中C:\\Windows\\Fonts目录中复制simhei.ttf和simsun.ttc到Linux系统中,如果依然提示缺少某个字体就一样复制过去。最简单的方式是将两个字体文件放到UESTCthesis工作目录中。 +本模板已经在Linux系统中测试过,可以正常编译。在TeXLive完全安装的基础上,所有宏包包括CJK都安装了,还需要另外安装宋体和黑体。本模板使用的宋体和黑体是Windows自带的,也是Word使用的。需要在Windows中C:\\Windows\\Fonts 目录中复制simhei.ttf和simsun.ttc到Linux 系统中,如果依然提示缺少某个字体就一样复制过去。最简单的方式是将两个字体文件放到UESTCthesis工作目录中。 编译脚本已经写好在zip包中,解压到工作目录即可使用。 \section{使用\LaTeX{}时容易犯的错误} diff --git a/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/publications.bib b/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/publications.bib index 077eb878f61..8be8876bf8d 100644 --- a/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/publications.bib +++ b/Master/texmf-dist/doc/latex/uestcthesis/doc/contents/publications.bib @@ -71,3 +71,7 @@ title = "Bifunctional Silicon for Cylic Ether Opening Catalyzed by Nanoporous Go author = "H Li and Chen Liu and J Li and W He", journal = "Manuscript in preparation", } + +@onlyonte{onlynoteexample, +note = "XXX,XXX,XXX,XXX,王升.XXX的陶瓷研究.四川省科技进步三等奖,2003年12月", +} 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 3cf5a9575f0..c0702e70c13 100644 Binary files a/Master/texmf-dist/doc/latex/uestcthesis/doc/uestcthesis-doc.pdf and b/Master/texmf-dist/doc/latex/uestcthesis/doc/uestcthesis-doc.pdf differ diff --git a/Master/texmf-dist/doc/latex/uestcthesis/source/rvdtx.sty b/Master/texmf-dist/doc/latex/uestcthesis/source/rvdtx.sty new file mode 100644 index 00000000000..3f6d0ac09a9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/uestcthesis/source/rvdtx.sty @@ -0,0 +1,349 @@ +% +% +% File: rvdtx.sty +% +% Auxiliary package to format *.dtx documents. +% +% Copyright (c) 2008, CV Radhakrishnan , +% +% 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 749d5f0578e..c0218ebadb0 100644 --- a/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.dtx +++ b/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.dtx @@ -30,26 +30,16 @@ %\NeedsTeXFormat{LaTeX2e}[2011/06/27] %\ProvidesClass{uestcthesis} %<*class> - [2013/05/14 v0.4.2 UESTC thesis class] + [2013/05/23 v0.4.4 UESTC thesis class] % %<*driver> \documentclass{ltxdoc} \usepackage[hyperref,UTF8]{ctex} \usepackage{cmap} -\usepackage[pdftex,unicode, - bookmarksnumbered=true, - bookmarksopen=true, - colorlinks=false, - pdfborder={0 0 1}, - citecolor=blue, - linkcolor=red, - anchorcolor=green, - urlcolor=blue, - breaklinks=true - ]{hyperref} \EnableCrossrefs \CodelineIndex \RecordChanges +\usepackage{rvdtx} \begin{document} \DocInput{uestcthesis.dtx} \end{document} @@ -90,7 +80,6 @@ % \fi % \section{文类源代码} % \changes{v0.21}{2013/01/22}{将模板重构为DocStrip格式} -% % \subsection{中文支持} %继承ctexbook文类,并调用了如下功能的选项:\par %cs4size:使用小四字号为缺省字体大小。\par @@ -104,12 +93,12 @@ %fntef:为CJKfntef 宏包和CCTfntef 宏包提供统一接口。 %该选项将使得CJKfntef 宏包或者CCTfntef 宏包被自动调用。这两个宏包是下划线宏包。 % \begin{macrocode} -\LoadClass[cs4size,UTF8,fancyhdr,hyperref,fntef,openany]{ctexbook} +\LoadClass[cs4size,UTF8,fancyhdr,hyperref,fntef,openany]{ctexbook}[2011/03/11] % \end{macrocode} % %调用etoolbox宏包,为了使用其提供的|\ifblank|命令。 % \begin{macrocode} -\RequirePackage{etoolbox} +\RequirePackage{etoolbox}[2011/01/03] % \end{macrocode} % %调用ifthen宏包,为了使用其提供的|\ifthenelse|命令。 @@ -133,6 +122,9 @@ \newcommand{\thesisname@degree}{电子科技大学学士学位论文} %论文全名 + +\newcommand{\chapternumberformat@uestcthesis}{\arabic{chapter}} +%为了根据学位不同而设置不同的章标题序号方式而定义的命令。此处设置为本科论文章标题用阿拉伯数字序号。 } % \end{macrocode} % \end{macro} @@ -159,6 +151,8 @@ \newcommand{\publicationsname@english}{Research Results Obtained During the Study for Master Degree} \newcommand{\thesisname@english}{Master Thesis of University of Electronic Science and Technology of China} +\newcommand{\chapternumberformat@uestcthesis}{\chinese{chapter}} +%为了根据学位不同而设置不同的章标题序号方式而定义的命令。此处设置为本科论文章标题用汉字数字序号。 } % \end{macrocode} % \end{macro} @@ -185,20 +179,23 @@ \newcommand{\publicationsname@english}{Research Results Obtained During the Study for Doctor Degree} \newcommand{\thesisname@english}{Doctor Thesis of University of Electronic Science and Technology of China} +\newcommand{\chapternumberformat@uestcthesis}{\chinese{chapter}} +%为了根据学位不同而设置不同的章标题序号方式而定义的命令。此处设置为本科论文章标题用汉字数字序号。 } % \end{macrocode} % \end{macro} -%\changes{v0.4}{添加english选项以便将预定名修改为英文} -%一些名称的定义统一在这里,以便在英文选项中替换成英文。 +%\changes{v0.4}{2013/04/04}{添加english选项以便将预定名修改为英文} +%\changes{v0.4.4}{2013/05/25}{由于2013年本科管理规范中未将章标题改为和硕博一致的汉字序号,所以在此将本科论文中的章标题单独改为阿拉伯数字序号。} +%一些名称的定义统一在这里,以便在英文选项中替换成英文。同时还有设置章标题序号的显示方式。 % \begin{macrocode} \newcommand{\tocname@uestcthesis}{\zihao{5}目\enspace 录} \newcommand{\chaptername@uestcthesis}{ \CTEXsetup[ name={第,章}, - number={\chinese{chapter}} + number={\chapternumberformat@uestcthesis} ]{chapter} } \newcommand{\chaptermarkfix@uestcthesis}{ -\renewcommand{\chaptermark}[1]{\markboth{第\chinese{chapter}章~##1 }{}} +\renewcommand{\chaptermark}[1]{\markboth{第\chapternumberformat@uestcthesis章~##1 }{}} } \newcommand{\acknowledgementsname@uestcthesis}{致\enspace 谢} \newcommand{\glossaryname@uestcthesis}{主要符号表} @@ -259,9 +256,15 @@ % %按照学校要求需要设置默认行距为20磅。参数是倍数值,没有单位。这个值是通过 %|\showthe\baselineskip|命令查看当前的行距,然后计算得到的。 +%\changes{v0.4.4}{2013/05/25}{修正可能会出现的超大段距问题,这是由于默认设置要求每页底部文字对齐,所以拉抻所有弹性间距。现取消这个设置,并加大一个不太明显的弹性段距。} % \begin{macrocode} \linespread{1.391} % \end{macrocode} +%设置不要求每页底部文字对齐,并设置一个管理规范中没有的弹性额外段距。这使得换页位置会更美观,而段距不明显。段距为最大10磅,仅为行距一半,最小可以压缩1磅。 +% \begin{macrocode} +\parskip=0bp plus 10bp minus 1bp +\raggedbottom +% \end{macrocode} % \subsection{图表设置} %调用宏包: %graphicx插图宏包\\ @@ -387,9 +390,11 @@ % \end{macro} % \begin{macro}{\threelinetable} %|\threelinetable|命令生成一个独占一行、居中的三线表格。标题前后间距符合科大毕设标准。 +%\changes{v0.4.4}{2013/05/24}{修正表格字号为五号字。} % \begin{macrocode} \newcommand{\threelinetable}[8][htbp]{ \begin{table}[##1] +\zihao{5}%管理规范中要求表格中文字为五号字。 \centering \begin{threeparttable} \caption{##5} @@ -416,6 +421,7 @@ % \begin{macrocode} \newcommand{\longthreelinetable}[6]{ { +\zihao{5}%管理规范中要求表格中文字为五号字。 \centering \begin{longtable}{##4} \caption{##2}\label{##1}\\ @@ -756,9 +762,12 @@ % \end{macro} % \begin{macro}{\uestclogo} %插入学校LOGO的命令 +%\changes{v0.4.1}{2013/05/04}{将学校的LOGO集成在cls文件里。} % \begin{macrocode} -%\changes{v0.4.1}{将学校的LOGO集成在cls文件里。} \begin{filecontents*}{logo.tex} +% \end{macrocode} +% logo文件内容不显示在文档中。 +% \iffalse \documentclass[pstricks=true]{standalone} \usepackage{pstricks} @@ -3110,11 +3119,13 @@ \end{pspicture} \end{document} - +% \fi +%\changes{v0.4.2}{2013/05/14}{针对默认编译器不能使用write18命令的情况,在不能正常显示logo时显示一段说明文字。} +% \begin{macrocode} \end{filecontents*} + \immediate\write18{latex logo}% \immediate\write18{dvips logo}% -%\changes{v0.4.2}{针对默认编译器不能使用write18命令的情况,在不能正常显示logo时显示一段说明文字。} \IfFileExists{logo.dvi}{ \immediate\write18{ps2pdf logo.ps}% }{} @@ -3432,13 +3443,14 @@ % \end{macrocode} % \begin{macro}{\@ckeywords} %定义生成中文关键词的命令。如果关键词少于3个则用“必选关键词”五个字补上,以提示作者关键词不够。同时自动加入正确的中文逗号。 +%\changes{v0.4.4}{2013/05/23}{修正bug:\@ckeywords命令和\@ekeywords命令中的每行结束应加一个\%符号,否则直接换行相当于加入了一个不该有的空格。} % \begin{macrocode} \newcommand{\@ckeywords}{ -\ifthenelse{\equal{#1}{}}{必选关键词}{#1} -\ifthenelse{\equal{#2}{}}{必选关键词}{,#2} -\ifthenelse{\equal{#3}{}}{必选关键词}{,#3} -\ifthenelse{\equal{#4}{}}{}{,#4} -\ifthenelse{\equal{#5}{}}{}{,#5} +\ifthenelse{\equal{#1}{}}{必选关键词}{#1}% +\ifthenelse{\equal{#2}{}}{必选关键词}{,#2}% +\ifthenelse{\equal{#3}{}}{必选关键词}{,#3}% +\ifthenelse{\equal{#4}{}}{}{,#4}% +\ifthenelse{\equal{#5}{}}{}{,#5}% } \ifthenelse{\equal{#5}{}}{ \ifthenelse{\equal{#4}{}}{ @@ -3469,11 +3481,11 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字 %定义生成英文关键词的命令。如果关键词少于3个则用“必选关键词”五个字补上,以提示作者关键词不够。同时自动加入正确的英文逗号。 % \begin{macrocode} \newcommand{\@ekeywords}{ -\ifthenelse{\equal{#1}{}}{必选关键词}{#1} -\ifthenelse{\equal{#2}{}}{必选关键词}{,#2} -\ifthenelse{\equal{#3}{}}{必选关键词}{,#3} -\ifthenelse{\equal{#4}{}}{}{,#4} -\ifthenelse{\equal{#5}{}}{}{,#5} +\ifthenelse{\equal{#1}{}}{必选关键词}{#1}% +\ifthenelse{\equal{#2}{}}{必选关键词}{, #2}% +\ifthenelse{\equal{#3}{}}{必选关键词}{, #3}% +\ifthenelse{\equal{#4}{}}{}{, #4}% +\ifthenelse{\equal{#5}{}}{}{, #5}% } % \end{macrocode} % \end{macro} @@ -3513,10 +3525,17 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字 % \end{macrocode} % %设置四级标题在目录中的左缩进分别为0、2、4、6个英文字符宽。序号到题目间隔1个英文字符宽。 +%\changes{v0.4.3}{2013/05/20}{由于我的疏忽,本来应将本科规范改为和硕博一致分别缩进0,2,4,6个全角字符,但2013年的规范中写成了半角字符。这里只好先针对本科论文修改过来。} % \begin{macrocode} +\ifdefstring{\degree@uestcthesis}{bachelor}{ +\renewcommand*\l@section{\@dottedtocline{1}{1em}{1em}} +\renewcommand*\l@subsection{\@dottedtocline{2}{2em}{1em}} +\renewcommand*\l@subsubsection{\@dottedtocline{3}{3em}{1em}} +}{ \renewcommand*\l@section{\@dottedtocline{1}{2em}{1em}} \renewcommand*\l@subsection{\@dottedtocline{2}{4em}{1em}} \renewcommand*\l@subsubsection{\@dottedtocline{3}{6em}{1em}} +} % \end{macrocode} % \subsection{数学式设置} %amsmath和kmath宏包提供更美观的数学字体。 @@ -3530,8 +3549,8 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字 % \end{macrocode} % %调用定理设置宏包 -%\changes{v0.33}{设置定理环境的缩进} -%\changes{v0.4}{添加设置各定理环境结束符的语句,但暂时还设置为空。} +%\changes{v0.33}{2013/02/25}{设置定理环境的缩进} +%\changes{v0.4}{2013/04/04}{添加设置各定理环境结束符的语句,但暂时还设置为空。} % \begin{macrocode} \RequirePackage[amsmath,thmmarks]{ntheorem} \theorembodyfont{\normalfont}%字体 @@ -3626,8 +3645,17 @@ pdfpagelayout={TwoPageRight} % %枚举环境宏包,去除所有垂直附加距离。 % \changes{v0.31}{2013/02/21}{去除枚举环境的所有垂直附加距离。} +% \changes{v0.4.3}{2013/05/20}{修复bug:枚举环境与前后文存在额外间距} % \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 @@ -3671,23 +3699,30 @@ pdfpagelayout={TwoPageRight} % \end{macrocode} % \end{macro} % \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}{本科论文中将外文资料和翻译加入目录中。} % \begin{macrocode} % !Mode:: "TeX:UTF-8" \AtBeginDocument{%插入到论文内容的最前面。 \begin{CJK}{UTF8}{rm}%中文支持环境,此处内容不受ctexbook文类影响,所以必须手动加这个环境。 \maketitle%生成并插入封面 +\clearpage{\pagestyle{empty}\cleardoublepage} \Cabstractmatter%设置中文摘要版式 \include{contents/Cabstract}%插入中文摘要 +\clearpage{\pagestyle{empty}\cleardoublepage} \Eabstractmatter%设置英文摘要版式 \include{contents/Eabstract}%插入英文摘要 +\clearpage{\pagestyle{empty}\cleardoublepage} \tocmatter%目录版式 \tableofcontents%插入目录 -%\changes{v0.4.2}{修复只有单页目录时页眉显示主要符号表的问题。} -\newpage%目录之后另起一页,这样无论目录后有没有主要符号表,主要符号表的页眉设置命令都会应用到下一页。 +\clearpage{\pagestyle{empty}\cleardoublepage}%目录之后另起一页,这样无论目录后有没有主要符号表,主要符号表的页眉设置命令都会应用到下一页。 %此处遇到问题:目录之后到正文之前如果加入章节,这些章节的版式不受传统版式设置控制。估计是BUG。此处耗时6小时20分钟,终于找到了修正方案。 \glossarymatterfancy%设置主要符号表版式。 \printglossary%插入主要符号表 +\clearpage{\pagestyle{empty}\cleardoublepage} \mainmatter%修正主要符号表版式,这里是受目录版式的影响,必须在此加入\mainmatter。 \end{CJK} \mainmatter%正文区版式 @@ -3695,15 +3730,14 @@ pdfpagelayout={TwoPageRight} \newcmds@uestcthesis%自定义图表命令,这些命令必须在document环境里声明才能在正文中使用,所以只能放在这里了。 \makeatother } - -\AtEndDocument{%插入到论文内容最后面。 -\begin{CJK}{UTF8}{rm} +\newcommand{\insertacknowledgement}{ \chapter*{\acknowledgementsname@uestcthesis}%用带星号的章命令插入不带章号的致谢。 \markboth{\acknowledgementsname@uestcthesis}{}%页眉设置 \phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。 \addcontentsline{toc}{chapter}{\acknowledgementsname@uestcthesis}%将致谢编入目录 \input{contents/acknowledgements.tex}%插入致谢内容 -\newpage +} +\newcommand{\insertreference}{ \bibliographystyle{uestcthesis} %载入参考文献样式文件uestcthesis.bst。此参考文献样式只在GBT7714-2005NLang.bst的基础上改变了参考文献条目的行距,以符合电子科技大学的要求。修改处位于uestcthesis.bst文件的3542行。另外将英文作者名由全大写改为首字母大写。 \phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。 @@ -3712,6 +3746,19 @@ pdfpagelayout={TwoPageRight} {\zihao{5} \bibliography{contents/reference}%插入参考文献 } +} +\AtEndDocument{%插入到论文内容最后面。 +\begin{CJK}{UTF8}{rm} +\ifdefstring{\degree@uestcthesis}{bachelor}{%检测是否为本科论文,调换参考文献与致谢的顺序 +\insertreference +\newpage +\insertacknowledgement +}{ +\insertacknowledgement +\newpage +\insertreference +} + \appendix%附录版式 \renewcommand{\chaptermark}[1]{\markboth{\CTEX@appendixname\Alph{chapter}~ #1 }{}}%附录页眉设置 \input{contents/appendix.tex}%插入附录内容 @@ -3719,7 +3766,13 @@ pdfpagelayout={TwoPageRight} \ifdefstring{\degree@uestcthesis}{bachelor}{ \renewcommand{\chaptermark}[1]{\markboth{外文资料原文}{}} \def\leftmark{外文资料原文} +\newpage +\phantomsection +\addcontentsline{toc}{chapter}{外文资料原文} \include{contents/original} +\newpage +\phantomsection +\addcontentsline{toc}{chapter}{外文资料译文} \renewcommand{\chaptermark}[1]{\markboth{外文资料译文}{}} \def\leftmark{外文资料译文} \include{contents/translation} @@ -3739,14 +3792,16 @@ pdfpagelayout={TwoPageRight} % \iffalse %<*bst> % \fi -% \section{参考文献样式源代码} +% \section{参考文献样式} % \changes{v0.3}{2013/2/12}{修复了参考文献模板bst文件中原有的问题, % 不再需要其他工具替换bbl中的错误。即参考文献中的“|\\.|”修正为“|\\|”。} -% \begin{macrocode} - %本文件基于吴凯制作的GBT7714-2005NLang.bst(1 Beta 2 测试版2012年9月20日)修改而成。 - %根据GBT7714-2005NLang.bst中copyright的要求,将文件名修改成uestcthesis.bst。 - %对吴凯的杰出工作表示感谢! - +%\changes{v0.4.4}{2013/05/23}{增加一个参考文献类型,主要用于在攻读期间取得成果 +% 内录入获奖等不符合参考文献规范的内容。} +%%本文件基于吴凯制作的GBT7714-2005NLang.bst(1 Beta 2 测试版2012年9月20日)修改而成。 +%%根据GBT7714-2005NLang.bst中copyright的要求,将文件名修改成uestcthesis.bst。 +%%对吴凯的杰出工作表示感谢! +%bst文件内容不在文档中显示。 +% \iffalse ENTRY { address author @@ -6583,6 +6638,21 @@ FUNCTION {unpublished} } if$ } +FUNCTION {onlynote} %定义note类型,将note项目单独原文输出,满足自定义任何条目的需求 +{ +newline$ + "\bibitem[" write$ + label write$ + "]{" write$ + cite$ write$ + "}" write$ + newline$ + "" + before.all 'output.state := + new.block + note output + fin.entry +} FUNCTION {default.type} { book } %wk 因为主要是基于book类型,因此将缺省类型由misc改为book @@ -6945,10 +7015,11 @@ FUNCTION {end.bib} } EXECUTE {end.bib} -% \end{macrocode} +% \fi % \iffalse % % \fi +% \section{更新日志} % \StopEventually{\PrintChanges} % \Finale % diff --git a/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins b/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins index 83f26ad5406..1fbf7fefbeb 100644 --- a/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins +++ b/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins @@ -1,72 +1,72 @@ -% !Mode:: "TeX:UTF-8:INS" - -%%% uestcthesis.ins -%%% Copyright 2012-2013 Shi Fujun -%% -%% 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 . -%% -%% This work consists of the files uestcthesis.dtx, uestcthesis.ins and -%% GBT7714-2005NLang-UESTC.bst. -%% and the derived file uestcthesis.cls. -%% 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 - - 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 . - - This work consists of the files uestcthesis.dtx, uestcthesis.ins - and the derived file uestcthesis.cls and uestcthesis.bst. - 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}}} - -\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 UESTC.png UESTC_LOGO.png *} -\Msg{* UESTC.png and UESTC_LOGO.png should be moved into the same*} -\Msg{* directory as the uestcthesis.cls. *} -\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 +%% +%% 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 . +%% +%% This work consists of the files uestcthesis.dtx, uestcthesis.ins and +%% GBT7714-2005NLang-UESTC.bst. +%% and the derived file uestcthesis.cls. +%% 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 + + 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 . + + This work consists of the files uestcthesis.dtx, uestcthesis.ins + and the derived file uestcthesis.cls and uestcthesis.bst. + 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}}} + +\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 UESTC.png UESTC_LOGO.png *} +\Msg{* UESTC.png and UESTC_LOGO.png should be moved into the same*} +\Msg{* directory as the uestcthesis.cls. *} +\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 new file mode 100644 index 00000000000..7cc294f445a Binary files /dev/null and b/Master/texmf-dist/doc/latex/uestcthesis/uestcthesis.pdf differ diff --git a/Master/texmf-dist/tex/latex/uestcthesis/uestcthesis.cls b/Master/texmf-dist/tex/latex/uestcthesis/uestcthesis.cls index b5144a4f4d0..dda965cf405 100644 --- a/Master/texmf-dist/tex/latex/uestcthesis/uestcthesis.cls +++ b/Master/texmf-dist/tex/latex/uestcthesis/uestcthesis.cls @@ -29,9 +29,9 @@ \NeedsTeXFormat{LaTeX2e}[2011/06/27] \ProvidesClass{uestcthesis} - [2013/05/14 v0.4.2 UESTC thesis class] -\LoadClass[cs4size,UTF8,fancyhdr,hyperref,fntef,openany]{ctexbook} -\RequirePackage{etoolbox} + [2013/05/23 v0.4.4 UESTC thesis class] +\LoadClass[cs4size,UTF8,fancyhdr,hyperref,fntef,openany]{ctexbook}[2011/03/11] +\RequirePackage{etoolbox}[2011/01/03] \RequirePackage{ifthen} \newcommand{\bachelor@uestcthesis}{ \newcommand{\degree@uestcthesis}{bachelor} @@ -41,6 +41,8 @@ \newcommand{\multibibflag@uestcthesis}{} \newcommand{\thesisname@degree}{电子科技大学学士学位论文} + +\newcommand{\chapternumberformat@uestcthesis}{\arabic{chapter}} } \newcommand{\master@uestcthesis}{ \newcommand{\degree@uestcthesis}{master} @@ -58,6 +60,7 @@ \newcommand{\publicationsname@english}{Research Results Obtained During the Study for Master Degree} \newcommand{\thesisname@english}{Master Thesis of University of Electronic Science and Technology of China} +\newcommand{\chapternumberformat@uestcthesis}{\chinese{chapter}} } \newcommand{\doctor@uestcthesis}{ \newcommand{\degree@uestcthesis}{doctor} @@ -75,15 +78,16 @@ \newcommand{\publicationsname@english}{Research Results Obtained During the Study for Doctor Degree} \newcommand{\thesisname@english}{Doctor Thesis of University of Electronic Science and Technology of China} +\newcommand{\chapternumberformat@uestcthesis}{\chinese{chapter}} } \newcommand{\tocname@uestcthesis}{\zihao{5}目\enspace 录} \newcommand{\chaptername@uestcthesis}{ \CTEXsetup[ name={第,章}, - number={\chinese{chapter}} + number={\chapternumberformat@uestcthesis} ]{chapter} } \newcommand{\chaptermarkfix@uestcthesis}{ -\renewcommand{\chaptermark}[1]{\markboth{第\chinese{chapter}章~##1 }{}} +\renewcommand{\chaptermark}[1]{\markboth{第\chapternumberformat@uestcthesis章~##1 }{}} } \newcommand{\acknowledgementsname@uestcthesis}{致\enspace 谢} \newcommand{\glossaryname@uestcthesis}{主要符号表} @@ -120,6 +124,8 @@ \RequirePackage[a4paper,headheight=12.65pt,headsep=4mm,includeheadfoot,centering, top=2.75cm,left=3cm]{geometry} \linespread{1.391} +\parskip=0bp plus 10bp minus 1bp +\raggedbottom \RequirePackage{graphicx,calc,float,texnames} \RequirePackage[format=hang,labelsep=space]{caption} \intextsep=6bp @@ -158,6 +164,7 @@ } \newcommand{\threelinetable}[8][htbp]{ \begin{table}[##1] +\zihao{5}%管理规范中要求表格中文字为五号字。 \centering \begin{threeparttable} \caption{##5} @@ -179,6 +186,7 @@ } \newcommand{\longthreelinetable}[6]{ { +\zihao{5}%管理规范中要求表格中文字为五号字。 \centering \begin{longtable}{##4} \caption{##2}\label{##1}\\ @@ -2689,8 +2697,8 @@ \end{pspicture} \end{document} - \end{filecontents*} + \immediate\write18{latex logo}% \immediate\write18{dvips logo}% \IfFileExists{logo.dvi}{ @@ -2959,11 +2967,11 @@ format={\heiti\zihao{-4}\flushleft}]{subsubsection} \newenvironment{Cabstract}[5]{ \newcommand{\@ckeywords}{ -\ifthenelse{\equal{#1}{}}{必选关键词}{#1} -\ifthenelse{\equal{#2}{}}{必选关键词}{,#2} -\ifthenelse{\equal{#3}{}}{必选关键词}{,#3} -\ifthenelse{\equal{#4}{}}{}{,#4} -\ifthenelse{\equal{#5}{}}{}{,#5} +\ifthenelse{\equal{#1}{}}{必选关键词}{#1}% +\ifthenelse{\equal{#2}{}}{必选关键词}{,#2}% +\ifthenelse{\equal{#3}{}}{必选关键词}{,#3}% +\ifthenelse{\equal{#4}{}}{}{,#4}% +\ifthenelse{\equal{#5}{}}{}{,#5}% } \ifthenelse{\equal{#5}{}}{ \ifthenelse{\equal{#4}{}}{ @@ -2982,11 +2990,11 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字 } \newenvironment{Eabstract}[5]{ \newcommand{\@ekeywords}{ -\ifthenelse{\equal{#1}{}}{必选关键词}{#1} -\ifthenelse{\equal{#2}{}}{必选关键词}{,#2} -\ifthenelse{\equal{#3}{}}{必选关键词}{,#3} -\ifthenelse{\equal{#4}{}}{}{,#4} -\ifthenelse{\equal{#5}{}}{}{,#5} +\ifthenelse{\equal{#1}{}}{必选关键词}{#1}% +\ifthenelse{\equal{#2}{}}{必选关键词}{, #2}% +\ifthenelse{\equal{#3}{}}{必选关键词}{, #3}% +\ifthenelse{\equal{#4}{}}{}{, #4}% +\ifthenelse{\equal{#5}{}}{}{, #5}% } \Eabstractmatter%设置英文摘要版式 \chapter*{ABSTRACT}%插入不带章号的ABSTRACT @@ -3003,9 +3011,15 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字 \leftskip \@tempdima \null \nobreak \hskip -\leftskip {\heiti #1}\nobreak \leaders \hbox {$\m@th \mkern \@dotsep mu\hbox {.}\mkern \@dotsep mu$}\hfill \nobreak \hb@xt@ \@pnumwidth {\hfil \normalfont \normalcolor #2}\par }\fi} +\ifdefstring{\degree@uestcthesis}{bachelor}{ +\renewcommand*\l@section{\@dottedtocline{1}{1em}{1em}} +\renewcommand*\l@subsection{\@dottedtocline{2}{2em}{1em}} +\renewcommand*\l@subsubsection{\@dottedtocline{3}{3em}{1em}} +}{ \renewcommand*\l@section{\@dottedtocline{1}{2em}{1em}} \renewcommand*\l@subsection{\@dottedtocline{2}{4em}{1em}} \renewcommand*\l@subsubsection{\@dottedtocline{3}{6em}{1em}} +} \RequirePackage{amsmath,kmath} \renewcommand{\theequation}{\arabic{chapter}\textendash\arabic{equation}} \RequirePackage[amsmath,thmmarks]{ntheorem} @@ -3067,6 +3081,13 @@ pdfpagelayout={TwoPageRight} } \RequirePackage[small]{subfigure} \RequirePackage{enumerate} +\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 @@ -3094,15 +3115,19 @@ pdfpagelayout={TwoPageRight} \AtBeginDocument{%插入到论文内容的最前面。 \begin{CJK}{UTF8}{rm}%中文支持环境,此处内容不受ctexbook文类影响,所以必须手动加这个环境。 \maketitle%生成并插入封面 +\clearpage{\pagestyle{empty}\cleardoublepage} \Cabstractmatter%设置中文摘要版式 \include{contents/Cabstract}%插入中文摘要 +\clearpage{\pagestyle{empty}\cleardoublepage} \Eabstractmatter%设置英文摘要版式 \include{contents/Eabstract}%插入英文摘要 +\clearpage{\pagestyle{empty}\cleardoublepage} \tocmatter%目录版式 \tableofcontents%插入目录 -\newpage%目录之后另起一页,这样无论目录后有没有主要符号表,主要符号表的页眉设置命令都会应用到下一页。 +\clearpage{\pagestyle{empty}\cleardoublepage}%目录之后另起一页,这样无论目录后有没有主要符号表,主要符号表的页眉设置命令都会应用到下一页。 \glossarymatterfancy%设置主要符号表版式。 \printglossary%插入主要符号表 +\clearpage{\pagestyle{empty}\cleardoublepage} \mainmatter%修正主要符号表版式,这里是受目录版式的影响,必须在此加入\mainmatter。 \end{CJK} \mainmatter%正文区版式 @@ -3110,15 +3135,14 @@ pdfpagelayout={TwoPageRight} \newcmds@uestcthesis%自定义图表命令,这些命令必须在document环境里声明才能在正文中使用,所以只能放在这里了。 \makeatother } - -\AtEndDocument{%插入到论文内容最后面。 -\begin{CJK}{UTF8}{rm} +\newcommand{\insertacknowledgement}{ \chapter*{\acknowledgementsname@uestcthesis}%用带星号的章命令插入不带章号的致谢。 \markboth{\acknowledgementsname@uestcthesis}{}%页眉设置 \phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。 \addcontentsline{toc}{chapter}{\acknowledgementsname@uestcthesis}%将致谢编入目录 \input{contents/acknowledgements.tex}%插入致谢内容 -\newpage +} +\newcommand{\insertreference}{ \bibliographystyle{uestcthesis} \phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。 \addcontentsline{toc}{chapter}{\CTEX@bibname}%将参考文献编入目录 @@ -3126,6 +3150,19 @@ pdfpagelayout={TwoPageRight} {\zihao{5} \bibliography{contents/reference}%插入参考文献 } +} +\AtEndDocument{%插入到论文内容最后面。 +\begin{CJK}{UTF8}{rm} +\ifdefstring{\degree@uestcthesis}{bachelor}{%检测是否为本科论文,调换参考文献与致谢的顺序 +\insertreference +\newpage +\insertacknowledgement +}{ +\insertacknowledgement +\newpage +\insertreference +} + \appendix%附录版式 \renewcommand{\chaptermark}[1]{\markboth{\CTEX@appendixname\Alph{chapter}~ #1 }{}}%附录页眉设置 \input{contents/appendix.tex}%插入附录内容 @@ -3133,7 +3170,13 @@ pdfpagelayout={TwoPageRight} \ifdefstring{\degree@uestcthesis}{bachelor}{ \renewcommand{\chaptermark}[1]{\markboth{外文资料原文}{}} \def\leftmark{外文资料原文} +\newpage +\phantomsection +\addcontentsline{toc}{chapter}{外文资料原文} \include{contents/original} +\newpage +\phantomsection +\addcontentsline{toc}{chapter}{外文资料译文} \renewcommand{\chaptermark}[1]{\markboth{外文资料译文}{}} \def\leftmark{外文资料译文} \include{contents/translation} -- cgit v1.2.3