diff options
author | Karl Berry <karl@freefriends.org> | 2024-05-20 20:14:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-05-20 20:14:53 +0000 |
commit | 40edbd1a04173ee748a58a791efdb235969b3fc4 (patch) | |
tree | ac97025f4b91fcecde313a115123d18a62f60aca /Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls | |
parent | 6a4bd7297b07fda732107d8c8005a85585f385e3 (diff) |
thuthesis (20may24)
git-svn-id: svn://tug.org/texlive/trunk@71311 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.cls | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls index 21ba7d4aee8..bd8d4dd3eaf 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} -[2024/03/29 7.5.0 Tsinghua University Thesis Template] +[2024/05/20 7.5.1 Tsinghua University Thesis Template] \newcommand\thu@error[1]{% \ClassError{thuthesis}{#1}{}% } @@ -61,7 +61,7 @@ } \hyphenation{Thu-Thesis} \def\thuthesis{ThuThesis} -\def\version{7.5.0} +\def\version{7.5.1} \RequirePackage{kvdefinekeys} \RequirePackage{kvsetkeys} \RequirePackage{kvoptions} @@ -2441,14 +2441,15 @@ \restoregeometry } \newcommand\thu@set@student@id{% - \ifthu@thesis@type@proposal - \ifx\thu@student@id\@empty - \thusetup{student-id=2000310000}% + \ifthu@thesis@type@proposal\else + \ifx\thu@student@id\@empty\else + \thu@warning{`student-id' in "\protect\thusetup" would be ignored when `thesis-type' is not proposal.}% \fi \fi } \thu@set@student@id \thu@option@hook{thesis-type}{\thu@set@student@id} +\thu@option@hook{student-id}{\thu@set@student@id} \newcommand\thu@titlepage@secret{% \sffamily\sanhao \ifx\thu@secret@level\@empty @@ -2500,7 +2501,13 @@ \thu@info@item{工程领域}{}{\thu@engineering@field}% \thu@info@item{申请人}{\thu@name@title}{\thu@author}% \fi - \thu@info@item{学号}{}{\thu@student@id}% + \ifthu@thesis@type@proposal + \ifx\thu@student@id\@empty + \thu@warning{Missing option `student-id' in "\protect\thusetup", ID will not appear on cover.} + \else + \thu@info@item{学号}{}{\thu@student@id}% + \fi + \fi \thu@info@item{指导教师}{\thu@name@title}{\thu@supervisor}% \thu@info@item{副指导教师}{\thu@name@title}{\thu@associate@supervisor}% \thu@info@item{联合指导教师}{\thu@name@title}{\thu@co@supervisor}% |