From f4032873eaf19f1ff874f7e2d2086e67fb37b00d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 3 Feb 2020 22:32:24 +0000 Subject: thuthesis (3feb20) git-svn-id: svn://tug.org/texlive/trunk@53659 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/thuthesis/thuthesis.cls | 33 ++++++++++++++-------- 1 file changed, 21 insertions(+), 12 deletions(-) (limited to 'Master/texmf-dist/tex/latex/thuthesis') 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 -- cgit v1.2.3