diff --git a/doc/example/thesis.tex b/doc/example/thesis.tex index 368e8d6..7c1b6bd 100644 --- a/doc/example/thesis.tex +++ b/doc/example/thesis.tex @@ -27,7 +27,8 @@ % 设定文档的基本信息。 \pkuthssinfo{ - cthesisname = {博士研究生学位论文}, ethesisname = {Doctor Thesis}, + cthesisname = {博士学位论文}, ethesisname = {Doctor Thesis}, + thesiscover = {博士研究生学位论文}, ctitle = {测试文档}, etitle = {Test Document}, cauthor = {某某}, eauthor = {Test}, date = {某年某月}, diff --git a/doc/readme/chap/pkuthss-chap2.tex b/doc/readme/chap/pkuthss-chap2.tex index a51d5e5..00b3ee1 100644 --- a/doc/readme/chap/pkuthss-chap2.tex +++ b/doc/readme/chap/pkuthss-chap2.tex @@ -195,16 +195,20 @@ \item \texttt{\bfseries\string\euniversity}:大学的西文名。 \item \texttt{\bfseries\string\cthesisname}:论文类别的中文名。 \item \texttt{\bfseries\string\ethesisname}:论文类别的西文名。 + \item \texttt{\bfseries\string\thesiscover}:封面显示的论文类别\footnote{% + 出于兼容性的考虑,如果 \texttt{\string\thesiscover} 为空, + 那么封面将显示 \texttt{\string\cthesisname}。% + }。 \item \texttt{\bfseries\string\cabstractname}:摘要的中文标题。 \item \texttt{\bfseries\string\eabstractname}:摘要的西文标题。 \end{itemize} -例如, -如果要设定论文的类别为“本科生毕业论文”(“Undergraduate Thesis”), -则可以使用以下命令: +例如,如果要设定论文的类别为“博士学位论文”(“Doctor Thesis”), +但封面要显示“博士研究生学位论文”,则可以使用以下命令: \begin{Verbatim} -\renewcommand{\cthesisname}{本科生毕业论文} -\renewcommand{\ethesisname}{Undergraduate Thesis} +\renewcommand{\cthesisname}{博士学位论文} +\renewcommand{\ethesisname}{Doctor Thesis} +\renewcommand{\thesiscover}{博士研究生学位论文} \end{Verbatim} \subsection{以“key = value”格式设置文档信息} diff --git a/tex/pkuthss-gbk.def b/tex/pkuthss-gbk.def index caf9986..2e80141 100644 --- a/tex/pkuthss-gbk.def +++ b/tex/pkuthss-gbk.def @@ -1,7 +1,7 @@ % Peking University dissertation document class % % Copyright (c) 2008-2009 solvethis -% Copyright (c) 2010-2013,2015 Casper Ti. Vector +% Copyright (c) 2010-2013,2015,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 @@ -39,8 +39,9 @@ \def\titlepagename{} \def\cuniversity{ѧ} \def\euniversity{Peking University} -\def\cthesisname{ʿоѧλ} +\def\cthesisname{ʿѧλ} \def\ethesisname{Doctor Thesis} +\def\thesiscover{} \def\cabstractname{ժҪ} \def\eabstractname{ABSTRACT} diff --git a/tex/pkuthss-utf8.def b/tex/pkuthss-utf8.def index a5f2722..54a5e24 100644 --- a/tex/pkuthss-utf8.def +++ b/tex/pkuthss-utf8.def @@ -1,7 +1,7 @@ % Peking University dissertation document class % % Copyright (c) 2008-2009 solvethis -% Copyright (c) 2010-2013,2015 Casper Ti. Vector +% Copyright (c) 2010-2013,2015,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 @@ -39,8 +39,9 @@ \def\titlepagename{封面} \def\cuniversity{北京大学} \def\euniversity{Peking University} -\def\cthesisname{博士研究生学位论文} +\def\cthesisname{博士学位论文} \def\ethesisname{Doctor Thesis} +\def\thesiscover{} \def\cabstractname{摘要} \def\eabstractname{ABSTRACT} diff --git a/tex/pkuthss.cls b/tex/pkuthss.cls index af3ec67..3c3550c 100644 --- a/tex/pkuthss.cls +++ b/tex/pkuthss.cls @@ -239,6 +239,7 @@ \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. @@ -350,7 +351,7 @@ \zihao{1}% \includegraphics[height = 2.4em]{pkulogo}\hspace{0.4em}% \raisebox{0.4em}{\includegraphics[height = 1.6em]{pkuword}}\\[0.8em] - {\bfseries{\cthesisname}}% + {\bfseries\ifx\thesiscover\empty{\cthesisname}\else{\thesiscover}\fi}% } \vfill % Title of the thesis.