tex: merge common parts from pkuthss-*.def into pkuthss.def.
This commit is contained in:
parent
db551296ae
commit
2d373822f6
@ -21,6 +21,7 @@
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.cls
|
||||
% pkuthss.def
|
||||
% pkuthss-gbk.def
|
||||
% pkuthss-utf8.def
|
||||
% pkulogo.eps
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
55
tex/pkuthss.def
Normal 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
|
||||
@ -21,6 +21,7 @@
|
||||
%
|
||||
% This work consists of the following files:
|
||||
% pkuthss.cls
|
||||
% pkuthss.def
|
||||
% pkuthss-gbk.def
|
||||
% pkuthss-utf8.def
|
||||
% pkulogo.eps
|
||||
|
||||
Loading…
Reference in New Issue
Block a user