diff options
Diffstat (limited to 'macros/latex/contrib/pkuthss/tex/pkuthss.cls')
-rw-r--r-- | macros/latex/contrib/pkuthss/tex/pkuthss.cls | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/macros/latex/contrib/pkuthss/tex/pkuthss.cls b/macros/latex/contrib/pkuthss/tex/pkuthss.cls index 2abf2d72fb..e03a7bd4e4 100644 --- a/macros/latex/contrib/pkuthss/tex/pkuthss.cls +++ b/macros/latex/contrib/pkuthss/tex/pkuthss.cls @@ -17,6 +17,7 @@ % % This work consists of the following files: % pkuthss.cls +% pkuthss.def % pkuthss-gbk.def % pkuthss-utf8.def % pkulogo.eps @@ -24,7 +25,7 @@ \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{pkuthss} - [2021/03/29 v1.9.0 Peking University dissertation document class] + [2021/10/16 v1.9.1 Peking University dissertation document class] % eg. `\thss@int@boolopt{spacing}{true}' will expand to: % \newif\ifthss@opt@spacing \thss@opt@spacingtrue @@ -85,21 +86,7 @@ \RequirePackage[normalem]{ulem} % `\AtEndOfClass' used to avoid `PDF destination not defined' with setspace. \AtEndOfClass{\RequirePackage{hyperref}} - -\ifthss@opt@gbk - \input{pkuthss-gbk.def} - \ifxetex - % No support for XeLaTeX compilation in non-unicode encoding, i.e. GBK. - \ClassError{pkuthss}% - {XeLaTeX compilation is not supported without UTF-8}% - {% - XeLaTeX compilation without UTF-8 is very problematic.\MessageBreak - Therefore please use UTF-8 encoding for the LaTeX code.% - } - \fi -\else - \input{pkuthss-utf8.def} -\fi +\input{pkuthss.def} \ifthss@opt@pkufont % Use Times New Roman / Arial according to school regulation. @@ -248,6 +235,7 @@ \thss@int@infoitemb{cthesisname} \thss@int@infoitemb{ethesisname} \thss@int@infoitemb{thesiscover} +\thss@int@infoitemb{mentorlines} \thss@int@infoitemb{cabstractname} \thss@int@infoitemb{eabstractname} % Set up document information using the `key = value' grammar. @@ -394,7 +382,8 @@ {\bfseries\label@direction} & \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@direction} \\ {\bfseries\label@cmentor} & - \thss@int@fillinblank{1}{\thss@tmp@len}{\fangsong\@cmentor} \\ + \thss@int@fillinblank{\mentorlines}% + {\thss@tmp@len}{\fangsong\@cmentor} \\ \end{tabular}% } \vfill |