summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty')
-rw-r--r--Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty20
1 files changed, 8 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty b/Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty
index 570f8c48bb0..2f10ec27956 100644
--- a/Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty
+++ b/Master/texmf-dist/tex/latex/pkuthss/pkuthss-extra.sty
@@ -26,7 +26,7 @@
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{pkuthss-extra}
- [2015/04/28 v1.6.0 Common extra settings for the pkuthss document class]
+ [2015/06/18 v1.6.2 Common extra settings for the pkuthss document class]
% Check the dependency of pkuthss.
\@ifclassloaded{pkuthss}{}{
@@ -124,22 +124,18 @@
\ifpkuthssextra@opt@pdftoc
% Add PDF bookmark for table of contents.
\let\pkuthssextra@tmp@tableofcontents\tableofcontents
- \renewcommand{\tableofcontents}{
- % Make the `Contents' bookmark point correctly to the title of the table of
- % contents.
- \cleardoublepage
- % Actually add the PDF bookmark.
- \pdfbookmark[1]{\contentsname}{contents}
- \pkuthssextra@tmp@tableofcontents
+ \renewcommand{\tableofcontents}{%
+ \pkuthss@int@pdfmark{\contentsname}{contents}
+ \pkuthssextra@tmp@tableofcontents%
}
\fi
\ifpkuthssextra@opt@spechap
% This command is used to start a chapter without numbering, and correctly set
% up the headers and footers in the chapter.
- \newcommand\specialchap[1]{
+ \newcommand\specialchap[1]{%
\chapter*{#1}\addcontentsline{toc}{chapter}{#1}
- \markboth{#1}{}\phantomsection
+ \markboth{#1}{}\phantomsection%
}
\fi
@@ -159,11 +155,11 @@
\ifpkuthssextra@opt@pdfprop
% Automatically generate properties for generated PDF.
% Use English properties to avoid problems with character encodings.
- \newcommand*{\setpdfproperties}{
+ \newcommand*{\setpdfproperties}{%
\hypersetup{
pdfauthor = {\@eauthor}, pdftitle = {\@etitle},
pdfsubject = {\euniversity\ \ethesisname}, pdfkeywords = {\@ekeywords}
- }
+ }%
}
% Set up the properties when generating the title page because the document
% information should have been all defined before this.