summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-02-03 22:32:24 +0000
committerKarl Berry <karl@freefriends.org>2020-02-03 22:32:24 +0000
commitf4032873eaf19f1ff874f7e2d2086e67fb37b00d (patch)
tree1247187da8aa567df21f3f19948f6daa9e3bb42e /Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
parent050ec71aa52bf1c4a761871ce842c31a9b70d353 (diff)
thuthesis (3feb20)
git-svn-id: svn://tug.org/texlive/trunk@53659 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls')
-rw-r--r--Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls33
1 files changed, 21 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
index eb6dea75330..cccee9621d1 100644
--- a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
+++ b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
@@ -23,12 +23,12 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{thuthesis}
-[2020/01/06 6.0.0 Tsinghua University Thesis Template]
+[2020/02/03 6.0.1 Tsinghua University Thesis Template]
\RequirePackage{ifxetex}
\RequireXeTeX
\hyphenation{Thu-Thesis}
\def\thuthesis{ThuThesis}
-\def\version{6.0.0}
+\def\version{6.0.1}
\RequirePackage{kvdefinekeys}
\RequirePackage{kvsetkeys}
\RequirePackage{kvoptions}
@@ -593,6 +593,7 @@
paragraph/afterindent=true,
subparagraph/afterindent=true}
\newcommand\thu@pdfbookmark[2]{}
+\newcommand\thu@phantomsection{}
\NewDocumentCommand\thu@chapter{s o m o}{
\IfBooleanF{#1}{%
\ClassError{thuthesis}{You have to use the star form: \string\thu@chapter*}{}
@@ -602,21 +603,25 @@
\ifthenelse{\equal{#2}{}}{%
\thu@pdfbookmark{0}{#3}%
}{%
- \addcontentsline{toc}{chapter}{#3}
- }
+ \thu@phantomsection
+ \addcontentsline{toc}{chapter}{#3}%
+ }%
}{%
- \addcontentsline{toc}{chapter}{#3}
+ \thu@phantomsection
+ \addcontentsline{toc}{chapter}{#3}%
}%
- \ifthu@degree@bachelor \ctexset{chapter/beforeskip=25bp} \fi
+ \ifthu@degree@bachelor\ctexset{chapter/beforeskip=25bp}\fi
\chapter*{#3}%
- \ifthu@degree@bachelor \ctexset{chapter/beforeskip=15bp} \fi
+ \ifthu@degree@bachelor\ctexset{chapter/beforeskip=15bp}\fi
\IfValueTF{#4}{%
- \ifthenelse{\equal{#4}{}}
- {\@mkboth{}{}}
- {\@mkboth{#4}{#4}}
+ \ifthenelse{\equal{#4}{}}{%
+ \@mkboth{}{}%
+ }{%
+ \@mkboth{#4}{#4}%
+ }%
}{%
- \@mkboth{#3}{#3}
- }
+ \@mkboth{#3}{#3}%
+ }%
}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{2}
@@ -1497,6 +1502,7 @@
\thu@atendpackage{hyperref}{
\hypersetup{
linktoc = all,
+ bookmarksdepth = 2,
bookmarksnumbered = true,
bookmarksopen = true,
bookmarksopenlevel = 1,
@@ -1512,6 +1518,9 @@
\stepcounter{thu@bookmark}%
\pdfbookmark[#1]{#2}{thuchapter.\thethu@bookmark}%
}
+ \renewcommand\thu@phantomsection{%
+ \phantomsection
+ }
\pdfstringdefDisableCommands{
\let\\\@empty
\let\hspace\@gobble