texlive[43609] Master/texmf-dist: thuthesis (26mar17)

commits+karl at tug.org commits+karl at tug.org
Sun Mar 26 23:47:40 CEST 2017


Revision: 43609
          http://tug.org/svn/texlive?view=revision&revision=43609
Author:   karl
Date:     2017-03-26 23:47:40 +0200 (Sun, 26 Mar 2017)
Log Message:
-----------
thuthesis (26mar17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/thuthesis/Makefile
    trunk/Master/texmf-dist/doc/latex/thuthesis/README.md
    trunk/Master/texmf-dist/doc/latex/thuthesis/data/ack.tex
    trunk/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty
    trunk/Master/texmf-dist/doc/latex/thuthesis/main.pdf
    trunk/Master/texmf-dist/doc/latex/thuthesis/main.tex
    trunk/Master/texmf-dist/doc/latex/thuthesis/shuji.pdf
    trunk/Master/texmf-dist/doc/latex/thuthesis/thuthesis.pdf
    trunk/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
    trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg
    trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/thuthesis/figures/scan-record.pdf

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/Makefile
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thuthesis/Makefile	2017-03-26 21:47:25 UTC (rev 43608)
+++ trunk/Master/texmf-dist/doc/latex/thuthesis/Makefile	2017-03-26 21:47:40 UTC (rev 43609)
@@ -106,5 +106,5 @@
 	@if [ -z "$(version)" ]; then \
 		echo "Usage: make dist version=[x.y.z | ctan]"; \
 	else \
-		gulp build --version=$(version); \
+		npm run build -- --version=$(version); \
 	fi

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thuthesis/README.md	2017-03-26 21:47:25 UTC (rev 43608)
+++ trunk/Master/texmf-dist/doc/latex/thuthesis/README.md	2017-03-26 21:47:40 UTC (rev 43609)
@@ -7,7 +7,7 @@
 此宏包旨在建立一个简单易用的清华大学学位论文LaTeX模板,包括本科综合论文训练、硕士论文、博士论文、博士哲学论文以及博士后出站报告。现在支持本科、硕士、博士论文、博士后出站报告格式,对其它格式(还有么?)的支持会陆续加入。
 
 # 文档
-请下载模板,里面包括具体使用说明以及示例文档:
+请[下载](https://github.com/xueruini/thuthesis/releases)模板,里面包括具体使用说明以及示例文档:
 
 * 模板使用说明 (thuthesis.pdf)
 * 示例文档 (main.pdf)
@@ -22,13 +22,16 @@
 通过TeX发行版工具自动从[CTAN](http://www.ctan.org/pkg/thuthesis)更新。
 
 ## 手动更新
-从 [GitHub](https://github.com/xueruini/thuthesis)下载放入论文目录,执行命令:
+从 [GitHub](https://github.com/xueruini/thuthesis)下载放入论文目录,执行命令(Windows 用户在文件夹空白处按`Shift+鼠标右键`,点击“在此处打开命令行窗口”):
 
-    $ latex thuthesis.ins
+    latex thuthesis.ins
 
+即可得到 `thuthesis.cls` 和 `thuthesis.cfg` 等模板文件。
+
 # 提问
 按推荐顺序排序:
 
+* 先到 [FAQ](https://github.com/xueruini/thuthesis/wiki/FAQ) 看看常见问题
 * [Github Issues](http://github.com/xueruini/thuthesis/issues)
 * [TeX at newsmth](http://www.newsmth.net/nForum/#!board/TeX)
 * [ThuThesis at Google Groups](http://groups.google.com/group/thuthesis)

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/data/ack.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thuthesis/data/ack.tex	2017-03-26 21:47:25 UTC (rev 43608)
+++ trunk/Master/texmf-dist/doc/latex/thuthesis/data/ack.tex	2017-03-26 21:47:40 UTC (rev 43609)
@@ -1,5 +1,5 @@
 % 如果使用声明扫描页,将可选参数指定为扫描后的 PDF 文件名,例如:
-% \begin{ack}[scan-statement.pdf]
+% \begin{acknowledgement}[scan-statement.pdf]
 \begin{acknowledgement}
   衷心感谢导师 xxx 教授和物理系 xxx 副教授对本人的精心指导。他们的言传身教将使
   我终生受益。

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty	2017-03-26 21:47:25 UTC (rev 43608)
+++ trunk/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty	2017-03-26 21:47:40 UTC (rev 43609)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (C) 2005-2016 by Ruini Xue <xueruini at gmail.com>
+%% Copyright (C) 2005-2017 by Ruini Xue <xueruini at gmail.com>
 %% 
 %% This file may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3a
@@ -127,8 +127,8 @@
   \texttt{#2}\IfBooleanF#1{\thu at special@index{file}{#2}}}
 \newcommand{\myentry}[1]{%
   \marginpar{\raggedleft\color{purple}\bfseries\strut #1}}
-\newcommand{\note}[1]{{%
-  \color{magenta}{\bfseries 说明:}\emph{#1}}}
+\newcommand{\note}[2][Note]{{%
+  \color{magenta}{\bfseries #1}\emph{#2}}}
 
 \def\thuthesis{\textsc{Thu}\-\textsc{Thesis}}
 \endinput

Added: trunk/Master/texmf-dist/doc/latex/thuthesis/figures/scan-record.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/thuthesis/figures/scan-record.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thuthesis/figures/scan-record.pdf	2017-03-26 21:47:25 UTC (rev 43608)
+++ trunk/Master/texmf-dist/doc/latex/thuthesis/figures/scan-record.pdf	2017-03-26 21:47:40 UTC (rev 43609)

Property changes on: trunk/Master/texmf-dist/doc/latex/thuthesis/figures/scan-record.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/main.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/main.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thuthesis/main.tex	2017-03-26 21:47:25 UTC (rev 43608)
+++ trunk/Master/texmf-dist/doc/latex/thuthesis/main.tex	2017-03-26 21:47:40 UTC (rev 43609)
@@ -68,4 +68,8 @@
 
 %% 个人简历
 \include{data/resume}
+
+%% 本科生进行格式审查是需要下面这个表格,答辩可能不需要。选择性留下。
+% 综合论文训练记录表
+\includepdf[pages=-]{scan-record.pdf}
 \end{document}

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/shuji.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/thuthesis.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx	2017-03-26 21:47:25 UTC (rev 43608)
+++ trunk/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx	2017-03-26 21:47:40 UTC (rev 43609)
@@ -16,7 +16,7 @@
 %
 % \iffalse
 %<*driver>
-\ProvidesFile{thuthesis.dtx}[2016/03/20 5.3.1 Tsinghua University Thesis Template]
+\ProvidesFile{thuthesis.dtx}[2017/03/26 5.3.2 Tsinghua University Thesis Template]
 \documentclass{ltxdoc}
 \usepackage{dtx-style}
 
@@ -170,7 +170,7 @@
 % \begin{abstract}
 % \noindent
 % \begin{enumerate}
-% \item 本模板的发布遵守 \LaTeX{} Project Public License,使用前请认真阅读协议内
+% \item 本模板的发布遵守 \LaTeX\ Project Public License,使用前请认真阅读协议内
 %   容。
 % \item 本模板为作者根据清华大学教务处颁发的《综合论文训练写作指南》,清华大学研
 %   究生院颁发的《研究生学位论文写作指南》,清华大学《编写“清华大学博士后研究报
@@ -179,7 +179,7 @@
 %   权第三方模板为官方模板,所以此模板仅为写作指南的参考实现,不保证格式审查老师
 %   不提意见。任何由于使用本模板而引起的论文格式审查问题均与本模板作者无关。
 % \item 任何个人或组织以本模板为基础进行修改、扩展而生成的新的专用模板,请严格遵
-%   守 \LaTeX{} Project Public License 协议。由于违犯协议而引起的任何纠纷争端均与
+%   守 \LaTeX\ Project Public License 协议。由于违犯协议而引起的任何纠纷争端均与
 %   本模板作者无关。
 % \end{enumerate}
 % \end{abstract}
@@ -195,41 +195,36 @@
 % \clearpage
 %
 % \section{模板介绍}
-% \thuthesis\ (\textbf{T}sing\textbf{h}ua \textbf{U}niversity \LaTeX{}
+% \thuthesis\ (\textbf{T}sing\textbf{h}ua \textbf{U}niversity \LaTeX\
 % \textbf{Thesis} Template) 是为了帮助清华大学毕业生撰写毕业论文而编写
-% 的 \LaTeX{} 论文模板。
+% 的 \LaTeX\ 论文模板。
 %
 % 本文档将尽量完整的介绍模板的使用方法,如有不清楚之处可以参考示例文档或者根据
 % 第~\ref{sec:howtoask} 节说明提问,有兴趣者都可以参与完善此手册,也非常欢迎对代
 % 码的贡献。
 %
-% \note{模板的作用在于减少论文写作过程中格式调整的时间,前提是遵守模板的用法,否
-% 则即便用了 \thuthesis{} 也难以保证输出的论文符合学校规范。}
+% \note[注意:]{模板的作用在于减少论文写作过程中格式调整的时间。前提是遵守模板的
+% 用法,否则即便用了 \thuthesis\ 也难以保证输出的论文符合学校规范。}
 %
 %
 % \section{安装}
 % \label{sec:installation}
 %
-% \subsection{下载}
-% \thuthesis{} 已经包含在主要的 \TeX{} 发行版中,一般不需要安装,可以利用发行版自
+% \thuthesis\ 已经包含在主要的 \TeX\ 发行版中,一般不需要安装,可以利用发行版自
 % 带更新工具自动更新。阅读文档可以使用以下命令:
 % \begin{shell}
 % $ texdoc thuthesis
 % \end{shell}
 %
-% 如果要使用开发版,需自己安装,请继续阅读。
-% \thuthesis{} 相关链接:
+% 如果要使用开发版,需自己下载,\thuthesis\ 相关链接:
 % \begin{itemize}
 % \item 主页:\href{https://github.com/xueruini/thuthesis}{GitHub}
 % \item 下载:\href{http://www.ctan.org/pkg/thuthesis}{CTAN}
 % \end{itemize}
 %
-% 除此之外,不再维护任何镜像。
+% \subsection{模板的组成}
+% 下表列出了 \thuthesis\ 的主要文件及其功能介绍:
 %
-%
-% \subsection{模板的组成部分}
-% 下表列出了 \thuthesis{} 的主要文件及其功能介绍:
-%
 % \begin{longtable}{l|p{8cm}}
 % \toprule
 % {\heiti 文件(夹)} & {\heiti 功能描述}\\\midrule
@@ -258,24 +253,17 @@
 %
 % 几点说明:
 % \begin{itemize}
-% \item \file{thuthesis.cls} 和 \file{thuthesis.cfg} 可以由 \file{thuthesis.ins}
+% \item \file{thuthesis.cls} 和 \file{thuthesis.cfg} 可由 \file{thuthesis.ins}
 %   和 \file{thuthesis.dtx} 生成,但为了降低新手用户的使用难度,故
 %   将 \file{thuthesis.cls} 和 \file{thuthesis.cfg} 文件一起发布。
 % \item 使用前阅读文档:\file{thuthesis.pdf}。
 % \end{itemize}
 %
-% \subsection{准备工作}
-% \label{sec:prepare}
-% 本模板用到的宏包比较多,这些包在常见的 \TeX{} 系统中都有,如果没有安装请优先使用发
-% 行版自带的升级工具下载。现在的发行版都可以自动解决依赖,很少需要手动。
-%
-% \subsection{开始安装}
-% \label{sec:install}
-%
-% \subsubsection{生成模板}
+% \subsection{生成模板}
 % \label{sec:generate-cls}
-% \note{默认的发行包中已经包含了所有文件,可以直接使用。如果对如何生成模板文件以
-% 及模板文档不感兴趣,请跳过本小节。}
+% \note[提示:]{若使用 \TeX 发行版自带的 \thuthesis\ 或 Github 上发布的版本,可忽
+% 略此节,直接阅读第~\ref{sec:generate-thesis} 节。若下载 CTAN 包或者 Github 开发
+% 代码,请阅读本节了解生成模板文件的步骤。}
 %
 % 模板解压缩后生成文件夹 \file{thuthesis-vX.Y.Z}\footnote{\texttt{vX.Y.Z} 为版本号。},
 % 其中包括:模板源文件(\file{thuthesis.ins} 和 \file{thuthesis.dtx}),参考文献
@@ -298,9 +286,13 @@
 % $ xelatex thuthesis.dtx  % 生成说明文档 thuthesis.pdf
 % \end{shell}
 %
+% \subsection{生成论文}
+% \label{sec:generate-thesis}
+% 本节介绍几种常见的生成论文的方法。用户可根据自己的情况选择。
+%
 % \subsubsection{\XeLaTeX}
 % \label{sec:xelatex}
-% 很多用户对 \LaTeX{} 命令执行的次数不太清楚,一个基本的原则是多次运行 \LaTeX{}命
+% 很多用户对 \LaTeX\ 命令执行的次数不太清楚。一个基本的原则是多次运行 \LaTeX\ 命
 % 令直至不再出现警告。下面给出生成示例文档的详细过程(\texttt{\#} 开头的行为注
 % 释),首先来看推荐的 \texttt{xelatex} 方式:
 % \begin{shell}
@@ -321,12 +313,12 @@
 % \texttt{xelatex} 替换为 \texttt{pdflatex}。
 %
 % 需要注意的是 PDF\LaTeX\ 不能处理常见的 EPS 图形,需要先用 \texttt{epstopdf} 将其转化
-% 成 PDF。不过 PDF\LaTeX\ 增加了对 png,jpg 等标量图形的支持,比较方便。TeX Live
+% 成 PDF。不过 PDF\LaTeX\ 增加了对 png,jpg 等格式的支持,比较方便。\TeX Live
 % 自从 2010 版本起自动调用 \texttt{epstopdf} 将 EPS 图形转化为 PDF。
 %
 % \subsubsection{latexmk}
 % \label{sec:latexmk}
-% \texttt{latexmk} 命令支持全自动生成 \LaTeX{} 编写的文档,并且支持使用不同的工具
+% \texttt{latexmk} 命令支持全自动生成 \LaTeX\ 编写的文档,并且支持使用不同的工具
 % 链来进行生成,它会自动运行多次工具直到交叉引用都被解决。下面给出了一个用
 % \texttt{latexmk} 调用 \texttt{xelatex} 生成最终文档的示例:
 % \begin{shell}
@@ -336,9 +328,12 @@
 %
 % \subsubsection{make}
 % \label{sec:make}
-% 上面的例子只是给出一般情况下的使用方法。虽然命令很简单,但是每次都输入的话还是
-% 非常罗嗦的,所以 \thuthesis{} 提供了一个 \file{Makefile}:
+% \note[提示:]{若要使用 \texttt{make} 编译,需自行下载模板。因为 \TeX\ 发行版中
+% 的 \file{Makefile} 不在当前目录。}
 %
+% 上面的方法虽然不复杂,但是每次都输入还是非常罗嗦,所以 \thuthesis\ 提供了一
+% 个 \file{Makefile}:
+%
 % \begin{shell}
 % $ make clean
 % $ make cls       # 生成 thuthesis.cls 和 thuthesis.cfg
@@ -347,7 +342,7 @@
 % $ make shuji     # 生成书脊 shuji.pdf
 % \end{shell}
 %
-% \thuthesis{} 的 \file{Makefile} 默认用 \texttt{latexmk} 调用\texttt{xelatex} 编
+% \thuthesis\ 的 \file{Makefile} 默认用 \texttt{latexmk} 调用\texttt{xelatex} 编
 % 译,此外还支持直接用 \texttt{xelatex} 和\texttt{pdflatex} 编译。如有需要可修
 % 改 \file{Makefile} 开头的参数或通过命令行传递参数(请参看 \file{README.md}),
 % 进一步还可以修改 \file{latexmkrc} 进行定制。
@@ -354,7 +349,7 @@
 %
 % \subsection{升级}
 % \label{sec:updgrade}
-% \thuthesis{} 升级非常简单,可以通过 TeX 发行版的包管理工具自动更新发行版,也可
+% \thuthesis\ 升级非常简单,可以通过 \TeX 发行版的包管理工具自动更新发行版,也可
 % 以下载最新的开发版,
 % 将 \file{thuthesis.ins},\file{thuthesis.dtx} 和 \file{thuthesis.bst} 拷贝至工作目
 % 录覆盖相应的文件,然后运行:
@@ -369,8 +364,8 @@
 %
 % \section{使用说明}
 % \label{sec:usage}
-% 本手册假定用户已经能处理一般的 \LaTeX{} 文档,并对 \BibTeX{} 有一定了解。如果
-% 从来没有接触过 \TeX 和 \LaTeX,建议先学习相关的基础知识。磨刀不误砍柴工!
+% 本手册假定用户已经能处理一般的 \LaTeX\ 文档,并对 \BibTeX\ 有一定了解。如果
+% 从来没有接触过 \TeX\ 和 \LaTeX,建议先学习相关的基础知识。
 %
 % \subsection{关于提问}
 % \label{sec:howtoask}
@@ -440,7 +435,7 @@
 % 是 \thuthesis\ 的默认选项。在这种情况下,如果前一章的最后一页也是奇数,那么模板
 % 会自动生成一个纯粹的空白页,很多人不是很习惯这种方式,而且学校的格式似乎更倾向
 % 于页面连续,那就是通常所说的 \option{openany}\footnote{目前所有论文都
-% 是 \option{openany}。}。这两个选项不用设置,\thuthesis{} 会根据当前论文类型自动选
+% 是 \option{openany}。}。这两个选项不用设置,\thuthesis\ 会根据当前论文类型自动选
 % 择。
 %
 % \DescribeOption{arialtoc}
@@ -532,7 +527,7 @@
 % }
 % \end{latex}
 %
-% \note{\cs{thusetup} 使用 \pkg{kvoptions} 机制,所以配置项之间不能有空行,否则
+% \note[注意:]{\cs{thusetup} 使用 \pkg{kvoptions} 机制,所以配置项之间不能有空行,否则
 % 会报错。}
 %
 % 大多数命令的使用方法都是: \cs{command}\marg{arg},例外者将具体指出。这些命令都
@@ -579,7 +574,7 @@
 %   ctitle={论文中文题目},
 %   etitle={Thesis English Title}
 % }
-% % 等价命令形式:
+% % 等价:
 % \ctitle{论文中文题目}
 % \etitle{Thesis English Title}
 % \end{latex}
@@ -735,7 +730,7 @@
 % \myentry{摘要正文}
 % \DescribeEnv{cabstract}
 % \DescribeEnv{eabstract}
-% \note{摘要正文只能用环境命令的形式,不支持 \cs{thusetup}。}
+% \note[说明:]{摘要正文只能用环境命令的形式,不支持 \cs{thusetup}。}
 %
 % \begin{latex}
 % \begin{cabstract}
@@ -818,12 +813,12 @@
 %          & \cs{listofequations*}\\\bottomrule
 % \end{longtable}
 %
-% \LaTeX{} 默认支持插图和表格索引,是通过 \cs{caption} 命令完成的,因此它们必须出
+% \LaTeX\ 默认支持插图和表格索引,是通过 \cs{caption} 命令完成的,因此它们必须出
 % 现在浮动环境中,否则不被计数。
 %
 % 如果不想让某个表格或者图片出现在索引里面,那么请使用命令 \cs{caption*},这
 % 个命令不会给表格编号,也就是出来的只有标题文字而没有``表~xx'',``图~xx'',否则
-% 索引里面序号不连续就显得不伦不类,这也是 \LaTeX{} 里星号命令默认的规则。
+% 索引里面序号不连续就显得不伦不类,这也是 \LaTeX\ 里星号命令默认的规则。
 %
 % 有这种需求的多是本科同学的英文资料翻译部分,如果你觉得附录中英文原文中的表格和
 % 图片显示成``表''和``图''很不协调的话,一个很好的办法还是用 \cs{caption*},参数
@@ -839,7 +834,7 @@
 % 么个名字是因为图表就是通过 \cs{caption} 加入索引的,\cs{equcaption} 完全就是为
 % 了生成公式列表,不产生什么标题。
 %
-% 使用方法如下。假如有一个非 equation 数学环境 mymath,只要在其中写一
+% 使用方法如下。假如有一个非 equation 数学环境 \texttt{mymath},只要在其中写一
 % 句 \cs{equcaption} 就可以将它加入公式列表。
 % \begin{latex}
 % \begin{mymath}
@@ -848,7 +843,7 @@
 % \end{mymath}
 % \end{latex}
 %
-% 当然 mymath 正文中公式的编号需要自己来做。
+% \texttt{mymath} 中公式的编号需要自己来做。
 %
 % 同图表一样,附录中的公式有时候也不希望它跟全文统一编号,而且不希望它出现在公式
 % 索引中,目前的解决办法就是利用 \cs{tag*}\marg{公式编号} 来解决。用法很简单,此
@@ -863,7 +858,7 @@
 % \begin{latex}
 % \begin{acknowledgement}
 %   …
-%   还要特别感谢计算机系薛瑞尼同学在论文格式和 \LaTeX{} 编译等方面给我的很多帮助!
+%   还要特别感谢计算机系薛瑞尼同学在论文格式和 \LaTeX\ 编译等方面给我的很多帮助!
 % \end{acknowledgement}
 % \end{latex}
 %
@@ -873,7 +868,7 @@
 % \begin{acknowledgement}[scan-statement.pdf]
 %   加了扫描文件后,这里面的文字就没用了。
 %
-%   还要特别感谢计算机系薛瑞尼同学在论文格式和 \LaTeX{} 编译等方面给我的很多帮助!
+%   还要特别感谢计算机系薛瑞尼同学在论文格式和 \LaTeX\ 编译等方面给我的很多帮助!
 % \end{acknowledgement}
 % \end{latex}
 %
@@ -974,7 +969,7 @@
 %
 % \subsubsection{数学环境}
 % \label{sec:math}
-% \thuthesis{} 定义了常用的数学环境:
+% \thuthesis\ 定义了常用的数学环境:
 %
 % \begin{center}
 % \begin{tabular}{*{7}{l}}\toprule
@@ -1021,8 +1016,8 @@
 % 模式使用远比正文模式频繁,所以为了符合使用习惯,上标模式仍然用常规
 % 的 \cs{cite}\marg{key},而 \cs{inlinecite}\marg{key} 则用来生成正文模式。
 %
-% 关于参考文献模板推荐使用 \BibTeX{},关于中文参考文献需要额外增加一个 Entry:
-% lang,将其设置为 \texttt{zh}用来指示此参考文献为中文,以
+% 关于参考文献模板推荐使用 \BibTeX,关于中文参考文献需要额外增加一个 Entry:
+% \texttt{lang},将其设置为 \texttt{zh} 用来指示此参考文献为中文,以
 % 便 \file{thuthesis.bst} 处理。如:
 % \begin{latex}
 % @INPROCEEDINGS{cnproceed,
@@ -1089,7 +1084,7 @@
 %
 % \section{致谢}
 % \label{sec:thanks}
-% 感谢这些年来一直陪伴 \thuthesis{} 成长的新老同学,大家的需求是模板前进的动力,
+% 感谢这些年来一直陪伴 \thuthesis\ 成长的新老同学,大家的需求是模板前进的动力,
 % 大家的反馈是模板提高的机会。
 %
 % 热烈欢迎各位到 \href{http://github.com/xueruini/thuthesis/}{\thuthesis\ Github 主页}贡献!
@@ -1104,7 +1099,7 @@
 %<cls>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
 %<cls>\ProvidesClass{thuthesis}
 %<cfg>\ProvidesFile{thuthesis.cfg}
-%<cls|cfg>[2016/03/20 5.3.1 Tsinghua University Thesis Template]
+%<cls|cfg>[2017/03/26 5.3.2 Tsinghua University Thesis Template]
 %    \end{macrocode}
 %
 % \subsection{定义选项}
@@ -1123,7 +1118,7 @@
 %<*cls>
 \hyphenation{Thu-Thesis}
 \def\thuthesis{\textsc{ThuThesis}}
-\def\version{5.3.1}
+\def\version{5.3.2}
 
 \RequirePackage{kvoptions}
 \SetupKeyvalOptions{
@@ -1241,7 +1236,7 @@
 \RequirePackage{xparse}
 %    \end{macrocode}
 %
-% \AmSTeX{} 宏包,用来排出更加漂亮的公式。
+% \AmSTeX\ 宏包,用来排出更加漂亮的公式。
 % \changes{v4.8}{2013/03/02}{no need to load amssymb since we use txfonts.}
 %    \begin{macrocode}
 \RequirePackage{amsmath}
@@ -1256,10 +1251,12 @@
 \RequirePackage{newtxmath}
 %    \end{macrocode}
 %
-% \pkg{newtx} 的 Mono 字体虽然很好看,但是在论文中不常见。学校固然未要求 Mono 字
-% 体,还是选择常见的 Courier 字体,采用比较新的实现 TEX Gyre Cursor。
+% \pkg{newtx} 的 Mono 字体虽然很好看,但在论文中不常见。学校虽未要求 Mono 字体,
+% 还是选择常见的 Courier 字体。由于比较新的实现 \TeX\ Gyre Cursor 会修
+% 改\cs{bfdefault},导致中文加粗出问题,所以选用标准 \pkg{courier}。
+% \changes{v5.3.2}{2016/5/24}{替换 \pkg{tgcursor} 为 \pkg{courier}。}
 %    \begin{macrocode}
-\RequirePackage{tgcursor}
+\RequirePackage{courier}
 %    \end{macrocode}
 %
 % 图形支持宏包。
@@ -1312,13 +1309,6 @@
 \RequirePackage{CJKfntef}
 %    \end{macrocode}
 %
-% \XeTeX\ 环境下独立配置,包括零对应的圆圈符号。
-%    \begin{macrocode}
-\ifxetex
-  \def\CJK at null{\kern\CJKnullspace\Unicode{48}{7}\kern\CJKnullspace}
-  \defaultfontfeatures{Mapping=tex-text}
-\fi
-%    \end{macrocode}
 % \changes{v4.8}{2013/05/28}{在 CJK 模式下用 \pkg{CJKspace} 保留中英文间空格。}
 % \changes{v5.0.0}{2015/04/17}{固定字体设置,同时改善与 \pkg{ctex} 兼容性。}
 % \changes{v5.2.1}{2016/01/14}{使用 \pkg{newtx} 字体。}
@@ -1325,7 +1315,7 @@
 % \changes{v5.3.1}{2016/03/20}{\pkg{ctex} 默认加载 \pkg{CJKspace}。}
 % \changes{v5.3.1}{2016/03/20}{几乎没人主动安装 Arial 字体。}
 %
-% 定理类环境宏包,其中 \pkg{amsmath} 选项用来兼容 \AmSTeX{} 的宏包
+% 定理类环境宏包,其中 \pkg{amsmath} 选项用来兼容 \AmSTeX\ 的宏包
 %    \begin{macrocode}
 \RequirePackage[amsmath,thmmarks,hyperref]{ntheorem}
 %    \end{macrocode}
@@ -1347,6 +1337,12 @@
 \RequirePackage[numbers,super,sort&compress]{natbib}
 %    \end{macrocode}
 %
+% 删除默认模板(\file{book.cls})在章之间引入的垂直间隔。要放在 \pkg{hyperref}
+% 之前。
+%    \begin{macrocode}
+\patchcmd{\@chapter}{\addtocontents{lof}{\protect\addvspace{10\p@}}}{}{}{} % lof
+\patchcmd{\@chapter}{\addtocontents{lot}{\protect\addvspace{10\p@}}}{}{}{} % lot
+%    \end{macrocode}
 % 生成有书签的 pdf 及其开关,请结合 gbk2uni 避免书签乱码。
 % \changes{v2.6}{2006/06/09}{去除 hyperref 选项,等待全局传递。}
 % \changes{v5.2.2}{2016/01/25}{目录中标题和页码都是链接。}
@@ -1662,7 +1658,7 @@
       {Too many footnotes in this page.}{Keep footnote less than 10.}
   \fi
   \ifthu at pifootnote%
-    \ding{\numexpr171+\value{#1}}%
+    \ding{\the\numexpr\value{#1}+171\relax}%
   \else%
     \textcircled{\xiaoliu\arabic{#1}}%
   \fi}
@@ -1930,7 +1926,7 @@
 %   前空 24 磅,段后空 18 磅。本科要求:段前段后间距 30/20 pt,行距 20pt。但正文
 %   章节 30pt 的话和样例效果不一致。
 %
-% \changes{v2.5}{2006/05/13}{取消 \pkg{titlesec} 宏包,用基本 \LaTeX{} 命令格式化标题。}
+% \changes{v2.5}{2006/05/13}{取消 \pkg{titlesec} 宏包,用基本 \LaTeX\ 命令格式化标题。}
 % \changes{v2.5.1}{2006/05/23}{让 \cs{chapter*} 自动 \cs{markboth}。}
 % \changes{v3.1}{2006/06/16}{英文摘要标题要搞特殊化。}
 % \changes{v5.0.0}{2015/04/17}{修正章节间距问题(\#57)}
@@ -2005,7 +2001,7 @@
 % \cs{thu at chapter*}\oarg{tocline}\marg{title}\oarg{header}: tocline 是出现在目录
 % 中的条目,如果为空则此 chapter 不出现在目录中,如果省略表示目录出现 title;
 % title 是章标题;header 是页眉出现的标题,如果忽略则取 title。通过这个宏我才真
-% 正体会到 \TeX{} macro 的力量!
+% 正体会到 \TeX\ macro 的力量!
 %    \begin{macrocode}
 \newcounter{thu at bookmark}
 \NewDocumentCommand\thu at chapter{s o m o}{
@@ -2311,7 +2307,7 @@
 % \changes{v5.1.0}{2015/12/26}{通过 \cs{thusetup} 统一设置封面信息。}
 % 由上可见,封面和封底有一大堆信息需要设置,为了简化操作界面,提供一
 % 个 \cs{thusetup} 命令支持 key/value 的方式来设置。key 就是前面各个设置项的
-% 名字。\note{只能设置普通项,不支持环境项,
+% 名字。\note[说明:]{只能设置普通项,不支持环境项,
 % 如 \texttt{cabstract} 和 \texttt{eabstract}。} 由于这些设置项被 \cs{makecover}
 % 调用,所以此命令需要在 \cs{makecover} 之前被调用。
 %    \begin{macrocode}
@@ -2440,7 +2436,7 @@
 \newcommand\thu at underline[2][6em]{\hskip1pt\underline{\hb at xt@ #1{\hss#2\hss}}\hskip3pt}
 \newlength{\thu at title@width}
 \newcommand{\thu at put@title}[2][\thu at title@width]{%
-  \begin{CJKfilltwosides}{#1}#2\end{CJKfilltwosides}}
+  \begin{CJKfilltwosides}[b]{#1}#2\end{CJKfilltwosides}}
 \def\thu at first@titlepage{%
   \ifthu at postdoctor\thu at first@titlepage at postdoctor\else\thu at first@titlepage at other\fi}
 \newcommand{\thu at first@titlepage at postdoctor}{
@@ -2518,9 +2514,9 @@
       \parbox[t][9cm][t]{\paperwidth-8cm}{
       \renewcommand{\baselinestretch}{1.3}
       \begin{center}
-      \yihao[1.2]{\sffamily\heiti\thu at ctitle}\par
-      \par\vskip 18bp
-      \xiaoer[1] \textrm{\thu at apply}
+        \yihao[1.2]{\sffamily\heiti\thu at ctitle}\par%
+        \par\vskip 18bp%
+        \xiaoer[1]\textrm{\thu at apply}%
       \end{center}}
     \fi
 %    \end{macrocode}
@@ -2535,7 +2531,12 @@
 %    \begin{macrocode}
     \ifthu at bachelor
       \vskip1cm
-      \parbox[t][7.0cm][t]{\textwidth}{%
+      \ifx\thu at cassosupervisor\@empty%
+        \def\thu at tempa{7.0cm}
+      \else%
+        \def\thu at tempa{8.0cm}
+      \fi%
+      \parbox[t][\thu at tempa][t]{\textwidth}{%
         {\fangsong\sanhao[1.8]%
          \hspace*{1.65cm}
          \setlength{\thu at title@width}{4em}
@@ -2636,12 +2637,12 @@
     \parbox[t][5.2cm][t]{\paperwidth-7.2cm}{
       \renewcommand{\baselinestretch}{1.5}
       \begin{center}
-        \erhao[1.1]\bfseries\sffamily\thu at etitle
+        \erhao[1.1]\bfseries\sffamily\thu at etitle%
       \end{center}}
     \parbox[t][][t]{\paperwidth-7.2cm}{
       \renewcommand{\baselinestretch}{1.3}
       \begin{center}
-        \sanhao
+        \sanhao%
         \ifthu at master Thesis \else Dissertation \fi
         Submitted to\\
         {\bfseries Tsinghua University}\\
@@ -2648,10 +2649,10 @@
         in partial fulfillment of the requirement\\
         for the \ifthu at professional professional \fi
         degree of\\
-        {\bfseries\sffamily\thu at edegree}
+        {\bfseries\sffamily\thu at edegree}%
         \ifthu at professional\relax\else
           \\in\\[3bp]
-          {\bfseries\sffamily\thu at emajor}
+          {\bfseries\sffamily\thu at emajor}%
         \fi
       \end{center}}
     \parbox[t][][b]{\paperwidth-7.2cm}{
@@ -2658,15 +2659,16 @@
       \renewcommand{\baselinestretch}{1.3}
       \begin{center}
         \sanhao\sffamily by\\[3bp]
-        \bfseries\thu at eauthor
+        \bfseries\thu at eauthor%
         \ifthu at professional
           \ifx\thu at emajor\empty\relax\else
-            \\(~\thu at emajor~)
+            \\(~\thu at emajor~)%
         \fi\fi
       \end{center}}
     \par\vspace{0.9cm}
     \parbox[t][2.1cm][t]{\paperwidth-7.2cm}{
-      \renewcommand{\baselinestretch}{1.2}\xiaosan\centering
+      \renewcommand{\baselinestretch}{1.2}
+      \xiaosan\centering
       \begin{tabular}{rl}
         \ifthu at master Thesis \else Dissertation \fi
         Supervisor : & \thu at esupervisor\\
@@ -3030,7 +3032,7 @@
 %
 % \begin{macro}{\listofequations}
 % \begin{macro}{\listofequations*}
-% \LaTeX{}默认没有公式索引,此处定义自己的 \cs{listofequations}。
+% \LaTeX\ 默认没有公式索引,此处定义自己的 \cs{listofequations}。
 % \changes{v2.5}{2006/05/19}{增加公式索引命令。}
 % \changes{v2.5.1}{2006/05/26}{公式索引项 numwidth 增加。}
 % \changes{v2.6.4}{2006/10/23}{增加 \cs{listofequations*}。}
@@ -3393,8 +3395,8 @@
   \texttt{#2}\IfBooleanF#1{\thu at special@index{file}{#2}}}
 \newcommand{\myentry}[1]{%
   \marginpar{\raggedleft\color{purple}\bfseries\strut #1}}
-\newcommand{\note}[1]{{%
-  \color{magenta}{\bfseries 说明:}\emph{#1}}}
+\newcommand{\note}[2][Note]{{%
+  \color{magenta}{\bfseries #1}\emph{#2}}}
 
 \def\thuthesis{\textsc{Thu}\-\textsc{Thesis}}
 %</dtx-style>

Modified: trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg	2017-03-26 21:47:25 UTC (rev 43608)
+++ trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg	2017-03-26 21:47:40 UTC (rev 43609)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (C) 2005-2016 by Xue Ruini <xueruini at gmail.com>
+%% Copyright (C) 2005-2017 by Xue Ruini <xueruini at gmail.com>
 %% 
 %% This file may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3a
@@ -23,7 +23,7 @@
 %% This is the configuration file of the thuthesis package with LaTeX2e.
 %% 
 \ProvidesFile{thuthesis.cfg}
-[2016/03/20 5.3.1 Tsinghua University Thesis Template]
+[2017/03/26 5.3.2 Tsinghua University Thesis Template]
 \theoremsymbol{\ensuremath{\square}}
 \newtheorem*{proof}{证明}
 \theoremstyle{plain}

Modified: trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls	2017-03-26 21:47:25 UTC (rev 43608)
+++ trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls	2017-03-26 21:47:40 UTC (rev 43609)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (C) 2005-2016 by Ruini Xue <xueruini at gmail.com>
+%% Copyright (C) 2005-2017 by Ruini Xue <xueruini at gmail.com>
 %% 
 %% This file may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3a
@@ -25,10 +25,10 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesClass{thuthesis}
-[2016/03/20 5.3.1 Tsinghua University Thesis Template]
+[2017/03/26 5.3.2 Tsinghua University Thesis Template]
 \hyphenation{Thu-Thesis}
 \def\thuthesis{\textsc{ThuThesis}}
-\def\version{5.3.1}
+\def\version{5.3.2}
 
 \RequirePackage{kvoptions}
 \SetupKeyvalOptions{
@@ -82,7 +82,7 @@
 \RequirePackage{amsmath}
 \RequirePackage[defaultsups]{newtxtext}
 \RequirePackage{newtxmath}
-\RequirePackage{tgcursor}
+\RequirePackage{courier}
 \RequirePackage{graphicx}
 \RequirePackage[labelformat=simple]{subcaption}
 \RequirePackage{pdfpages}
@@ -99,15 +99,13 @@
   \RequirePackage{pifont}
 \fi
 \RequirePackage{CJKfntef}
-\ifxetex
-  \def\CJK at null{\kern\CJKnullspace\Unicode{48}{7}\kern\CJKnullspace}
-  \defaultfontfeatures{Mapping=tex-text}
-\fi
 \RequirePackage[amsmath,thmmarks,hyperref]{ntheorem}
 \RequirePackage{array}
 \RequirePackage{longtable}
 \RequirePackage{booktabs}
 \RequirePackage[numbers,super,sort&compress]{natbib}
+\patchcmd{\@chapter}{\addtocontents{lof}{\protect\addvspace{10\p@}}}{}{}{} % lof
+\patchcmd{\@chapter}{\addtocontents{lot}{\protect\addvspace{10\p@}}}{}{}{} % lot
 \RequirePackage{hyperref}
 \ifxetex
   \hypersetup{%
@@ -222,7 +220,7 @@
       {Too many footnotes in this page.}{Keep footnote less than 10.}
   \fi
   \ifthu at pifootnote%
-    \ding{\numexpr171+\value{#1}}%
+    \ding{\the\numexpr\value{#1}+171\relax}%
   \else%
     \textcircled{\xiaoliu\arabic{#1}}%
   \fi}
@@ -457,7 +455,7 @@
 \newcommand\thu at underline[2][6em]{\hskip1pt\underline{\hb at xt@ #1{\hss#2\hss}}\hskip3pt}
 \newlength{\thu at title@width}
 \newcommand{\thu at put@title}[2][\thu at title@width]{%
-  \begin{CJKfilltwosides}{#1}#2\end{CJKfilltwosides}}
+  \begin{CJKfilltwosides}[b]{#1}#2\end{CJKfilltwosides}}
 \def\thu at first@titlepage{%
   \ifthu at postdoctor\thu at first@titlepage at postdoctor\else\thu at first@titlepage at other\fi}
 \newcommand{\thu at first@titlepage at postdoctor}{
@@ -535,14 +533,19 @@
       \parbox[t][9cm][t]{\paperwidth-8cm}{
       \renewcommand{\baselinestretch}{1.3}
       \begin{center}
-      \yihao[1.2]{\sffamily\heiti\thu at ctitle}\par
-      \par\vskip 18bp
-      \xiaoer[1] \textrm{\thu at apply}
+        \yihao[1.2]{\sffamily\heiti\thu at ctitle}\par%
+        \par\vskip 18bp%
+        \xiaoer[1]\textrm{\thu at apply}%
       \end{center}}
     \fi
     \ifthu at bachelor
       \vskip1cm
-      \parbox[t][7.0cm][t]{\textwidth}{%
+      \ifx\thu at cassosupervisor\@empty%
+        \def\thu at tempa{7.0cm}
+      \else%
+        \def\thu at tempa{8.0cm}
+      \fi%
+      \parbox[t][\thu at tempa][t]{\textwidth}{%
         {\fangsong\sanhao[1.8]%
          \hspace*{1.65cm}
          \setlength{\thu at title@width}{4em}
@@ -621,12 +624,12 @@
     \parbox[t][5.2cm][t]{\paperwidth-7.2cm}{
       \renewcommand{\baselinestretch}{1.5}
       \begin{center}
-        \erhao[1.1]\bfseries\sffamily\thu at etitle
+        \erhao[1.1]\bfseries\sffamily\thu at etitle%
       \end{center}}
     \parbox[t][][t]{\paperwidth-7.2cm}{
       \renewcommand{\baselinestretch}{1.3}
       \begin{center}
-        \sanhao
+        \sanhao%
         \ifthu at master Thesis \else Dissertation \fi
         Submitted to\\
         {\bfseries Tsinghua University}\\
@@ -633,10 +636,10 @@
         in partial fulfillment of the requirement\\
         for the \ifthu at professional professional \fi
         degree of\\
-        {\bfseries\sffamily\thu at edegree}
+        {\bfseries\sffamily\thu at edegree}%
         \ifthu at professional\relax\else
           \\in\\[3bp]
-          {\bfseries\sffamily\thu at emajor}
+          {\bfseries\sffamily\thu at emajor}%
         \fi
       \end{center}}
     \parbox[t][][b]{\paperwidth-7.2cm}{
@@ -643,15 +646,16 @@
       \renewcommand{\baselinestretch}{1.3}
       \begin{center}
         \sanhao\sffamily by\\[3bp]
-        \bfseries\thu at eauthor
+        \bfseries\thu at eauthor%
         \ifthu at professional
           \ifx\thu at emajor\empty\relax\else
-            \\(~\thu at emajor~)
+            \\(~\thu at emajor~)%
         \fi\fi
       \end{center}}
     \par\vspace{0.9cm}
     \parbox[t][2.1cm][t]{\paperwidth-7.2cm}{
-      \renewcommand{\baselinestretch}{1.2}\xiaosan\centering
+      \renewcommand{\baselinestretch}{1.2}
+      \xiaosan\centering
       \begin{tabular}{rl}
         \ifthu at master Thesis \else Dissertation \fi
         Supervisor : & \thu at esupervisor\\



More information about the tex-live-commits mailing list