casthss/thesis.tex

108 lines
3.9 KiB
TeX
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

% Copyright (c) 2008-2009 solvethis
% Copyright (c) 2010-2018 Casper Ti. Vector
% Public domain.
%
% 使用前请先仔细阅读 biblatex-caspervector 的文档,
% 特别是其中的 FAQ 部分和用红色强调的部分。
\documentclass[UTF8]{casthss}
% 使用 biblatex 排版参考文献,并规定其格式(详见 biblatex-caspervector 的文档)。
% 这里按照西文文献在前中文文献在后排序“sorting = ecnyt”
% 若须按照中文文献在前西文文献在后排序请设置“sorting = cenyt”
% 若须按照引用顺序排序请设置“sorting = none”。
% 若须在排序中实现更复杂的需求,请参考 biblatex-caspervector 的文档。
\usepackage[backend = biber, style = caspervector, utf8, sorting = ecnyt]{biblatex}
% 按学校要求设定参考文献列表的字体和段间距。
\renewcommand*{\bibfont}{\zihao{5}}
\setlength{\bibitemsep}{0pt}
% 设定文档的基本信息。
\casthssinfo{
cthesisname = {博士学位论文}, ethesisname = {dissertation},
ctitle = {测试文档}, etitle = {Test Document},
cauthor = {某某}, eauthor = {Test},
cdate = {某年某月}, edate = {Month, Year},
cmentor = {某某\ 研究员\\(中国科学院某某研究所)},
ementor = {Prof.\ Somebody},
cdegree = {理学博士}, edegree = {Doctor of Philosophy},
cmajor = {某某专业}, emajor = {Some Major},
cschool = {中国科学院某某研究所},
eschool = {Institute of Something, Chinese Academy of Sciences},
ckeywords = {其一,其二}, ekeywords = {First, Second},
% 导师多于一位时可通过 mentorlines 字段调整封面“指导教师”部分的行数。
% 涉密论文可将 confidential 字段设为“秘密\ ★\ 10 年”等内容。
mentorlines = {2}, confidential = {}
}
% 载入参考文献数据库(注意不要省略“.bib”
\addbibresource{thesis.bib}
% 普通用户可删除此段,并相应地删除 chap/*.tex 中的
% “\casthssffaq % 中文测试文字。”一行。
\usepackage{color}
\def\casthssffaq{%
\emph{\textcolor{red}{casthss 文档模版最常见问题:}}
\texttt{\string\cite}\texttt{\string\parencite} %
\texttt{\string\supercite} 三个命令分别产生%
未格式化的、带方括号的和上标且带方括号的引用标记:%
\cite{test-en}\parencite{test-zh}\supercite{test-en, test-zh}%
}
\begin{document}
% 以下为正文之前的部分,默认不进行章节编号。
\frontmatter
% 此后到下一 \pagestyle 命令之前不排版页眉或页脚。
\pagestyle{empty}
% 自动生成中文封面。
\maketitle
% 自动生成西文封面。
\cleardoublepage
\emaketitle
% 原创性声明和使用授权说明。
\cleardoublepage
\include{chap/origin}
% 此后到下一 \pagestyle 命令之前正常排版页眉,居中排版页脚。
\cleardoublepage
\fancypagestyle{plain}{\fancyfoot[C]{\zihao{-5}\normalfont{\thepage}}}
\pagestyle{plain}
% 重置页码计数器,用大写罗马数字排版此部分页码。
\setcounter{page}{0}
\pagenumbering{Roman}
% 中西文摘要。
\include{chap/abs}
% 自动生成目录和图表目录。
\tableofcontents
\listoffigures
\listoftables
% 以下为正文部分,页码在页面外边界排版,默认要进行章节编号。
\mainmatter
\fancypagestyle{plain}%
{\fancyfoot{}\fancyfoot[LE,RO]{\zihao{-5}\normalfont{\thepage}}}
\pagestyle{plain}
% 各章节。
\include{chap/chap1}
\include{chap/chap2}
\include{chap/chap3}
% 正文中的附录部分。
\appendix
% 排版参考文献列表。bibintoc 选项使“参考文献”出现在目录中;
\printbibliography[heading = bibintoc]
% 各附录。
\include{chap/encl1}
% 以下为正文之后的部分,默认不进行章节编号。
\backmatter
% 致谢。
\include{chap/ack}
% 简历及成果。
\include{chap/bio}
% 最末的左页须有页眉页脚。
\cleardoublepage
\end{document}
% vim:ts=4:sw=4