2012-05-18 12:44:56 +08:00
|
|
|
|
% vim:ts=4:sw=4
|
|
|
|
|
|
%
|
2011-06-26 02:08:21 +08:00
|
|
|
|
% Copyright (c) 2008-2009 solvethis
|
2012-04-13 22:10:22 +08:00
|
|
|
|
% Copyright (c) 2010-2012 Casper Ti. Vector
|
2011-06-26 02:08:21 +08:00
|
|
|
|
% Public domain.
|
2012-05-28 17:05:01 +08:00
|
|
|
|
%
|
2012-10-10 22:08:00 +08:00
|
|
|
|
% 使用前请先仔细阅读 pkuthss 和 biblatex-caspervector 的文档,
|
2012-06-01 10:09:01 +08:00
|
|
|
|
% 特别是其中的 FAQ 部分和用红色强调的部分。
|
2012-10-10 22:08:00 +08:00
|
|
|
|
% 两者可在终端/命令提示符中用
|
|
|
|
|
|
% texdoc pkuthss
|
|
|
|
|
|
% texdoc biblatex-caspervector
|
|
|
|
|
|
% 调出。
|
2011-06-26 02:08:21 +08:00
|
|
|
|
|
2012-03-24 22:09:03 +08:00
|
|
|
|
% 在黑白打印时彩色链接可能变成浅灰色,此时可将“colorlinks”改为“nocolorlinks”。
|
2012-05-30 21:13:41 +08:00
|
|
|
|
\documentclass[UTF8, colorlinks, notocbibind]{pkuthss}
|
2011-06-26 02:08:15 +08:00
|
|
|
|
|
2012-05-30 17:40:33 +08:00
|
|
|
|
% 使用 biblatex 排版参考文献,并规定其格式。
|
|
|
|
|
|
\usepackage[backend = biber, style = caspervector, utf8]{biblatex}
|
2011-06-26 02:08:21 +08:00
|
|
|
|
% 使得打字机粗体可以被使用。
|
|
|
|
|
|
\usepackage{lmodern}
|
|
|
|
|
|
% 产生 originauth.tex 里的 \square。
|
|
|
|
|
|
\usepackage{amssymb}
|
|
|
|
|
|
% 提供 Verbatim 环境和 \VerbatimInput 命令。
|
2011-06-26 02:08:20 +08:00
|
|
|
|
\usepackage{fancyvrb}
|
2011-06-26 02:08:15 +08:00
|
|
|
|
|
2012-05-28 17:05:01 +08:00
|
|
|
|
% 使被强调的内容为红色。
|
2012-05-30 17:40:33 +08:00
|
|
|
|
\newcommand{\myemph}[1]{\emph{\textcolor{red}{#1}}}
|
2012-05-28 17:05:01 +08:00
|
|
|
|
|
|
|
|
|
|
% pkuthss 文档模版的版本。
|
2013-01-10 15:43:26 +08:00
|
|
|
|
\newcommand{\docversion}{v1.4 rc1}
|
2011-06-26 02:08:20 +08:00
|
|
|
|
% 设定文档的基本信息。
|
|
|
|
|
|
\pkuthssinfo{
|
2012-04-13 22:10:22 +08:00
|
|
|
|
cthesisname = {本科生毕业论文}, ethesisname = {Undergraduate Thesis},
|
|
|
|
|
|
ctitle = {北京大学论文文档模版\\pkuthss \docversion},
|
2012-03-24 16:18:29 +08:00
|
|
|
|
% “\\”在设定 pdf 属性时会被自动过滤掉,于是得到的 pdf 属性中标题为
|
2011-06-26 02:08:24 +08:00
|
|
|
|
% The PKU dissertation document classpkuthss [版本号]
|
|
|
|
|
|
% 此处指定其被替换为“: ”,以使之为
|
|
|
|
|
|
% The PKU dissertation document class: pkuthss [版本号]
|
2012-04-13 22:10:22 +08:00
|
|
|
|
etitle = {%
|
2011-06-26 02:08:24 +08:00
|
|
|
|
The PKU dissertation document class\texorpdfstring{\\}{: }%
|
|
|
|
|
|
pkuthss \docversion%
|
|
|
|
|
|
},
|
2012-04-13 22:10:22 +08:00
|
|
|
|
cauthor = {盖茨波 $\cdot$ 钛 $\cdot$ 维克托},
|
|
|
|
|
|
eauthor = {Casper Ti.\ Vector},
|
|
|
|
|
|
studentid = {00910???},
|
2013-01-10 15:43:26 +08:00
|
|
|
|
date = {二〇一三年一月},
|
2012-04-13 22:10:22 +08:00
|
|
|
|
school = {化学与分子工程学院},
|
2012-08-28 11:26:01 +08:00
|
|
|
|
cmajor = {化学(?)}, emajor = {Chemistry},
|
2012-05-28 17:05:01 +08:00
|
|
|
|
direction = {据说 Casper 自己也不知道},
|
2012-04-13 22:10:22 +08:00
|
|
|
|
cmentor = {XX 教授}, ementor = {Prof.\ XX},
|
|
|
|
|
|
ckeywords = {\LaTeX2e{},排版,文档类,\CTeX{}},
|
|
|
|
|
|
ekeywords = {\LaTeX2e{}, typesetting, document class, \CTeX{}}
|
2011-06-26 02:08:20 +08:00
|
|
|
|
}
|
2012-05-30 17:40:33 +08:00
|
|
|
|
% 导入参考文献数据库(注意不要省略“.bib”)。
|
|
|
|
|
|
\addbibresource{pkuthss.bib}
|
2011-06-26 02:08:21 +08:00
|
|
|
|
|
2011-06-26 02:08:15 +08:00
|
|
|
|
\begin{document}
|
2011-06-26 02:08:21 +08:00
|
|
|
|
% 以下为正文之前的部分。
|
2011-06-26 02:08:20 +08:00
|
|
|
|
\frontmatter
|
2011-06-26 02:08:21 +08:00
|
|
|
|
|
2011-06-26 02:08:15 +08:00
|
|
|
|
% 自动生成标题页。
|
|
|
|
|
|
\maketitle
|
|
|
|
|
|
% 版权声明。
|
|
|
|
|
|
\include{chap/copyright}
|
|
|
|
|
|
% 中英文摘要。
|
|
|
|
|
|
\include{chap/abstract}
|
|
|
|
|
|
% 自动生成目录。
|
|
|
|
|
|
\tableofcontents
|
|
|
|
|
|
|
2011-06-26 02:08:21 +08:00
|
|
|
|
% 以下为正文。
|
2011-06-26 02:08:20 +08:00
|
|
|
|
\mainmatter
|
2011-06-26 02:08:15 +08:00
|
|
|
|
|
|
|
|
|
|
% 绪言。
|
|
|
|
|
|
\include{chap/introduction}
|
|
|
|
|
|
% 各章节。
|
|
|
|
|
|
\include{chap/chap1}
|
|
|
|
|
|
\include{chap/chap2}
|
|
|
|
|
|
\include{chap/chap3}
|
|
|
|
|
|
% 结论。
|
|
|
|
|
|
\include{chap/conclusion}
|
2011-06-26 02:08:20 +08:00
|
|
|
|
|
2011-06-26 02:08:24 +08:00
|
|
|
|
% 正文中的附录部分。
|
|
|
|
|
|
\appendix
|
2012-05-30 21:13:41 +08:00
|
|
|
|
% 排版参考文献列表,并使其出现在目录中。
|
|
|
|
|
|
% 如果同时要使参考文献列表参与章节编号,可将“bibintoc”改为“bibnumbered”。
|
|
|
|
|
|
\printbibliography[heading = bibintoc]
|
2011-06-26 02:08:24 +08:00
|
|
|
|
% 各附录。
|
|
|
|
|
|
\include{chap/encl1}
|
|
|
|
|
|
\include{chap/encl2}
|
2011-06-26 02:08:15 +08:00
|
|
|
|
|
2011-06-26 02:08:21 +08:00
|
|
|
|
% 以下为正文之后的部分。
|
2011-06-26 02:08:20 +08:00
|
|
|
|
\backmatter
|
2011-06-26 02:08:15 +08:00
|
|
|
|
|
|
|
|
|
|
% 致谢。
|
2012-05-18 12:44:56 +08:00
|
|
|
|
\include{chap/acknowledge}
|
2011-06-26 02:08:21 +08:00
|
|
|
|
% 原创性声明和使用授权说明。
|
2011-06-26 02:08:15 +08:00
|
|
|
|
\include{chap/originauth}
|
|
|
|
|
|
\end{document}
|
|
|
|
|
|
|