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.cls27
1 files changed, 14 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls b/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls
index 01f249063f3..2106e51464e 100644
--- a/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls
+++ b/Master/texmf-dist/tex/latex/pkuthss/pkuthss.cls
@@ -1,9 +1,7 @@
-% vim:ft=tex:ts=2:sw=2
-%
% Peking University dissertation document class
%
% Copyright (c) 2008-2009 solvethis
-% Copyright (c) 2010-2015 Casper Ti. Vector
+% Copyright (c) 2010-2016 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
@@ -25,7 +23,7 @@
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{pkuthss}
- [2015/12/16 v1.7.0 Peking University dissertation document class]
+ [2016/03/17 v1.7.1 Peking University dissertation document class]
% eg. `\pkuthss@int@boolopt{spacing}{true}' will expand to:
% \newif\ifpkuthss@opt@spacing \pkuthss@opt@spacingtrue
@@ -69,6 +67,8 @@
% CJKfntef provides `\CJKunderline' used in `\maketitle'.
% fancyhdr provides utilities for setting up headers and footers.
\LoadClass[hyperref, cs4size, fntef, fancyhdr]{ctexbook}[2011/03/11]
+% ctex 2.x no longer loads ifpdf and ifxetex by itself.
+\RequirePackage{ifpdf, ifxetex}
% Provides support for `key = val' grammar.
\RequirePackage{keyval}
% Graphics support.
@@ -168,15 +168,6 @@
\setlist{nolistsep}
\fi
-\ifpkuthss@opt@pdftoc
- % Add PDF bookmark for table of contents.
- \let\pkuthss@tmp@tableofcontents\tableofcontents
- \renewcommand{\tableofcontents}{%
- \pkuthss@int@pdfmark{\contentsname}{contents}
- \pkuthss@tmp@tableofcontents%
- }
-\fi
-
\ifpkuthss@opt@spechap
% This command is used to start a chapter without numbering, and correctly set
% up the headers and footers in the chapter.
@@ -199,6 +190,15 @@
}%
\fi
+ \ifpkuthss@opt@pdftoc
+ % Add PDF bookmark for table of contents.
+ \let\pkuthss@tmp@tableofcontents\tableofcontents
+ \renewcommand{\tableofcontents}{%
+ \pkuthss@int@pdfmark{\contentsname}{contents}
+ \pkuthss@tmp@tableofcontents%
+ }
+ \fi
+
\ifpkuthss@opt@pdfprop
% Automatically generate properties for generated PDF.
% Use English properties to avoid problems with character encodings.
@@ -423,3 +423,4 @@
}
\endinput
+% vim:ft=tex:ts=2:sw=2