summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-07-09 22:32:27 +0000
committerKarl Berry <karl@freefriends.org>2020-07-09 22:32:27 +0000
commit0799681b5ebca9c800642958339f0a2905b5b6fe (patch)
tree12a0115340557129ba3be1f2e611b5a449d738ab /Master/texmf-dist/tex
parent1efae57dfac93679c71c3be5a5257e1bb4e2985a (diff)
thuthesis (10jul20)
git-svn-id: svn://tug.org/texlive/trunk@55792 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls34
1 files changed, 25 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
index b5e3501b42a..57ae1d27078 100644
--- a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
+++ b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
@@ -23,10 +23,13 @@
%%
\NeedsTeXFormat{LaTeX2e}[2017/04/15]
\ProvidesClass{thuthesis}
-[2020/06/14 6.1.2 Tsinghua University Thesis Template]
+[2020/07/09 6.1.3 Tsinghua University Thesis Template]
\newcommand\thu@error[1]{%
\ClassError{thuthesis}{#1}{}%
}
+\newcommand\thu@warning[1]{%
+ \ClassWarning{thuthesis}{#1}%
+}
\@ifl@t@r\fmtversion{2017/04/15}{}{
\thu@error{%
TeX Live 2017 or later version is required to compile this document%
@@ -38,7 +41,7 @@
\fi
\hyphenation{Thu-Thesis}
\def\thuthesis{ThuThesis}
-\def\version{6.1.2}
+\def\version{6.1.3}
\RequirePackage{kvdefinekeys}
\RequirePackage{kvsetkeys}
\RequirePackage{kvoptions}
@@ -451,6 +454,7 @@
BoldFont = *-bold,
ItalicFont = *-italic,
BoldItalicFont = *-bolditalic,
+ Ligatures = CommonOff,
]%
}
\newcommand\thu@load@font@xits{%
@@ -713,7 +717,7 @@
\thu@def@fontsize{bahao}{5bp}
\let\thu@main@language\thu@language
\thu@option@hook{language}{%
- \ifx\@begindocumenthook\@undefined
+ \ifx\@begindocumenthook\@undefined\else
\let\thu@main@language\thu@language
\fi
}
@@ -770,7 +774,7 @@
\thu@set@chapter@names
\thu@option@hook{degree}{\thu@set@chapter@names}
\thu@option@hook{language}{%
- \ifx\@begindocumenthook\@undefined
+ \ifx\@begindocumenthook\@undefined\else
\thu@set@chapter@names
\fi
}
@@ -859,9 +863,6 @@
}%
}
\pagestyle{plain}
-\fancypagestyle{nofooter}{%
- \fancyfoot{}%
-}
\ctexset{chapter/pagestyle = plain}
\ctexset{%
punct=quanjiao,
@@ -1872,6 +1873,14 @@
\fi
}
\thu@define@key{
+ statement-page-style = {
+ name = statement@page@style,
+ choices = {
+ empty,
+ plain,
+ },
+ default = empty,
+ },
statement-page-number = {
name = statement@page@number,
choices = {
@@ -1881,6 +1890,12 @@
default = false,
},
}
+\thu@option@hook{statement-page-number}{%
+ \thu@warning{%
+ The "statement-page-number" option is deprecated.
+ Use "statement-page-style" instead%
+ }%
+}
\newcommand\statement[1][]{%
\ifthu@degree@bachelor
\cleardoublepage
@@ -1889,7 +1904,7 @@
\ifx\thu@@tmp\@empty
\thu@chapter*{\thu@statement@name}%
\ifthu@statement@page@number@false
- \thispagestyle{nofooter}%
+ \thispagestyle{\thu@statement@page@style}%
\fi
\thu@statement@text\par
\ifthu@degree@graduate
@@ -1901,6 +1916,7 @@
\thu@backdate\thu@underline[2.5cm]\relax}%
\else
\includepdf[pagecommand={%
+ \markboth{\thu@statement@name}{}%
\thu@phantomsection
\addcontentsline{toc}{chapter}{\thu@statement@name}%
}]{#1}%
@@ -2129,7 +2145,7 @@
leftmargin=10mm,labelsep=!,before=\xiaosi[1.26]}
\def\publicationskip{\bigskip\bigskip}
\newcommand{\record}[1]{%
- \clearpage
+ \cleardoublepage
\thu@pdfbookmark{0}{综合论文训练记录表}%
\includepdf[pages=-]{#1}%
}