% Documentation for pkuthss.
%
% Copyright (c) 2008-2009 solvethis
% Copyright (c) 2010-2016,2018-2019,2021 Casper Ti. Vector
%
% This work may be distributed and/or modified under the conditions of the
% LaTeX Project Public License, either version 1.3 of this license or (at
% your option) any later version.
% The latest version of this license is in
%   https://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX version
% 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
% The current maintainer of this work is Casper Ti. Vector.
%
% This work consists of the following files:
%   pkuthss.tex
%   pkuthss.bib
%   chap/pkuthss-copy.tex
%   chap/pkuthss-abs.tex
%   chap/pkuthss-intro.tex
%   chap/pkuthss-chap1.tex
%   chap/pkuthss-chap2.tex
%   chap/pkuthss-chap3.tex
%   chap/pkuthss-concl.tex
%   chap/pkuthss-encl1.tex
%   chap/pkuthss-ack.tex

\documentclass[UTF8]{pkuthss}
\usepackage[
	backend = biber, style = caspervector, utf8,
	sorting = ecnyt, giveninits = true, sortgiveninits = true
]{biblatex}
\usepackage{iftex, fancyvrb, hologo}

\hypersetup{colorlinks = true, allcolors = blue}
\ctexset{linestretch = 2\ccwd}
\setlength{\hfuzz}{3pt}
\setlength{\bibitemsep}{3bp}
\renewcommand*{\bibfont}{\zihao{5}\linespread{1.27}\selectfont}

\newcommand*{\cupercite}[1]{\supercite{#1}\mbox{}}
\newcommand{\myemph}[1]{\emph{\textcolor{red}{#1}}}
\newcommand{\unemph}[1]{\textup{\textcolor{black}{#1}}}
\RecustomVerbatimEnvironment{Verbatim}{Verbatim}%
	{frame = single, tabsize = 4, formatcom = {\ifXeTeX\xeCJKVerbAddon\fi}}
\RecustomVerbatimCommand{\VerbatimInput}{VerbatimInput}{
	fontsize = {\small}, baselinestretch = 1,
	tabsize = 4, formatcom = {\ifXeTeX\xeCJKVerbAddon\fi}
}

\newif\ifblind\blindfalse
\newcommand*{\docversion}{v1.9.0}
\pkuthssinfo{
	cthesisname = {本科生毕业论文}, ethesisname = {Undergraduate Thesis},
	ctitle = {北京大学学位论文模版{\thssnl}pkuthss \docversion},
	etitle = {%
		PKU dissertation document class%
		\texorpdfstring{\thssnl}{: }pkuthss \docversion%
	},
	cauthor = {盖茨波·钛·维克托}, eauthor = {Casper Ti.\ Vector},
	date = {\zhdigits{2021}年\zhnumber{3}月},
	studentid = {00910???}, school = {化学与分子工程学院},
	cmajor = {应用化学}, emajor = {Applied Chemistry},
	direction = {据说 Casper 自己也不知道},
	cmentor = {XX 教授}, ementor = {Prof.\ XX},
	ckeywords = {\hologo{LaTeX}，排版，文档类，\CTeX{}},
	ekeywords = {\hologo{LaTeX}, Typesetting, Document class, \CTeX{}},
	blindid = {???01900}, discipline = {化学}
}
\addbibresource{pkuthss.bib}

\begin{document}
	\frontmatter
	\pagestyle{empty}
	\ifblind\makeblind\else\maketitle\fi
	\cleardoublepage
	\include{chap/pkuthss-copy}

	\cleardoublepage
	\pagestyle{plain}
	\setcounter{page}{0}
	\pagenumbering{Roman}
	\include{chap/pkuthss-abs}
	\tableofcontents

	\mainmatter
	\include{chap/pkuthss-intro}
	\include{chap/pkuthss-chap1}
	\include{chap/pkuthss-chap2}
	\include{chap/pkuthss-chap3}
	\include{chap/pkuthss-concl}

	\appendix
	\printbibliography[heading = bibintoc]
	\include{chap/pkuthss-encl1}

	\backmatter
	\ifblind\else\include{chap/pkuthss-ack}\fi
	\include{chap/origin}
\end{document}

% vim:ts=4:sw=4
