Skip to content

Commit 9209c64

Browse files
committed
Revise comments in package code.
Improve typesetting of the documentation. Bump version number to `1.3'.
1 parent 628e317 commit 9209c64

10 files changed

Lines changed: 19 additions & 16 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# vim:ft=make:ts=4:sw=4
22

33
TITLE = pkuthss
4-
VERSION = 1.3rc4
4+
VERSION = 1.3
55
PROJECT = $(TITLE)-$(VERSION)
66
DIST_DOC = $(PROJECT)/doc
77
DOC_UTF8LF = $(DIST_DOC)/utf8lf

doc/ChangeLog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
2011/9/13,ver 1.3 rc4(包括前面所有 alpha、beta 和 rc 版本):
1+
2011/12/21,ver 1.3(包括前面所有 alpha、beta 和 rc 版本):
22
--- 进一步重构,
33
将核心设置集中于 pkuthss 文档类中,
44
常见的额外设置集中于 pkuthss-extra 宏包中。

doc/chap/chap1.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ \chapter{使用介绍}
4444
本文档中的版权声明并不是%
4545
学校默认要求的形式\cite{pku-copyright}。
4646
符合学校要求的一个版权声明已经放在此文件中,
47-
但用 \texttt{\string\iffalse{} ... \string\fi} %
47+
但用 \texttt{\string\iffalse{} ...\ \string\fi} %
4848
注释掉了,
4949
用户可以考虑使用那个版本。
5050
}。

doc/chap/chap2.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ \chapter{pkuthss 文档模版提供的功能}
109109

110110
\item \textbf{\texttt{[no]pdfmeta}}:
111111
是否自动根据设定的论文文档信息设置%
112-
生成的 pdf 文档的元数据(metadata)。
112+
生成的 pdf 文档的元数据(metadata)。%
113113
\emph{%
114114
注意:
115115
该选项实际上是在 \texttt{\string\maketitle} 时生效的,
@@ -262,7 +262,7 @@ \chapter{pkuthss 文档模版提供的功能}
262262
pkuthss 文档类建立在 ctexbook\cite{ctex} 文档类的基础上,
263263
并调用了 CJKfntef、%
264264
graphicx\cite{graphicx}、geometry\cite{geometry}、%
265-
fancyhdr\cite{fancyhdr}、 natbib\cite{natbib} 和%
265+
fancyhdr\cite{fancyhdr}、natbib\cite{natbib} 和 %
266266
etoolbox\cite{etoolbox} 等几个宏包。
267267
因此,ctexbook 文档类和这些宏包所提供的功能均可以使用。
268268

@@ -297,7 +297,7 @@ \chapter{pkuthss 文档模版提供的功能}
297297
因此不建议更改这些设置,它们是:
298298
\begin{itemize}
299299
\item 纸张类型:A4;
300-
\item 版心尺寸%
300+
\item 页芯尺寸%
301301
$240\,\mathrm{mm}\times150\,\mathrm{mm}$
302302
包含页眉、页脚;
303303
\item 默认字号:小四号。

doc/chap/chap3.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ \chapter{问题及其解决}
4141
关于 pkuthss 文档模板的意见和建议,
4242
请在北大未名 BBS 的 MathTools 版或 %
4343
Google Code 上 pkuthss 项目的 issue tracker%
44-
\footnote{\url{http://code.google.com/p/caspervector/issues/list}}%
44+
\footnote{\url{http://code.google.com/p/caspervector/issues/list}.}%
4545
上提出,
4646
或通过电子邮件\footnote%
47-
{\href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}}%
47+
{\href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}.}%
4848
告知 Casper Ti. Vector。
4949
上述三种反馈方法中,建议用户尽量采用靠前的方法。
5050

doc/pkuthss.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
% 提供 Verbatim 环境和 \VerbatimInput 命令。
1212
\usepackage{fancyvrb}
1313
% pkuthss 文档模版的版本。
14-
\newcommand{\docversion}{v1.3 rc4}
14+
\newcommand{\docversion}{v1.3}
1515

1616
% 参考文献格式。
1717
\bibliographystyle{ref/chinesebst-mod}
@@ -30,7 +30,7 @@
3030
cauthor={盖茨波 $\cdot$$\cdot$ 维克托},
3131
eauthor={Casper Ti.\ Vector},
3232
studentid={00910???},
33-
date={二〇一一年九月},
33+
date={二〇一一年十二月},
3434
school={化学与分子工程学院},
3535
cmajor={化学}, emajor={Chemistry}, direction={理论和计算化学},
3636
cmentor={XX 教授}, ementor={Prof.\ XX},

tex/pkuthss-extra.sty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
2626
\ProvidesPackage{pkuthss-extra}
27-
[2011/09/13 v1.3 rc4 Common extra settings for the pkuthss document class]
27+
[2011/12/21 v1.3 Common extra settings for the pkuthss document class]
2828

2929
% Check the dependency of pkuthss.
3030
\@ifclassloaded{pkuthss}{}{

tex/pkuthss-gbk.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
% pkuthss-extra.sty
2424

2525
\ProvidesFile{pkuthss-gbk.def}
26-
[2011/09/13 v1.3 rc4 Labels and captions in GBK encoding
26+
[2011/12/21 v1.3 Labels and captions in GBK encoding
2727
for the pkuthss document class]
2828

2929
\def\label@ctitle{题目:}

tex/pkuthss-utf8.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
% pkuthss-extra.sty
2424

2525
\ProvidesFile{pkuthss-utf8.def}
26-
[2011/09/13 v1.3 rc4 Labels and captions in UTF-8 encoding
26+
[2011/12/21 v1.3 Labels and captions in UTF-8 encoding
2727
for the pkuthss document class]
2828

2929
\def\label@ctitle{题目:}

tex/pkuthss.cls

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
2626
\ProvidesClass{pkuthss}
27-
[2011/09/13 v1.3 rc4 Peking University dissertation document class]
27+
[2011/12/21 v1.3 Peking University dissertation document class]
2828

2929
% Process the encoding options.
3030
\newif\ifpkuthss@opt@gbk \pkuthss@opt@gbktrue
@@ -71,6 +71,7 @@
7171
% Use the numerical scheme as default.
7272
\RequirePackage[numbers]{natbib}
7373
% Provide \AtEndPreamble used later.
74+
% To be removed by summer in 2013, see the fix of `\hypersetup' below.
7475
\RequirePackage{etoolbox}
7576
% Whether to enable the default extra settings.
7677
\ifpkuthss@opt@extra\RequirePackage{pkuthss-extra}\fi
@@ -97,7 +98,7 @@
9798
% Not directly using the `hyperref' option of `ctex' package in order to avoid
9899
% the conflicts caused by loading of `hyperref' before `setspace' in `ctex'
99100
% package older than 1.02c.
100-
% This piece of code will be deleted by summer in 2013, and we will use the
101+
% This piece of code will be removed by summer in 2013, and we will use the
101102
% `hyperref' option of `ctex' package instead, considering most people
102103
% will be using newer versions of `ctex' package at that time.
103104
\providecommand\hypersetup[1]{\PassOptionsToPackage{#1}{hyperref}}
@@ -181,7 +182,9 @@
181182
\begin{titlepage}
182183
% It will be more nice to use this line skip level in the title page.
183184
\linespread{1.6}\selectfont
184-
% Fill specified space will underline on the bottom line (not the baseline).
185+
% Fill specified space with underline on the bottom line. `\underline'
186+
% draws line on the baseline (not the bottom line), and this is why
187+
% `\CJKunderline' is used here instead.
185188
\def\pkuthss@int@fillinblank##1##2%
186189
{\CJKunderline{\makebox[##1]{##2}}}
187190
% Make the title page centered.

0 commit comments

Comments
 (0)