diff options
author | Karl Berry <karl@freefriends.org> | 2024-07-01 20:49:35 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-07-01 20:49:35 +0000 |
commit | 983f6dc012a795d96a3d52646df20760e717c887 (patch) | |
tree | 824eed0abddaa96c8c0f908b949bc224b5e4bb52 /Master/texmf-dist/tex | |
parent | f77bc85764e6ed49933071eb7eb3b560e36e89b0 (diff) |
thuthesis (1jul24)
git-svn-id: svn://tug.org/texlive/trunk@71680 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls index bd8d4dd3eaf..3a0f4f28413 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/05/20 7.5.1 Tsinghua University Thesis Template] +[2024/07/01 7.5.2 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.1} +\def\version{7.5.2} \RequirePackage{kvdefinekeys} \RequirePackage{kvsetkeys} \RequirePackage{kvoptions} @@ -296,6 +296,13 @@ }, default = print, }, + eqn-paren-style = { + name = eqn@paren@style, + choices = { + full, + half, + } + }, } \newif\ifthu@degree@graduate \newcommand\thu@set@graduate{% @@ -1656,10 +1663,23 @@ \endgroup } \allowdisplaybreaks[4] +\newcommand\thu@eqn@left@paren{(} +\newcommand\thu@eqn@right@paren{)} +\newcommand\thu@set@eqn@paren@style{% + \ifthu@eqn@paren@style@full + \renewcommand\thu@eqn@left@paren{(}% + \renewcommand\thu@eqn@right@paren{)}% + \else + \renewcommand\thu@eqn@left@paren{(}% + \renewcommand\thu@eqn@right@paren{)}% + \fi +} +\thu@set@eqn@paren@style +\thu@option@hook{eqn-paren-style}{\thu@set@eqn@paren@style} \newcommand\thu@put@parentheses[1]{% \ifthu@language@chinese \unskip - (#1)% + \thu@eqn@left@paren#1\thu@eqn@right@paren \else (#1)% \fi @@ -3827,9 +3847,11 @@ } \newenvironment{translation-index}{}{} \AtEndOfPackageFile*{bibunits}{ + \newcounter{thu@translation@index}% \renewenvironment{translation-index}{% + \global\advance\c@thu@translation@index\@ne \begin{bibunit}% - \renewcommand\@bibunitname{\jobname-index}% + \renewcommand\@bibunitname{\jobname-index-\arabic{thu@translation@index}}% \renewcommand\bibname{书面翻译对应的原文索引}% \thu@set@survey@bibheading }{% |