summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-03-01 23:38:54 +0000
committerKarl Berry <karl@freefriends.org>2016-03-01 23:38:54 +0000
commit9484681dceef0e89457f4f8d595aafa1b543769b (patch)
tree4e957f8fa584490e4361507810e4fe7e4ccb8fea /Master/texmf-dist
parent5065e43c7ef28af0f81652f6cc9b959e70478fb7 (diff)
thuthesis (28feb16)
git-svn-id: svn://tug.org/texlive/trunk@39915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/thuthesis/Makefile157
-rw-r--r--Master/texmf-dist/doc/latex/thuthesis/README.md25
-rw-r--r--Master/texmf-dist/doc/latex/thuthesis/main.pdfbin704097 -> 704234 bytes
-rw-r--r--Master/texmf-dist/doc/latex/thuthesis/shuji.pdfbin11579 -> 11729 bytes
-rw-r--r--Master/texmf-dist/doc/latex/thuthesis/thuthesis.pdfbin701063 -> 700159 bytes
-rw-r--r--Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx127
-rw-r--r--Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg2
-rw-r--r--Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls36
8 files changed, 113 insertions, 234 deletions
diff --git a/Master/texmf-dist/doc/latex/thuthesis/Makefile b/Master/texmf-dist/doc/latex/thuthesis/Makefile
index f059320ed0b..e1f47d0b742 100644
--- a/Master/texmf-dist/doc/latex/thuthesis/Makefile
+++ b/Master/texmf-dist/doc/latex/thuthesis/Makefile
@@ -1,6 +1,6 @@
# Makefile for ThuThesis
-# Compiling method: latexmk/xelatex/pdflatex/dvipdfmx
+# Compiling method: latexmk/xelatex/pdflatex
METHOD = latexmk
# Set opts for latexmk if you use it
LATEXMKOPTS = -xelatex
@@ -9,173 +9,87 @@ THESISMAIN = main
# Basename of shuji
SHUJIMAIN = shuji
-ifeq ($(MAKE),)
- override MAKE = make
-endif
-
-ifeq ($(TEXI2DVI),)
- override TEXI2DVI = texi2dvi
-endif
-
PACKAGE=thuthesis
SOURCES=$(PACKAGE).ins $(PACKAGE).dtx
-THESISCONTENTS=$(THESISMAIN).tex data/*.tex $(EPS)
+THESISCONTENTS=$(THESISMAIN).tex data/*.tex $(FIGURES)
# NOTE: update this to reflect your local file types.
-EPS=$(wildcard figures/*.eps)
+FIGURES=$(wildcard figures/*.eps figures/*.pdf)
BIBFILE=ref/*.bib
SHUJICONTENTS=$(SHUJIMAIN).tex
CLSFILES=dtx-style.sty $(PACKAGE).cls $(PACKAGE).cfg
# make deletion work on Windows
ifdef SystemRoot
- RM = del /Q
- SLASH = \\
+ RM = del /Q
+ OPEN = start
else
- RM = rm -f
- SLASH = /
+ RM = rm -f
+ OPEN = open
endif
-.PHONY: all clean distclean dist thesis viewthesis shuji viewshuji doc viewdoc cls FORCE_MAKE
+.PHONY: all clean distclean dist thesis viewthesis shuji viewshuji doc viewdoc cls check FORCE_MAKE
all: doc thesis shuji
-###### generate cls/cfg
cls: $(CLSFILES)
$(CLSFILES): $(SOURCES)
latex $(PACKAGE).ins
-###### for doc
-
viewdoc: doc
- open $(PACKAGE).pdf
+ $(OPEN) $(PACKAGE).pdf
doc: $(PACKAGE).pdf
-ifeq ($(METHOD),xelatex)
+viewthesis: thesis
+ $(OPEN) $(THESISMAIN).pdf
-$(PACKAGE).pdf: $(CLSFILES)
- xelatex $(PACKAGE).dtx
- makeindex -s gind.ist -o $(PACKAGE).ind $(PACKAGE).idx
- makeindex -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo
- xelatex $(PACKAGE).dtx
- xelatex $(PACKAGE).dtx
+thesis: $(THESISMAIN).pdf
-else ifeq ($(METHOD),pdflatex)
+viewshuji: shuji
+ $(OPEN) $(SHUJIMAIN).pdf
-$(PACKAGE).pdf: $(CLSFILES)
- pdflatex $(PACKAGE).dtx
- makeindex -s gind.ist -o $(PACKAGE).ind $(PACKAGE).idx
- makeindex -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo
- pdflatex $(PACKAGE).dtx
- pdflatex $(PACKAGE).dtx
+shuji: $(SHUJIMAIN).pdf
-else ifeq ($(METHOD),latexmk)
+ifeq ($(METHOD),latexmk)
$(PACKAGE).pdf: $(CLSFILES) FORCE_MAKE
- latexmk $(LATEXMKOPTS) $(PACKAGE).dtx
-
-else
+ $(METHOD) $(LATEXMKOPTS) $(PACKAGE).dtx
-$(PACKAGE).dvi: $(CLSFILES)
- latex $(PACKAGE).dtx
- makeindex -s gind.ist -o $(PACKAGE).ind $(PACKAGE).idx
- makeindex -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo
- latex $(PACKAGE).dtx
- latex $(PACKAGE).dtx
-
-$(PACKAGE).pdf: $(PACKAGE).dvi
- latex $(PACKAGE).dtx
- dvipdfmx $(PACKAGE).dvi
-
-endif
-
-###### for thesis
-
-viewthesis: thesis
- open $(THESISMAIN).pdf
-
-thesis: $(THESISMAIN).pdf
+$(THESISMAIN).pdf: $(CLSFILES) FORCE_MAKE
+ $(METHOD) $(LATEXMKOPTS) $(THESISMAIN)
-ifeq ($(METHOD),xelatex)
+$(SHUJIMAIN).pdf: $(CLSFILES) FORCE_MAKE
+ $(METHOD) $(LATEXMKOPTS) $(SHUJIMAIN)
-$(THESISMAIN).pdf: $(CLSFILES) $(THESISCONTENTS) $(THESISMAIN).bbl
- xelatex $(THESISMAIN).tex
- xelatex $(THESISMAIN).tex
+else ifneq (,$(filter $(METHOD),xelatex pdflatex))
-$(THESISMAIN).bbl: $(BIBFILE)
- xelatex $(THESISMAIN).tex
- -bibtex $(THESISMAIN)
- $(RM) $(THESISMAIN).pdf
-
-else ifeq ($(METHOD),pdflatex)
+$(PACKAGE).pdf: $(CLSFILES)
+ $(METHOD) $(PACKAGE).dtx
+ makeindex -s gind.ist -o $(PACKAGE).ind $(PACKAGE).idx
+ makeindex -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo
+ $(METHOD) $(PACKAGE).dtx
+ $(METHOD) $(PACKAGE).dtx
$(THESISMAIN).pdf: $(CLSFILES) $(THESISCONTENTS) $(THESISMAIN).bbl
- pdflatex $(THESISMAIN).tex
- pdflatex $(THESISMAIN).tex
+ $(METHOD) $(THESISMAIN)
+ $(METHOD) $(THESISMAIN)
$(THESISMAIN).bbl: $(BIBFILE)
- pdflatex $(THESISMAIN).tex
+ $(METHOD) $(THESISMAIN)
-bibtex $(THESISMAIN)
$(RM) $(THESISMAIN).pdf
-else ifeq ($(METHOD),latexmk)
-
-$(THESISMAIN).pdf: $(CLSFILES) FORCE_MAKE
- latexmk $(LATEXMKOPTS) $(THESISMAIN)
-
-else
-
-$(THESISMAIN).pdf: $(THESISMAIN).dvi
- latex $(THESISMAIN).tex
- dvipdfmx $(THESISMAIN).dvi
-
-$(THESISMAIN).dvi: $(CLSFILES) $(THESISCONTENTS) $(THESISMAIN).bbl
- $(TEXI2DVI) $(THESISMAIN).tex
-
-$(THESISMAIN).bbl: $(BIBFILE)
- $(TEXI2DVI) $(THESISMAIN).tex
- -bibtex $(THESISMAIN)
-
-endif
-
-
-###### for shuji
-
-viewshuji: shuji
- open $(SHUJIMAIN).pdf
-
-shuji: $(SHUJIMAIN).pdf
-
-ifeq ($(METHOD),xelatex)
-
-$(SHUJIMAIN).pdf: $(CLSFILES) $(SHUJICONTENTS)
- xelatex $(SHUJIMAIN).tex
-
-else ifeq ($(METHOD),pdflatex)
-
$(SHUJIMAIN).pdf: $(CLSFILES) $(SHUJICONTENTS)
- pdflatex $(SHUJIMAIN).tex
-
-else ifeq ($(METHOD),latexmk)
-
-$(SHUJIMAIN).pdf: $(CLSFILES) FORCE_MAKE
- latexmk $(LATEXMKOPTS) $(SHUJIMAIN)
+ $(METHOD) $(SHUJIMAIN)
else
-
-$(SHUJIMAIN).dvi: $(CLSFILES) $(SHUJICONTENTS)
- $(TEXI2DVI) $(SHUJIMAIN).tex
-
-$(SHUJIMAIN).pdf: $(SHUJIMAIN).dvi
- latex $(SHUJIMAIN).tex
- dvipdfmx $(SHUJIMAIN).dvi
+$(error Unknown METHOD: $(METHOD))
endif
clean:
latexmk -c $(PACKAGE).dtx $(THESISMAIN) $(SHUJIMAIN)
- -@$(RM) $(PACKAGE).dvi $(THESISMAIN).dvi $(SHUJIMAIN).dvi
-@$(RM) *~
cleanall: clean
@@ -185,7 +99,10 @@ distclean: cleanall
-@$(RM) $(CLSFILES)
-@$(RM) -r dist
-dist:
+check: FORCE_MAKE
+ ag 'Tsinghua University Thesis Template|\\def\\version|"version":' thuthesis.dtx package.json
+
+dist: all
@if [ -z "$(version)" ]; then \
echo "Usage: make dist version=[x.y.z | ctan]"; \
else \
diff --git a/Master/texmf-dist/doc/latex/thuthesis/README.md b/Master/texmf-dist/doc/latex/thuthesis/README.md
index 9e8038934df..3bf721b94a8 100644
--- a/Master/texmf-dist/doc/latex/thuthesis/README.md
+++ b/Master/texmf-dist/doc/latex/thuthesis/README.md
@@ -33,13 +33,12 @@ ThuThesis为 <b>T</b>sing<b>h</b>ua <b>U</b>niversity <b>Thesis</b> LaTeX Templa
* [TeX@newsmth](http://www.newsmth.net/nForum/#!board/TeX)
* [ThuThesis@Google Groups](http://groups.google.com/group/thuthesis)
----
-
# Makefile的用法
- make [{all|thesis|shuji|doc|clean|distclean}] \
- [METHOD={latexmk|xelatex|pdflatex|dvipdfmx}] \
- [TEXI2DVI=<tex2dvi>]
+```shell
+make [{all|thesis|shuji|doc|clean|cleanall|distclean}] \
+ [METHOD={latexmk|xelatex|pdflatex}]
+```
## 目标
* `make all` 等于 `make thesis && make shuji && make doc`;
@@ -47,18 +46,12 @@ ThuThesis为 <b>T</b>sing<b>h</b>ua <b>U</b>niversity <b>Thesis</b> LaTeX Templa
* `make thesis` 生成论文 main.pdf;
* `make shuji` 生成书脊 shuji.pdf;
* `make doc` 生成使用说明书 thuthesis.pdf;
-* `make clean` 删除示例文件的中间文件(不含main.pdf);
-* `make cleanall` 删除示例文件的中间文件和main.pdf;
-* `make distclean` 删除示例文件和模板的所有中间文件和PDF。
+* `make clean` 删除示例文件的中间文件(不含 main.pdf);
+* `make cleanall` 删除示例文件的中间文件和 main.pdf;
+* `make distclean` 删除示例文件和模板的所有中间文件和 PDF。
## 参数
* **METHOD**:指定生成 pdf 的方式,缺省采用 latexmk。
- * METHOD=latexmk 表示使用 latexmk 的方式生成 pdf。
+ * METHOD=latexmk 表示使用 latexmk 的方式生成 pdf(使用 xelatex)。
* METHOD=xelatex 表示使用 xelatex 引擎编译生成 pdf;
- * METHOD=pdflatex 表示使用 pdflatex 引擎编译生成 pdf;
- * METHOD=dvipdfmx 表示使用 texi2dvi -> dvipdfmx 的方式生成 pdf。
-* **TEXI2DVI**: `texi2dvi` 实用工具的文件名,该工具的作用是自动重复运行latex 若
- 干遍,直至所有交叉引用都正确为止。在有的发行版中该工具的文件名不叫
- `texi2dvi`,譬如 CTeX 下的这个工具就叫 `texify`。遇到这种情况可以在命令
- 行通过 `TEXI2DVI=texify` 命令指定使用其它的 `texi2dvi` 工具。
-
+ * METHOD=pdflatex 表示使用 pdflatex 引擎编译生成 pdf。
diff --git a/Master/texmf-dist/doc/latex/thuthesis/main.pdf b/Master/texmf-dist/doc/latex/thuthesis/main.pdf
index 65d3f9b16eb..c122a73f4f9 100644
--- a/Master/texmf-dist/doc/latex/thuthesis/main.pdf
+++ b/Master/texmf-dist/doc/latex/thuthesis/main.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/thuthesis/shuji.pdf b/Master/texmf-dist/doc/latex/thuthesis/shuji.pdf
index 0cd29ce4a1b..73ee6a5186b 100644
--- a/Master/texmf-dist/doc/latex/thuthesis/shuji.pdf
+++ b/Master/texmf-dist/doc/latex/thuthesis/shuji.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/thuthesis/thuthesis.pdf b/Master/texmf-dist/doc/latex/thuthesis/thuthesis.pdf
index 8dd8f81261d..00c07af7f86 100644
--- a/Master/texmf-dist/doc/latex/thuthesis/thuthesis.pdf
+++ b/Master/texmf-dist/doc/latex/thuthesis/thuthesis.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx b/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
index fe0c3556db4..1417c1de67c 100644
--- a/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
+++ b/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
@@ -16,9 +16,7 @@
%
% \iffalse
%<*driver>
-\def\thudate{\the\year/\the\month/\the\day}
-\def\thuversion{5.2.2}
-\ProvidesFile{thuthesis.dtx}[{\thudate} {\thuversion} Tsinghua University Thesis Template]
+\ProvidesFile{thuthesis.dtx}[2016/02/27 5.2.3 Tsinghua University Thesis Template]
\documentclass{ltxdoc}
\usepackage{dtx-style}
@@ -148,6 +146,7 @@
% \changes{v4.8}{2013/03/02}{no need to load \pkg{indentfirst} directly since we use \pkg{ctex}.}
% \changes{v4.8}{2013/03/02}{内部调用 \pkg{ctex} 宏包,自动检测编译引擎。}
% \changes{v4.8}{2013/03/04}{dvips method is deprecated. We ask their users to load it manually.}
+% \changes{v4.8}{2013/03/09}{reset baselinestretch after ctex's change.}
% \changes{v4.8}{2014/11/25}{好几年累积的一些更新,最重要的是切换到 \CTeX。}
%
% \def\indexname{索引}
@@ -231,8 +230,7 @@
% \subsection{模板的组成部分}
% 下表列出了 \thuthesis{} 的主要文件及其功能介绍:
%
-% \begin{center}
-% \begin{longtable}{l|p{8cm}}
+% \begin{longtable}{l|p{8cm}}
% \toprule
% {\heiti 文件(夹)} & {\heiti 功能描述}\\\midrule
% \endfirsthead
@@ -258,10 +256,8 @@
% zhfonts.py & 生成中文字体配置文件\\
% README.md & Readme\\
% \textbf{thuthesis.pdf} & 用户手册(本文档)\\\bottomrule
-% \end{longtable}
-% \end{center}
+% \end{longtable}
%
-% \vskip-1cm
% 几点说明:
% \begin{itemize}
% \item \file{thuthesis.cls} 和 \file{thuthesis.cfg} 可以由 \file{thuthesis.ins}
@@ -328,20 +324,6 @@
% 和幼圆字体,如果系统上没有它们,可以直接将 \file{ctex-fontset-thuthesis.def} 文
% 件以及论文中相应行删除。字体配置参考第~\ref{sec:font-config} 节。
%
-% \subsubsection{dvipdfmx}
-% \label{sec:dvipdfmx}
-% 如果使用 \texttt{dvipdfmx},那么需要先生成完整的 dvi 文件:
-% \begin{shell}%
-% $ latex main
-% $ bibtex main
-% $ latex main
-% $ latex main
-% \end{shell}
-% 在生成完整的 dvi 文件之后,可以用 dvipdfmx 直接得到 pdf 文件:
-% \begin{shell}%
-% $ dvipdfmx main
-% \end{shell}
-%
% \subsubsection{PDF\LaTeX}
% \label{sec:pdflatex}
% 如果使用 PDF\LaTeX,按照第~\ref{sec:xelatex} 节的顺序执行即可,只是将命令中
@@ -374,10 +356,9 @@
% $ make shuji # 生成书脊 shuji.pdf
% \end{shell}
%
-% \thuthesis{} 的 Makefile 默认用 \texttt{latexmk} 调用
-% \texttt{xelatex} 编译,此外还支持直接用 \texttt{xelatex}、\texttt{pdflatex} 和
-% \texttt{dvipdfmx} 方式编译,如有需要可以修
-% 改 \file{Makefile} 开头的参数设置或通过命令行传递参数(请参看 \file{README.md}),
+% \thuthesis{} 的 \file{Makefile} 默认用 \texttt{latexmk} 调用\texttt{xelatex} 编
+% 译,此外还支持直接用 \texttt{xelatex} 和\texttt{pdflatex} 编译。如有需要可修
+% 改 \file{Makefile} 开头的参数或通过命令行传递参数(请参看 \file{README.md}),
% 进一步还可以修改 \file{latexmkrc} 进行定制。
%
% \subsection{升级}
@@ -691,7 +672,6 @@
% \DescribeMacro{\edegree}
% 学位和专业的设置比想象的要复杂一些:
%
-% \begin{center}
% \begin{longtable}{p{2cm}p{8cm}p{4cm}}
% \toprule
% 学位类型 & edegree & emajor \\\midrule
@@ -707,9 +687,7 @@
% & 获得一级学科授权的学科填写一级学科名称,其它填写二级学科名称。\\\midrule
% 专业型博士 & 专业学位英文名称全称 & 不填写此项。\\\bottomrule
% \end{longtable}
-% \end{center}
%
-% \vskip-0.7cm
% \begin{latex}
% \thusetup{
% cdegree={您要申请什么学位},
@@ -896,7 +874,6 @@
% \DescribeMacro{\listoftables*}
% \DescribeMacro{\listofequations}
% \DescribeMacro{\listofequations*}
-% \begin{center}
% \begin{longtable}{ll}
% \toprule
% {\heiti 用途} & {\heiti 命令} \\\midrule
@@ -908,7 +885,6 @@
% 公式索引 & \cs{listofequations} \\
% & \cs{listofequations*}\\\bottomrule
% \end{longtable}
-% \end{center}
%
% \LaTeX{} 默认支持插图和表格索引,是通过 \cs{caption} 命令完成的,因此它们必须出
% 现在浮动环境中,否则不被计数。
@@ -1184,7 +1160,7 @@
% 感谢这些年来一直陪伴 \thuthesis{} 成长的新老同学,大家的需求是模板前进的动力,
% 大家的反馈是模板提高的机会。
%
-% 热烈欢迎各位到\href{http://github.com/xueruini/thuthesis/}{\thuthesis\ Github 主页}贡献!
+% 热烈欢迎各位到 \href{http://github.com/xueruini/thuthesis/}{\thuthesis\ Github 主页}贡献!
%
% \StopEventually{\PrintChanges\PrintIndex}
% \clearpage
@@ -1196,7 +1172,7 @@
%<cls>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<cls>\ProvidesClass{thuthesis}
%<cfg>\ProvidesFile{thuthesis.cfg}
-%<cls|cfg>[2016/01/18 5.2.1 Tsinghua University Thesis Template]
+%<cls|cfg>[2016/02/27 5.2.3 Tsinghua University Thesis Template]
% \end{macrocode}
%
% \subsection{定义选项}
@@ -1215,7 +1191,7 @@
%<*cls>
\hyphenation{Thu-Thesis}
\def\thuthesis{\textsc{ThuThesis}}
-\def\version{5.2.2}
+\def\version{5.2.3}
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
@@ -1409,13 +1385,6 @@
\RequirePackage{CJKfntef}
% \end{macrocode}
%
-% TODO:重置 \cs{baselinestretch},这个地方太诡异了。是古老版本留下来的,会影响
-% 封面部分的排版,应该优化一下。
-% \changes{v4.8}{2013/03/09}{reset baselinestretch after ctex's change.}
-% \begin{macrocode}
-\renewcommand{\baselinestretch}{1.0} % todo:?
-% \end{macrocode}
-%
% \XeTeX\ 环境下独立配置,包括零对应的圆圈符号和字体。
% \begin{macrocode}
\ifxetex
@@ -1590,6 +1559,19 @@
%
% \subsubsection{字体}
% \label{sec:font}
+% \begin{macro}{\normalsize}
+% 正文小四号 (12bp) 字,行距为固定值 20 bp。
+% \begin{macrocode}
+%<*cls>
+\renewcommand\normalsize{%
+ \@setfontsize\normalsize{12bp}{20bp}%
+ \abovedisplayskip=20bp \@plus 2bp \@minus 2bp
+ \abovedisplayshortskip=20bp \@plus 2bp \@minus 2bp
+ \belowdisplayskip=\abovedisplayskip
+ \belowdisplayshortskip=\abovedisplayshortskip}
+% \end{macrocode}
+% \end{macro}
+%
% WORD 中的字号对应该关系如下(1bp = 72.27/72 pt):
% \begin{center}
% \begin{tabular}{llll}
@@ -1620,15 +1602,11 @@
% \cs{thu@def@fontsize}\marg{字号名称}\marg{磅数}
%
% 避免了字号选择和行距的紧耦合。所有字号定义时为单倍行距,并提供选项指定行距倍数。
+% \changes{v5.2.3}{2016/02/13}{改写字体定义命令。}
% \begin{macrocode}
-%<*cls>
-\newlength\thu@linespace
-\newcommand{\thu@choosefont}[2]{%
- \setlength{\thu@linespace}{#2*\real{#1}}%
- \fontsize{#2}{\thu@linespace}\selectfont}
\def\thu@def@fontsize#1#2{%
- \expandafter\newcommand\csname #1\endcsname[1][\baselinestretch]{%
- \thu@choosefont{##1}{#2}}}
+ \expandafter\newcommand\csname #1\endcsname[1][1.3]{%
+ \fontsize{#2}{##1\dimexpr #2}\selectfont}}
% \end{macrocode}
% \end{macro}
%
@@ -1670,6 +1648,7 @@
\thu@def@fontsize{xiaoliu}{6.5bp}
\thu@def@fontsize{qihao}{5.5bp}
\thu@def@fontsize{bahao}{5bp}
+%</cls>
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -1690,19 +1669,6 @@
% \end{macro}
% \end{macro}
%
-% \begin{macro}{\normalsize}
-% 正文小四号 (12bp) 字,行距为固定值 20 bp。
-% \begin{macrocode}
-\renewcommand\normalsize{%
- \@setfontsize\normalsize{12bp}{20bp}%
- \abovedisplayskip=20bp \@plus 2bp \@minus 2bp
- \abovedisplayshortskip=20bp \@plus 2bp \@minus 2bp
- \belowdisplayskip=\abovedisplayskip
- \belowdisplayshortskip=\abovedisplayshortskip}
-%</cls>
-% \end{macrocode}
-% \end{macro}
-%
%
% \subsubsection{页眉页脚}
% \label{sec:headerfooter}
@@ -1828,8 +1794,6 @@
%
% 公式距前后文的距离由 4 个参数控制,参见 \cs{normalsize} 的定义。
%
-% 公式改成 (1-1) 的形式,本科还要在前面加上\textbf{公式}二字,我不知道他们是怎么想的,这
-% 忒不好看了。
% \changes{v2.5.1}{2006/05/24}{本科公式编号前添加\textbf{公式}二字。需要修 \pkg{amsmath} 极其深的一个命令。}
% \changes{v2.5.1}{2006/05/24}{教务处居然要本科论文公式全文编号!}
% \changes{v2.5.2}{2006/05/29}{上一个版本忘了把研究生的公式编号排除。}
@@ -1847,21 +1811,24 @@
% \end{latex}
% \changes{v4.4}{2008/05/30}{本科论文终于去掉了\textbf{公式}二字。}
% \changes{v4.4.4}{2008/06/12}{修复了一个从 v4.3 升级到 v4.4 过程中的丢失公式索引的 bug,原修改代码保留备忘。}
+% \changes{v5.2.3}{2016/02/13}{安全注释本科公式部分。}
% \begin{macrocode}
\def\make@df@tag{\@ifstar\thu@make@df@tag@@\make@df@tag@@@}
\def\thu@make@df@tag@@#1{\gdef\df@tag{\thu@maketag{#1}\def\@currentlabel{#1}}}
-% redefinitation of tagform brokes eqref!
-\renewcommand{\eqref}[1]{\textup{(\ref{#1})}}
-\renewcommand\theequation{\ifnum \c@chapter>\z@ \thechapter-\fi\@arabic\c@equation}
-%\ifthu@bachelor
-% \def\thu@maketag#1{\maketag@@@{%
-% (\ignorespaces\text{\equationname\hskip0.5em}#1\unskip\@@italiccorr)}}
-% \def\tagform@#1{\maketag@@@{%
-% (\ignorespaces\text{\equationname\hskip0.5em}#1\unskip\@@italiccorr)\equcaption{#1}}}
-%\else
+\iffalse
+\ifthu@bachelor
+ \def\thu@maketag#1{\maketag@@@{%
+ (\ignorespaces\text{\equationname\hskip0.5em}#1\unskip\@@italiccorr)}}
+ \def\tagform@#1{\maketag@@@{%
+ (\ignorespaces\text{\equationname\hskip0.5em}#1\unskip\@@italiccorr)\equcaption{#1}}}
+\fi
+\fi
\def\thu@maketag#1{\maketag@@@{(\ignorespaces #1\unskip\@@italiccorr)}}
\def\tagform@#1{\maketag@@@{(\ignorespaces #1\unskip\@@italiccorr)\equcaption{#1}}}
-%\fi
+% \end{macrocode}
+% 修改 \cs{tagform} 会影响 \cs{eqref}。
+% \begin{macrocode}
+\renewcommand{\eqref}[1]{\textup{(\ref{#1})}}
% \end{macrocode}
%
% 定理标题使用黑体,正文使用宋体,冒号隔开。
@@ -2119,11 +2086,11 @@
%
% \begin{macro}{\thu@chapter*}
% \changes{v2.5.2}{2006/05/29}{定义自己的 \cs{thu@chapter*}。}
-% 默认的 \cs{chapter*} 很难同时满足研究生院和本科生的论文要求。本科论文要求所有
-% 的章都出现在目录里,比如摘要、Abstract、主要符号表等,所以可以简单的扩展默认
-% \cs{chapter*} 实现这个目的。但是研究生又不要这些出现在目录中,而且致谢和声明
-% 部分的章名、页眉和目录都不同,所以我想定义一个灵活的 \cs{thu@chapter*} 专
-% 门处理他们的这些要求。
+% 默认的 \cs{chapter*} 很难同时满足研究生院和本科生的论文要求。本科论文要求所有的
+% 章都出现在目录里,比如摘要、Abstract、主要符号表等,所以可以简单的扩展默
+% 认\cs{chapter*} 实现这个目的。但是研究生又不要这些出现在目录中,而且致谢和声明
+% 部分的章名、页眉和目录都不同,所以定义一个灵活的 \cs{thu@chapter*} 专门处理这些
+% 要求。
%
% \cs{thu@chapter*}\oarg{tocline}\marg{title}\oarg{header}: tocline 是出现在目录
% 中的条目,如果为空则此 chapter 不出现在目录中,如果省略表示目录出现 title;
@@ -2162,8 +2129,8 @@
%
% \subsubsection{目录}
% \label{sec:toc}
-% 最多涉及 4 层,即: x.x.x.x。\par
-% chapter(0), section(1), subsection(2), subsubsection(3)
+% 最多 4 层,即: x.x.x.x,对应的命令和层序号分别是:
+% \cs{chapter}(0), \cs{section}(1), \cs{subsection}(2), \cs{subsubsection}(3)。
% \changes{v3.1}{2007/10/09}{博士论文目录只出现到第 3 级标题即可。}
% \changes{v5.0.0}{2015/05/21}{硕士博士论文目录只出现到第 3 级标题即可。其他未明确要求。}
% \begin{macrocode}
diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg
index d8da22f4a49..cabc2ca00c9 100644
--- a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg
+++ b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg
@@ -23,7 +23,7 @@
%% This is the configuration file of the thuthesis package with LaTeX2e.
%%
\ProvidesFile{thuthesis.cfg}
-[2016/01/18 5.2.1 Tsinghua University Thesis Template]
+[2016/02/27 5.2.3 Tsinghua University Thesis Template]
\theoremsymbol{\ensuremath{\square}}
\newtheorem*{proof}{证明}
\theoremstyle{plain}
diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
index f7358e248c6..e081ea0739c 100644
--- a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
+++ b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
@@ -25,10 +25,10 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{thuthesis}
-[2016/01/18 5.2.1 Tsinghua University Thesis Template]
+[2016/02/27 5.2.3 Tsinghua University Thesis Template]
\hyphenation{Thu-Thesis}
\def\thuthesis{\textsc{ThuThesis}}
-\def\version{5.2.2}
+\def\version{5.2.3}
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
@@ -101,7 +101,6 @@
\RequirePackage{pifont}
\fi
\RequirePackage{CJKfntef}
-\renewcommand{\baselinestretch}{1.0} % todo:?
\ifxetex
\def\CJK@null{\kern\CJKnullspace\Unicode{48}{7}\kern\CJKnullspace}
\defaultfontfeatures{Mapping=tex-text}
@@ -181,13 +180,15 @@
\renewcommand\backmatter{%
\if@openright\cleardoublepage\else\clearpage\fi
\@mainmattertrue}
-\newlength\thu@linespace
-\newcommand{\thu@choosefont}[2]{%
- \setlength{\thu@linespace}{#2*\real{#1}}%
- \fontsize{#2}{\thu@linespace}\selectfont}
+\renewcommand\normalsize{%
+ \@setfontsize\normalsize{12bp}{20bp}%
+ \abovedisplayskip=20bp \@plus 2bp \@minus 2bp
+ \abovedisplayshortskip=20bp \@plus 2bp \@minus 2bp
+ \belowdisplayskip=\abovedisplayskip
+ \belowdisplayshortskip=\abovedisplayshortskip}
\def\thu@def@fontsize#1#2{%
- \expandafter\newcommand\csname #1\endcsname[1][\baselinestretch]{%
- \thu@choosefont{##1}{#2}}}
+ \expandafter\newcommand\csname #1\endcsname[1][1.3]{%
+ \fontsize{#2}{##1\dimexpr #2}\selectfont}}
\thu@def@fontsize{chuhao}{42bp}
\thu@def@fontsize{xiaochu}{36bp}
\thu@def@fontsize{yihao}{26bp}
@@ -206,12 +207,6 @@
\thu@def@fontsize{xiaoliu}{6.5bp}
\thu@def@fontsize{qihao}{5.5bp}
\thu@def@fontsize{bahao}{5bp}
-\renewcommand\normalsize{%
- \@setfontsize\normalsize{12bp}{20bp}%
- \abovedisplayskip=20bp \@plus 2bp \@minus 2bp
- \abovedisplayshortskip=20bp \@plus 2bp \@minus 2bp
- \belowdisplayskip=\abovedisplayskip
- \belowdisplayshortskip=\abovedisplayshortskip}
\fancypagestyle{thu@empty}{%
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
@@ -257,10 +252,17 @@
\renewcommand\theequation{\ifnum \c@chapter>\z@ \thechapter-\fi\@arabic\c@equation}
\def\make@df@tag{\@ifstar\thu@make@df@tag@@\make@df@tag@@@}
\def\thu@make@df@tag@@#1{\gdef\df@tag{\thu@maketag{#1}\def\@currentlabel{#1}}}
-\renewcommand{\eqref}[1]{\textup{(\ref{#1})}}
-\renewcommand\theequation{\ifnum \c@chapter>\z@ \thechapter-\fi\@arabic\c@equation}
+\iffalse
+\ifthu@bachelor
+ \def\thu@maketag#1{\maketag@@@{%
+ (\ignorespaces\text{\equationname\hskip0.5em}#1\unskip\@@italiccorr)}}
+ \def\tagform@#1{\maketag@@@{%
+ (\ignorespaces\text{\equationname\hskip0.5em}#1\unskip\@@italiccorr)\equcaption{#1}}}
+\fi
+\fi
\def\thu@maketag#1{\maketag@@@{(\ignorespaces #1\unskip\@@italiccorr)}}
\def\tagform@#1{\maketag@@@{(\ignorespaces #1\unskip\@@italiccorr)\equcaption{#1}}}
+\renewcommand{\eqref}[1]{\textup{(\ref{#1})}}
\theorembodyfont{\rmfamily\songti}
\theoremheaderfont{\rmfamily\heiti}
\setlength{\floatsep}{20bp \@plus4pt \@minus1pt}