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
|
2015-04-27 17:12:38 +08:00
|
|
|
|
% Copyright (c) 2010-2015 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
|
|
|
|
|
2013-12-26 18:18:25 +08:00
|
|
|
|
% 采用了自定义的(包括大小写不同于原文件的)字体文件名,
|
|
|
|
|
|
% 并改动 ctex.cfg 等配置文件的用户请自行加入 nofonts 选项;
|
|
|
|
|
|
% 其它用户不用加入 nofonts 选项,加入之后反而会产生错误。
|
2015-12-16 20:28:58 +08:00
|
|
|
|
\documentclass[UTF8]{pkuthss}
|
2011-06-26 02:08:15 +08:00
|
|
|
|
|
2015-06-18 19:35:37 +08:00
|
|
|
|
% 使用 biblatex 排版参考文献,并规定其格式(详见 biblatex-caspervector 的文档)。
|
|
|
|
|
|
% 这里按照英文文献在前,中文文献在后排序(“sorting = ecnty”);
|
|
|
|
|
|
% 若需按照中文文献在前,英文文献在后排序,请设置“sorting = centy”;
|
|
|
|
|
|
% 若需按照引用顺序排序,请设置“sorting = none”。
|
2013-03-29 12:59:27 +08:00
|
|
|
|
\usepackage[backend = biber, style = caspervector, utf8, sorting = none]{biblatex}
|
2011-06-26 02:08:15 +08:00
|
|
|
|
|
2015-04-27 15:37:08 +08:00
|
|
|
|
% 按学校要求设定参考文献列表中的条目之内及之间的距离。
|
2015-04-27 17:16:06 +08:00
|
|
|
|
\setlength{\bibitemsep}{3bp}
|
2015-12-16 20:18:27 +08:00
|
|
|
|
% 对于 linespread 值的计算过程有兴趣的同学可以参考 pkuthss.cls。
|
2015-04-27 15:37:08 +08:00
|
|
|
|
\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont}
|
2015-04-27 17:16:06 +08:00
|
|
|
|
|
2011-06-26 02:08:20 +08:00
|
|
|
|
% 设定文档的基本信息。
|
|
|
|
|
|
\pkuthssinfo{
|
2015-05-16 18:49:13 +08:00
|
|
|
|
cthesisname = {博士研究生学位论文}, ethesisname = {Doctor Thesis},
|
2014-04-11 18:05:20 +08:00
|
|
|
|
ctitle = {测试文档}, etitle = {Test Document},
|
|
|
|
|
|
cauthor = {某某},
|
|
|
|
|
|
eauthor = {Test},
|
|
|
|
|
|
studentid = {0123456789},
|
|
|
|
|
|
date = {某年某月},
|
|
|
|
|
|
school = {某某学院},
|
2014-04-26 18:51:36 +08:00
|
|
|
|
cmajor = {某某专业}, emajor = {Some Major},
|
2014-04-11 18:05:20 +08:00
|
|
|
|
direction = {某某方向},
|
|
|
|
|
|
cmentor = {某某教授}, ementor = {Prof.\ Somebody},
|
2015-04-26 19:41:26 +08:00
|
|
|
|
ckeywords = {其一,其二}, ekeywords = {First, Second}
|
2011-06-26 02:08:20 +08:00
|
|
|
|
}
|
2015-04-30 15:11:52 +08:00
|
|
|
|
% 载入参考文献数据库(注意不要省略“.bib”)。
|
2014-04-11 18:05:20 +08:00
|
|
|
|
\addbibresource{thesis.bib}
|
2011-06-26 02:08:21 +08:00
|
|
|
|
|
2014-07-07 21:07:33 +08:00
|
|
|
|
% 普通用户可删除此段。
|
2014-10-07 13:21:05 +08:00
|
|
|
|
\usepackage{color}
|
2014-07-07 21:07:33 +08:00
|
|
|
|
\def\pkuthssffaq{%
|
|
|
|
|
|
\emph{\textcolor{red}{pkuthss 文档模版最常见问题:}}
|
|
|
|
|
|
|
|
|
|
|
|
\texttt{\string\cite}、\texttt{\string\parencite} %
|
|
|
|
|
|
和 \texttt{\string\supercite} 三个命令分别产生%
|
|
|
|
|
|
未格式化的、带方括号的和上标且带方括号的引用标记:%
|
2015-01-15 12:47:35 +08:00
|
|
|
|
\cite{test-en},\parencite{test-zh}、\supercite{test-en, test-zh}。
|
2014-07-07 21:07:33 +08:00
|
|
|
|
|
2015-04-26 23:59:38 +08:00
|
|
|
|
若要避免章末空白页,请在调用 pkuthss 文档类时加入 \texttt{openany} 选项。
|
2015-01-15 12:47:35 +08:00
|
|
|
|
|
|
|
|
|
|
如果编译时不出参考文献,
|
2015-04-27 14:26:07 +08:00
|
|
|
|
请参考 \texttt{texdoc pkuthss}“问题及其解决”一章
|
2015-01-15 12:47:35 +08:00
|
|
|
|
“其它可能存在的问题”一节中关于 biber 的说明。
|
2014-07-07 21:07:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2011-06-26 02:08:15 +08:00
|
|
|
|
\begin{document}
|
2015-04-26 23:59:38 +08:00
|
|
|
|
% 以下为正文之前的部分,默认不进行章节编号。
|
2011-06-26 02:08:20 +08:00
|
|
|
|
\frontmatter
|
2015-06-03 16:00:35 +08:00
|
|
|
|
% 此后到下一 \pagestyle 命令之前不排版页眉或页脚。
|
|
|
|
|
|
\pagestyle{empty}
|
2015-06-03 14:24:34 +08:00
|
|
|
|
% 自动生成封面。
|
2011-06-26 02:08:15 +08:00
|
|
|
|
\maketitle
|
2015-04-26 23:59:38 +08:00
|
|
|
|
|
2015-06-03 16:00:35 +08:00
|
|
|
|
% 此后到下一 \pagestyle 命令之前正常排版页眉和页脚。
|
|
|
|
|
|
% 封面要求单面打印,故需新开右页,此处已一并实现。
|
2015-04-26 23:59:38 +08:00
|
|
|
|
\cleardoublepage
|
2015-06-03 16:00:35 +08:00
|
|
|
|
\pagestyle{plain}
|
2015-04-26 23:59:38 +08:00
|
|
|
|
% 重置页码计数器,用大写罗马数字排版此部分页码。
|
|
|
|
|
|
\setcounter{page}{0}
|
|
|
|
|
|
\pagenumbering{Roman}
|
|
|
|
|
|
|
2015-06-03 14:24:34 +08:00
|
|
|
|
% 版权声明。
|
|
|
|
|
|
\include{chap/copyright}
|
2011-06-26 02:08:15 +08:00
|
|
|
|
% 中英文摘要。
|
|
|
|
|
|
\include{chap/abstract}
|
|
|
|
|
|
% 自动生成目录。
|
|
|
|
|
|
\tableofcontents
|
|
|
|
|
|
|
2015-04-26 23:59:38 +08:00
|
|
|
|
% 以下为正文部分,默认要进行章节编号。
|
2011-06-26 02:08:20 +08:00
|
|
|
|
\mainmatter
|
2014-07-06 19:47:40 +08:00
|
|
|
|
% 序言。
|
2011-06-26 02:08:15 +08:00
|
|
|
|
\include{chap/introduction}
|
|
|
|
|
|
% 各章节。
|
|
|
|
|
|
\include{chap/chap1}
|
|
|
|
|
|
% 结论。
|
|
|
|
|
|
\include{chap/conclusion}
|
2011-06-26 02:08:20 +08:00
|
|
|
|
|
2011-06-26 02:08:24 +08:00
|
|
|
|
% 正文中的附录部分。
|
|
|
|
|
|
\appendix
|
2013-03-30 02:50:56 +08:00
|
|
|
|
% 排版参考文献列表。
|
2013-03-29 12:59:27 +08:00
|
|
|
|
\printbibliography[
|
2013-03-30 02:50:56 +08:00
|
|
|
|
% 使“参考文献”出现在目录中;如果同时要使参考文献列表参与章节编号,
|
|
|
|
|
|
% 可将“bibintoc”改为“bibnumbered”。
|
2013-03-29 12:59:27 +08:00
|
|
|
|
heading = bibintoc,
|
2013-03-30 02:50:56 +08:00
|
|
|
|
% 单独设定排序方案。此设定会局部覆盖之前的全局设置。
|
|
|
|
|
|
% 注:只有同时使用 2.x 或之后版本的 biblatex 和相应兼容版本的 biber,
|
2013-03-29 12:59:27 +08:00
|
|
|
|
% 才能对每个 \printbibliography 命令采用不同的排序方案,
|
2015-04-30 15:11:52 +08:00
|
|
|
|
% 否则只能在载入 biblatex 宏包时就(全局)指定排序方案。
|
2013-12-26 18:43:20 +08:00
|
|
|
|
% 在这样的情况下,请去掉所有的 sorting 选项,否则可能出错。
|
2015-06-18 19:35:37 +08:00
|
|
|
|
% 此外,biblatex 3.0 中 \printbibliography 的 sorting 选项失效,
|
|
|
|
|
|
% 详见 biblatex-caspervector 的文档。
|
2013-03-29 12:59:27 +08:00
|
|
|
|
sorting = ecnty
|
|
|
|
|
|
]
|
2011-06-26 02:08:24 +08:00
|
|
|
|
% 各附录。
|
|
|
|
|
|
\include{chap/encl1}
|
2011-06-26 02:08:15 +08:00
|
|
|
|
|
2015-04-26 23:59:38 +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}
|
|
|
|
|
|
|