diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls | 80 |
1 files changed, 55 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls index 5bcd3074a8d..3f547053f37 100644 --- a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls +++ b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls @@ -23,7 +23,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2017/04/15] \ProvidesClass{thuthesis} -[2022/05/17 7.3.0 Tsinghua University Thesis Template] +[2022/10/05 7.3.1 Tsinghua University Thesis Template] \newcommand\thu@error[1]{% \ClassError{thuthesis}{#1}{}% } @@ -58,7 +58,7 @@ } \hyphenation{Thu-Thesis} \def\thuthesis{ThuThesis} -\def\version{7.3.0} +\def\version{7.3.1} \RequirePackage{kvdefinekeys} \RequirePackage{kvsetkeys} \RequirePackage{kvoptions} @@ -456,7 +456,7 @@ } \newcommand\thu@set@chapter@names{% \ifthu@main@language@chinese - \def\thu@comments@name{指导教师学术评语}% + \def\thu@comments@name{指导教师评语}% \def\bibname{参考文献}% \def\appendixname{附录}% \def\indexname{索引}% @@ -998,7 +998,7 @@ UprightFont = * Light, UprightFont = * Bold, ]% - \setCJKfamilyfont{zhhei}{Noto Sans CJK SC}[BoldFont * Medium]% + \setCJKfamilyfont{zhhei}{Noto Sans CJK SC}[BoldFont = * Medium]% \setCJKfamilyfont{zhfs}{FandolFang}[ Extension = .otf, UprightFont = *-Regular, @@ -2798,26 +2798,29 @@ \kvsetkeys{thu@committee}{#1}% \ifx\thu@committee@file\@empty \begingroup - \ifthu@main@language@english - \ctexset{chapter/format=\centering\sffamily\fontsize{16bp}{20bp}\selectfont} - \fi + \ctexset{ + chapter = { + format = \centering\sffamily\fontsize{16bp}{20bp}\selectfont, + afterskip = 49bp, + }, + section = { + beforeskip = 26bp, + afterskip = 9.5bp, + format += \centering, + numbering = false, + afterindent = false, + }, + }% \thu@chapter*[]{\thu@committee@name}% + \thispagestyle{empty}% + \thusetup{language=chinese}% + \BODY\clearpage + \thu@reset@main@language \endgroup \else \thu@pdfbookmark{0}{\thu@committee@name}% \includepdf{\thu@committee@file}% \fi - \thispagestyle{empty}% - \ctexset{ - section = { - format += {\centering}, - numbering = false, - afterindent = false, - }, - }% - \thusetup{language=chinese} - \BODY\clearpage - \thu@reset@main@language \fi } \newcommand\copyrightpage[1][]{% @@ -3545,20 +3548,47 @@ }, } \thu@option@hook{toc-depth}{% - \protected@write\@auxout{}{% - \string\ttl@writefile{toc}{% - \protect\setcounter{tocdepth}{\thu@toc@depth}% + \ifx\@begindocumenthook\@undefined + \protected@write\@auxout{}{% + \string\ttl@writefile{toc}{% + \protect\setcounter{tocdepth}{\thu@toc@depth}% + }% }% - }% - \addtocontents{lof}{\string\let\string\contentsline\string\ttl@gobblecontents} - \addtocontents{lot}{\string\let\string\contentsline\string\ttl@gobblecontents} - \addtocontents{loe}{\string\let\string\contentsline\string\ttl@gobblecontents} + \else + \setcounter{tocdepth}{\thu@toc@depth}% + \fi } \g@addto@macro\appendix{% \thusetup{ toc-depth = 0, }% } +\thu@define@key{ + appendix-figure-in-lof = { + name = appendix@figure@in@lof, + choices = { + true, + false, + }, + default = false, + }, +} +\thu@option@hook{appendix-figure-in-lof}{% + \ifthu@appendix@figure@in@lof@true + \addtocontents{lof}{\string\let\string\contentsline\string\ttl@contentsline}% + \addtocontents{lot}{\string\let\string\contentsline\string\ttl@contentsline}% + \addtocontents{loe}{\string\let\string\contentsline\string\ttl@contentsline}% + \else + \addtocontents{lof}{\string\let\string\contentsline\string\ttl@gobblecontents}% + \addtocontents{lot}{\string\let\string\contentsline\string\ttl@gobblecontents}% + \addtocontents{loe}{\string\let\string\contentsline\string\ttl@gobblecontents}% + \fi +} +\g@addto@macro\appendix{% + \thusetup{ + appendix-figure-in-lof = false, + }% +} \@ifpackagelater{titletoc}{2019/07/14}{ \newcommand\thu@print@contents[5]{% \printcontents[#1]{#2}{#3}[#4]{}% |