tex: merge common parts from pkuthss-*.def into pkuthss.def.

This commit is contained in:
Casper Ti. Vector 2021-04-16 23:12:11 +08:00
parent db551296ae
commit 2d373822f6
6 changed files with 61 additions and 37 deletions

View File

@ -21,6 +21,7 @@
%
% This work consists of the following files:
% pkuthss.cls
% pkuthss.def
% pkuthss-gbk.def
% pkuthss-utf8.def
% pkulogo.eps

View File

@ -17,6 +17,7 @@
%
% This work consists of the following files:
% pkuthss.cls
% pkuthss.def
% pkuthss-gbk.def
% pkuthss-utf8.def
% pkulogo.eps
@ -33,7 +34,6 @@
\def\label@cmajor{\hphantom{}}
\def\label@direction{}
\def\label@cmentor{\hphantom{}}
\def\label@ementor{Directed by\ }
\def\label@ckeywords{}
\def\label@blindcover{}
\def\label@blindctitle{}
@ -44,18 +44,8 @@
\def\titlepagename{}
\def\cuniversity{}
\def\euniversity{Peking University}
\def\cthesisname{}
\def\ethesisname{Doctor Thesis}
\def\thesiscover{}
\def\cabstractname{}
\def\eabstractname{ABSTRACT}
\ifthss@opt@ugly
\def\label@ekeywords{KEY WORDS:\ }
\else
\def\label@ekeywords{KEYWORDS:\ }
\fi
\endinput
% vim:ft=tex:ts=2:sw=2

View File

@ -17,6 +17,7 @@
%
% This work consists of the following files:
% pkuthss.cls
% pkuthss.def
% pkuthss-gbk.def
% pkuthss-utf8.def
% pkulogo.eps
@ -33,7 +34,6 @@
\def\label@cmajor{\hphantom{}}
\def\label@direction{}
\def\label@cmentor{\hphantom{}}
\def\label@ementor{Directed by\ }
\def\label@ckeywords{}
\def\label@blindcover{}
\def\label@blindctitle{}
@ -44,18 +44,8 @@
\def\titlepagename{}
\def\cuniversity{}
\def\euniversity{Peking University}
\def\cthesisname{}
\def\ethesisname{Doctor Thesis}
\def\thesiscover{}
\def\cabstractname{}
\def\eabstractname{ABSTRACT}
\ifthss@opt@ugly
\def\label@ekeywords{KEY WORDS:\ }
\else
\def\label@ekeywords{KEYWORDS:\ }
\fi
\endinput
% vim:ft=tex:ts=2:sw=2

View File

@ -17,6 +17,7 @@
%
% This work consists of the following files:
% pkuthss.cls
% pkuthss.def
% pkuthss-gbk.def
% pkuthss-utf8.def
% pkulogo.eps
@ -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.

55
tex/pkuthss.def Normal file
View File

@ -0,0 +1,55 @@
% Peking University dissertation document class
%
% Copyright (c) 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.cls
% pkuthss.def
% pkuthss-gbk.def
% pkuthss-utf8.def
% pkulogo.eps
% pkuword.eps
\ProvidesFile{pkuthss.def}
[2021/03/29 v1.9.0 Labels and captions for the pkuthss document class]
\def\label@ementor{Directed by\ }
\def\euniversity{Peking University}
\def\ethesisname{Doctor Thesis}
\def\thesiscover{}
\def\eabstractname{ABSTRACT}
\ifthss@opt@ugly
\def\label@ekeywords{KEY WORDS:\ }
\else
\def\label@ekeywords{KEYWORDS:\ }
\fi
\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
\endinput
% vim:ft=tex:ts=2:sw=2

View File

@ -21,6 +21,7 @@
%
% This work consists of the following files:
% pkuthss.cls
% pkuthss.def
% pkuthss-gbk.def
% pkuthss-utf8.def
% pkulogo.eps