Revise comments in package code.

Improve typesetting of the documentation.
Bump version number to `1.3'.
This commit is contained in:
Casper Ti. Vector 2011-12-21 21:24:07 +08:00
parent 628e317aa9
commit 9209c64466
10 changed files with 19 additions and 16 deletions

View File

@ -1,7 +1,7 @@
# vim:ft=make:ts=4:sw=4
TITLE = pkuthss
VERSION = 1.3rc4
VERSION = 1.3
PROJECT = $(TITLE)-$(VERSION)
DIST_DOC = $(PROJECT)/doc
DOC_UTF8LF = $(DIST_DOC)/utf8lf

View File

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

View File

@ -44,7 +44,7 @@
本文档中的版权声明并不是%
学校默认要求的形式\cite{pku-copyright}
符合学校要求的一个版权声明已经放在此文件中,
但用 \texttt{\string\iffalse{} ... \string\fi} %
但用 \texttt{\string\iffalse{} ...\ \string\fi} %
注释掉了,
用户可以考虑使用那个版本。
}

View File

@ -109,7 +109,7 @@
\item \textbf{\texttt{[no]pdfmeta}}
是否自动根据设定的论文文档信息设置%
生成的 pdf 文档的元数据metadata
生成的 pdf 文档的元数据metadata%
\emph{%
注意:
该选项实际上是在 \texttt{\string\maketitle} 时生效的,
@ -262,7 +262,7 @@
pkuthss 文档类建立在 ctexbook\cite{ctex} 文档类的基础上,
并调用了 CJKfntef、%
graphicx\cite{graphicx}、geometry\cite{geometry}%
fancyhdr\cite{fancyhdr} natbib\cite{natbib}%
fancyhdr\cite{fancyhdr}、natbib\cite{natbib} %
etoolbox\cite{etoolbox} 等几个宏包。
因此ctexbook 文档类和这些宏包所提供的功能均可以使用。
@ -297,7 +297,7 @@
因此不建议更改这些设置,它们是:
\begin{itemize}
\item 纸张类型A4
\item 版心尺寸:%
\item 页芯尺寸:%
$240\,\mathrm{mm}\times150\,\mathrm{mm}$
包含页眉、页脚;
\item 默认字号:小四号。

View File

@ -41,10 +41,10 @@
关于 pkuthss 文档模板的意见和建议,
请在北大未名 BBS 的 MathTools 版或 %
Google Code 上 pkuthss 项目的 issue tracker%
\footnote{\url{http://code.google.com/p/caspervector/issues/list}}%
\footnote{\url{http://code.google.com/p/caspervector/issues/list}.}%
上提出,
或通过电子邮件\footnote%
{\href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}}%
{\href{mailto:CasperVector@gmail.com}{\texttt{CasperVector@gmail.com}}.}%
告知 Casper Ti. Vector。
上述三种反馈方法中,建议用户尽量采用靠前的方法。

View File

@ -11,7 +11,7 @@
% 提供 Verbatim 环境和 \VerbatimInput 命令。
\usepackage{fancyvrb}
% pkuthss 文档模版的版本。
\newcommand{\docversion}{v1.3 rc4}
\newcommand{\docversion}{v1.3}
% 参考文献格式。
\bibliographystyle{ref/chinesebst-mod}
@ -30,7 +30,7 @@
cauthor={盖茨波 $\cdot$$\cdot$ 维克托},
eauthor={Casper Ti.\ Vector},
studentid={00910???},
date={二〇一一年},
date={二〇一一年十二},
school={化学与分子工程学院},
cmajor={化学}, emajor={Chemistry}, direction={理论和计算化学},
cmentor={XX 教授}, ementor={Prof.\ XX},

View File

@ -24,7 +24,7 @@
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{pkuthss-extra}
[2011/09/13 v1.3 rc4 Common extra settings for the pkuthss document class]
[2011/12/21 v1.3 Common extra settings for the pkuthss document class]
% Check the dependency of pkuthss.
\@ifclassloaded{pkuthss}{}{

View File

@ -23,7 +23,7 @@
% pkuthss-extra.sty
\ProvidesFile{pkuthss-gbk.def}
[2011/09/13 v1.3 rc4 Labels and captions in GBK encoding
[2011/12/21 v1.3 Labels and captions in GBK encoding
for the pkuthss document class]
\def\label@ctitle{}

View File

@ -23,7 +23,7 @@
% pkuthss-extra.sty
\ProvidesFile{pkuthss-utf8.def}
[2011/09/13 v1.3 rc4 Labels and captions in UTF-8 encoding
[2011/12/21 v1.3 Labels and captions in UTF-8 encoding
for the pkuthss document class]
\def\label@ctitle{}

View File

@ -24,7 +24,7 @@
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{pkuthss}
[2011/09/13 v1.3 rc4 Peking University dissertation document class]
[2011/12/21 v1.3 Peking University dissertation document class]
% Process the encoding options.
\newif\ifpkuthss@opt@gbk \pkuthss@opt@gbktrue
@ -71,6 +71,7 @@
% Use the numerical scheme as default.
\RequirePackage[numbers]{natbib}
% Provide \AtEndPreamble used later.
% To be removed by summer in 2013, see the fix of `\hypersetup' below.
\RequirePackage{etoolbox}
% Whether to enable the default extra settings.
\ifpkuthss@opt@extra\RequirePackage{pkuthss-extra}\fi
@ -97,7 +98,7 @@
% Not directly using the `hyperref' option of `ctex' package in order to avoid
% the conflicts caused by loading of `hyperref' before `setspace' in `ctex'
% package older than 1.02c.
% This piece of code will be deleted by summer in 2013, and we will use the
% This piece of code will be removed by summer in 2013, and we will use the
% `hyperref' option of `ctex' package instead, considering most people
% will be using newer versions of `ctex' package at that time.
\providecommand\hypersetup[1]{\PassOptionsToPackage{#1}{hyperref}}
@ -181,7 +182,9 @@
\begin{titlepage}
% It will be more nice to use this line skip level in the title page.
\linespread{1.6}\selectfont
% Fill specified space will underline on the bottom line (not the baseline).
% Fill specified space with underline on the bottom line. `\underline'
% draws line on the baseline (not the bottom line), and this is why
% `\CJKunderline' is used here instead.
\def\pkuthss@int@fillinblank##1##2%
{\CJKunderline{\makebox[##1]{##2}}}
% Make the title page centered.