summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls')
-rw-r--r--Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls97
1 files changed, 72 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls b/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls
index 0a021b8bd75..2abf2d72fb8 100644
--- a/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls
+++ b/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls
@@ -1,7 +1,8 @@
% Peking University dissertation document class
%
% Copyright (c) 2008-2009 solvethis
-% Copyright (c) 2010-2019 Casper Ti. Vector
+% Copyright (c) 2010-2021 Casper Ti. Vector
+% Copyright (c) 2021 Kurapica
%
% 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
@@ -23,7 +24,7 @@
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{pkuthss}
- [2020/11/02 v1.8.3 Peking University dissertation document class]
+ [2021/03/29 v1.9.0 Peking University dissertation document class]
% eg. `\thss@int@boolopt{spacing}{true}' will expand to:
% \newif\ifthss@opt@spacing \thss@opt@spacingtrue
@@ -113,11 +114,11 @@
\ifthss@opt@pkufoot
% Handle the `Unparsed material' issue with latex/dvipdfmx compilation.
\unless\ifxetex\unless\ifpdf
- \newcommand*\pgfsysdriver{pgfsys-dvipdfm.def}
+ \newcommand*{\pgfsysdriver}{pgfsys-dvipdfm.def}
\fi\fi
% Circled text, cf. <https://tex.stackexchange.com/questions/7032/>.
\RequirePackage{tikz}
- \newcommand*\thss@int@circled[1]{%
+ \newcommand*{\thss@int@circled}[1]{%
\scalebox{0.8}{\tikz[baseline = (char.base)]{
\node[
shape = circle, draw = black, minimum size = 1.25em, inner sep = 0pt
@@ -150,9 +151,14 @@
% `tocloft'; it clashes with `subfigure'/`subfig', but the error message will
% say they cannot be used simultaneously.
\RequirePackage{caption, subcaption}
- \DeclareCaptionFont{cfive}{\zihao{5}}
+ \ifthss@opt@ugly
+ \DeclareCaptionFont{capfsize}{\fontsize{11bp}{13.2bp}}
+ \else
+ \DeclareCaptionFont{capfsize}{\zihao{5}}
+ \fi
\DeclareCaptionLabelSeparator{quad}{\quad}
- \captionsetup{font = cfive, labelsep = quad}
+ \captionsetup{font = capfsize, labelsep = quad}
+ \captionsetup[sub]{font = capfsize}
\fi
\ifthss@opt@spacing
@@ -235,20 +241,27 @@
\thss@int@infoitema{ementor}
\thss@int@infoitema{ckeywords}
\thss@int@infoitema{ekeywords}
+\thss@int@infoitema{blindid}
+\thss@int@infoitema{discipline}
\thss@int@infoitemb{cuniversity}
\thss@int@infoitemb{euniversity}
\thss@int@infoitemb{cthesisname}
\thss@int@infoitemb{ethesisname}
+\thss@int@infoitemb{thesiscover}
\thss@int@infoitemb{cabstractname}
\thss@int@infoitemb{eabstractname}
% Set up document information using the `key = value' grammar.
\newcommand*{\pkuthssinfo}[1]{\setkeys{thss@info}{#1}}
+% Becomes \newline in the \makeblind scope.
+\newcommand{\thssnl}{\\}
% Set up page layout.
-\geometry{
- a4paper, hmargin = 2.6cm, top = 2.92cm, bottom = 3.03cm,
- headheight = 0.45cm, headsep = 0.59cm, footskip = 1.05cm
-}
+\geometry{a4paper, hmargin = 2.6cm, headheight = 0.5cm, headsep = 0.6cm}
+\ifthss@opt@ugly
+ \geometry{top = 3.1cm, bottom = 3.0cm, footskip = 0.8cm}
+\else
+ \geometry{top = 3.0cm, bottom = 3.1cm, footskip = 1.1cm}
+\fi
% Set up chapter/section/... captions.
% The `*skip' values are not supposed to be modified by the `ugly' option:
@@ -258,29 +271,29 @@
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{2}
\ctexset{
- chapter = {
- beforeskip = {0bp}, afterskip = {18bp plus 0.2ex},
- nameformat = {}, titleformat = {}
- }, section =
+ chapter = {beforeskip = {0bp}, afterskip = {18bp plus 0.2ex}},
+ section =
{beforeskip = {20bp plus 1ex minus 0.2ex}, afterskip = {5bp plus 0.2ex}},
subsection =
{beforeskip = {12bp plus 1ex minus 0.2ex}, afterskip = {5bp plus 0.2ex}},
subsubsection =
{beforeskip = {12bp plus 1ex minus 0.2ex}, afterskip = {5bp plus 0.2ex}}
}
+\ctexset{
+ chapter = {nameformat = {}, titleformat = {}},
+ subsubsection = {format = {\zihao{-4}\bfseries}}
+}
\ifthss@opt@ugly
\ctexset{
chapter = {format = {\zihao{3}\bfseries\centering}},
section = {format = {\zihao{4}\bfseries}},
- subsection = {format = {\fontsize{13bp}{15.6bp}\selectfont\bfseries}},
- subsubsection = {format = {\zihao{-4}\bfseries}}
+ subsection = {format = {\fontsize{13bp}{15.6bp}\selectfont\bfseries}}
}
\else
\ctexset{
chapter = {format = {\zihao{-2}\bfseries\centering}},
section = {format = {\zihao{-3}\bfseries}},
- subsection = {format = {\zihao{4}\bfseries}},
- subsubsection = {format = {\bfseries}}
+ subsection = {format = {\zihao{4}\bfseries}}
}
\fi
@@ -344,18 +357,23 @@
\renewcommand{\maketitle}{%
\thss@int@pdfmark{\titlepagename}{titlepage}
% Make the title page centered.
- \begin{titlepage}\begingroup\centering
+ \begin{titlepage}\centering
% Emblem and inscription of the university, and type of thesis.
{%
- \zihao{1}%
- \includegraphics[height = 2.4em]{pkulogo}\hspace{0.4em}%
- \raisebox{0.4em}{\includegraphics[height = 1.6em]{pkuword}}\\[0.8em]
- {\bfseries{\cthesisname}}%
+ \ifthss@opt@ugly%
+ \zihao{-0}\includegraphics[height = 1.9em]{pkulogo}\hspace{0.3em}%
+ \raisebox{0.32em}{\includegraphics[height = 1.3em]{pkuword}}\\[0.5em]
+ \else%
+ \zihao{1}\includegraphics[height = 2.4em]{pkulogo}\hspace{0.4em}%
+ \raisebox{0.4em}{\includegraphics[height = 1.6em]{pkuword}}\\[0.8em]
+ \fi%
+ {\bfseries\ifx\thesiscover\empty{\cthesisname}\else{\thesiscover}\fi}%
}
\vfill
% Title of the thesis.
{%
- \zihao{2}{\label@ctitle}\linespread{1.6}\selectfont%
+ \ifthss@opt@ugly\zihao{-1}\else\zihao{2}\fi%
+ \linespread{1.6}\selectfont{\label@ctitle}%
\thss@int@fillinblank{2}{0.64\textwidth}{\textbf{\@ctitle}}%
}
\vfill
@@ -382,7 +400,27 @@
\vfill
% Date.
{\ifthss@opt@ugly\zihao{3}\else\zihao{-2}\fi\@date}
- \par\endgroup\end{titlepage}%
+ \par\end{titlepage}%
+}
+
+% Typeset the title page for double-blind review.
+\newcommand{\makeblind}{%
+ \thss@int@pdfmark{\titlepagename}{titlepage}
+ \begin{titlepage}\renewcommand{\thssnl}{\newline}
+ \centering\zihao{3}\selectfont\fangsong\vspace*{0.5cm}
+ {\zihao{-0}\heiti\cuniversity\cthesisname}\\[0.36\baselineskip]
+ {\zihao{-2}\fangsong\label@blindcover}%
+ \par\vspace{4\baselineskip}
+ \renewcommand{\arraystretch}{1.25}
+ \begin{tabular}{lp{0.75\textwidth}}
+ \label@blindctitle & {\@ctitle} \\
+ \label@blindetitle & {\@etitle} \\\\
+ \label@blinddiscipline & {\@discipline} \\
+ \label@blindmajor & {\@cmajor} \\
+ \label@blindid & {\@blindid} \\
+ \end{tabular}\par\vfill
+ {\@date}\par\vspace*{0.5cm}
+ \end{titlepage}%
}
% Typeset the Chinese abstract.
@@ -406,5 +444,14 @@
\vfill\noindent\textbf{\label@ekeywords}{\@ekeywords}%
}
+% Typeset the English abstract for double-blind review.
+\newenvironment{beabstract}{%
+ \thss@int@pdfmark{\eabstractname}{eabstract}
+ \chapter*{\sffamily\@etitle}\markboth{\eabstractname}{}
+ \begin{center}\textbf{\sffamily\eabstractname}\end{center}\par%
+}{% Keywords at the bottom of the page.
+ \vfill\noindent\textbf{\label@ekeywords}{\@ekeywords}%
+}
+
\endinput
% vim:ft=tex:ts=2:sw=2