Load the etoolbox package in order to use `\AtEndPreamble' correctly.
Bump version number to `1.3 beta3'.
This commit is contained in:
parent
3be755d2a2
commit
7a89e0ae03
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
||||
# vim:ft=make:ts=4:sw=4
|
||||
|
||||
PROJECT = pkuthss-1.3beta2
|
||||
PROJECT = pkuthss-1.3beta3
|
||||
SOURCES = tex/ doc/
|
||||
DEST_UTF8LF = $(PROJECT)-utf8lf
|
||||
DEST_GBKCRLF = $(PROJECT)-gbkcrlf
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
2011/4/15,ver 1.3 beta2(包括前面所有 alpha 和 beta 版本):
|
||||
2011/5/10,ver 1.3 beta3(包括前面所有 alpha 和 beta 版本):
|
||||
--- 进一步重构,
|
||||
将核心设置集中于 pkuthss 文档类中,
|
||||
常见的额外设置集中于 pkuthss-extra 宏包中。
|
||||
|
||||
@ -90,8 +90,8 @@
|
||||
对于支持 \TeX{} 目录结构(TDS)标准的 \TeX{} 发行版%
|
||||
(其中包括 \TeX{}Live 和 \CTeX{}),
|
||||
安装 pkuthss 文档模版都是通过类似的方式:
|
||||
将 \verb|tex/| 中的内容放在 \verb|$TEXMF/tex/latex/ctex/|,
|
||||
将 \verb|doc/| 中的内容放在 \verb|$TEXMF/doc/latex/ctex/|。
|
||||
将 \verb|tex/| 中内容放在 \verb|$TEXMF/tex/latex/pkuthss/|,
|
||||
\verb|doc/| 中内容放在 \verb|$TEXMF/doc/latex/pkuthss/|。
|
||||
其中 \verb|$TEXMF| 是用户系统上的 texmf 目录,
|
||||
我们推荐使用 \verb|$TEXMFHOME| 或者 \verb|$TEXMFLOCAL|:
|
||||
\begin{itemize}
|
||||
|
||||
@ -247,7 +247,8 @@
|
||||
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 文档类和这些宏包所提供的功能均可以使用。
|
||||
|
||||
例如,用户如果想将目录的标题改为“目{\quad\quad}录”,
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
% SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
% 原创性声明和使用授权说明页不需要装订到论文中,故不显示页码。
|
||||
\cleardoublepage\pagestyle{empty}
|
||||
\cleardoublepage\thispagestyle{empty}
|
||||
{
|
||||
\linespread{1.5}\selectfont
|
||||
\section*{北京大学学位论文原创性声明和使用授权说明}
|
||||
|
||||
@ -11,22 +11,29 @@
|
||||
% 提供 Verbatim 环境和 \VerbatimInput 命令。
|
||||
\usepackage{fancyvrb}
|
||||
% pkuthss 文档模版的版本。
|
||||
\newcommand{\docversion}{v1.3 beta2}
|
||||
\newcommand{\docversion}{v1.3 beta3}
|
||||
|
||||
% 参考文献格式。
|
||||
\bibliographystyle{ref/chinesebst-mod}
|
||||
% 设定文档的基本信息。
|
||||
\pkuthssinfo{
|
||||
cthesisname={本科生毕业论文},ethesisname={Undergraduate Thesis},
|
||||
cthesisname={本科生毕业论文}, ethesisname={Undergraduate Thesis},
|
||||
ctitle={北京大学论文文档模板\\pkuthss \docversion},
|
||||
etitle={The PKU dissertation document class\\pkuthss \docversion},
|
||||
% “\\”在设定 pdf 元数据时会被自动过滤掉,于是得到的 pdf 元数据中标题为
|
||||
% The PKU dissertation document classpkuthss [版本号]
|
||||
% 此处指定其被替换为“: ”,以使之为
|
||||
% The PKU dissertation document class: pkuthss [版本号]
|
||||
etitle={%
|
||||
The PKU dissertation document class\texorpdfstring{\\}{: }%
|
||||
pkuthss \docversion%
|
||||
},
|
||||
cauthor={盖茨波 $\cdot$ 钛 $\cdot$ 维克托},
|
||||
eauthor={Casper Ti.\ Vector},
|
||||
studentid={00910???},
|
||||
date={二〇一一年四月},
|
||||
date={二〇一一年五月},
|
||||
school={化学与分子工程学院},
|
||||
cmajor={化学},emajor={Chemistry},direction={理论和计算化学},
|
||||
cmentor={XX 教授},ementor={Prof.\ XX},
|
||||
cmajor={化学}, emajor={Chemistry}, direction={理论和计算化学},
|
||||
cmentor={XX 教授}, ementor={Prof.\ XX},
|
||||
ckeywords={\LaTeX2e{},排版,文档类,\CTeX{}},
|
||||
ekeywords={\LaTeX2e{}, typesetting, document class, \CTeX{}},
|
||||
}
|
||||
@ -56,13 +63,13 @@
|
||||
% 结论。
|
||||
\include{chap/conclusion}
|
||||
|
||||
\begin{appendix}
|
||||
% 参考文献。
|
||||
\bibliography{ref/pkuthss}
|
||||
% 各附录。
|
||||
\include{chap/encl1}
|
||||
\include{chap/encl2}
|
||||
\end{appendix}
|
||||
% 正文中的附录部分。
|
||||
\appendix
|
||||
% 参考文献。
|
||||
\bibliography{ref/pkuthss}
|
||||
% 各附录。
|
||||
\include{chap/encl1}
|
||||
\include{chap/encl2}
|
||||
|
||||
% 以下为正文之后的部分。
|
||||
\backmatter
|
||||
|
||||
@ -37,6 +37,14 @@
|
||||
YEAR = "2009",
|
||||
}
|
||||
|
||||
@MISC{etoolbox,
|
||||
AUTHOR = "Philipp Lehman",
|
||||
TITLE = "The \texttt{etoolbox} package: An e-TeX Toolbox for Class and Package Authors
|
||||
",
|
||||
VERSION = "2.1",
|
||||
YEAR = "2011",
|
||||
}
|
||||
|
||||
@MISC{fancyhdr,
|
||||
AUTHOR = "Piet van Oostrum",
|
||||
TITLE = "Page layout in \LaTeX{}",
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
||||
\ProvidesPackage{pkuthss-extra}
|
||||
[2011/04/15 v1.3 beta2 Extra settings for pkuthss document class]
|
||||
[2011/05/10 v1.3 beta3 Extra settings for pkuthss document class]
|
||||
|
||||
% 检查对 pkuthss 文档类的依赖是否满足。
|
||||
\@ifclassloaded{pkuthss}{}{
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
||||
\ProvidesClass{pkuthss}
|
||||
[2011/04/15 v1.3 beta2 Peking University dissertation document class]
|
||||
[2011/05/10 v1.3 beta3 Peking University dissertation document class]
|
||||
|
||||
% 处理编码选项。
|
||||
\newif\ifpkuthss@opt@gbk \pkuthss@opt@gbktrue
|
||||
@ -53,6 +53,8 @@
|
||||
% 此宏包提供了方便使用的命令用于设置引用标记的格式。
|
||||
% 默认使用顺序(数字)编码制。
|
||||
\RequirePackage[numbers]{natbib}
|
||||
% 提供后面使用的 \AtEndPreamble 命令。
|
||||
\RequirePackage{etoolbox}
|
||||
% 是否采用默认的额外设置。
|
||||
\ifpkuthss@opt@extra\RequirePackage{pkuthss-extra}\fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user