Loading sustechthesis.dtx +46 −26 Changes for sustechthesis.dtx: 46 added lines, 26 removed lines. Original line number Diff line number Diff line Loading @@ -1163,9 +1163,6 @@ choices = { times, termes, xits, libertinus, lm, auto, none, }, Loading @@ -1190,8 +1187,6 @@ cambria, xits, stix, libertinus, lm, none, }, default = cambria, Loading Loading @@ -1738,19 +1733,8 @@ \thusetup{math-style=TeX}% \fi } \unimathsetup{ math-style = TeX, bold-style = TeX, } \ifthu@math@style@GB \unimathsetup{ math-style = ISO, bold-style = ISO, nabla = upright, partial = upright, } \fi \newcommand\thu@xits@integral@stylistic@set{% %\ifthu@language@english \ifthu@math@style@GB 8%upright \fi Loading Loading @@ -1789,11 +1773,6 @@ \newcommand\thu@load@math@font@cambria{% \setmathfont[Path = "fonts/"]{CambriaMath.otf}% } \newcommand\thu@load@math@font{% \@nameuse{thu@load@math@font@\thu@math@font} } \thu@load@math@font \thu@option@hook{math-font}{\thu@load@math@font} % \end{macrocode} % % 中文字体 Loading Loading @@ -2490,6 +2469,7 @@ % 省略号一律居中,所以 \cs{ldots} 不再居于底部。 % \begin{macrocode} \newcommand\thu@set@math@ellipsis{% \AtBeginDocument{% \ifthu@math@style@GB \DeclareRobustCommand\mathellipsis{\mathinner{\unicodecdots}}% \else Loading @@ -2498,8 +2478,7 @@ \fi \fi } \thu@set@math@ellipsis \thu@option@hook{language}{\thu@set@math@ellipsis} } % \end{macrocode} % \end{macro} % Loading @@ -2509,14 +2488,16 @@ % \begin{macro}{\geq} % 小于等于号要使用倾斜的形式,仅中文生效。 % \begin{macrocode} \newcommand\thu@set@math@leq{% \AtBeginDocument{% \ifthu@math@style@GB \protected\def\le{\leqslant} \protected\def\ge{\geqslant} \AtBeginDocument{% \renewcommand\leq{\leqslant}% \renewcommand\geq{\geqslant}% } \fi } } % \end{macrocode} % \end{macro} % \end{macro} Loading @@ -2526,6 +2507,8 @@ % \begin{macro}{\int} % 积分号 \cs{int} 使用正体,并且上下限默认置于积分号上下两侧。 % \begin{macrocode} \newcommand\thu@set@unimath@integral@limits{ \AtBeginDocument{% \ifthu@math@style@GB \removenolimits{% \int\iint\iiint\iiiint\oint\oiint\oiiint Loading @@ -2545,6 +2528,9 @@ }% \fi \fi } } % \end{macrocode} % \end{macro} % Loading @@ -2553,12 +2539,14 @@ % 实部、虚部操作符使用罗马体 $\mathrm{Re}$、$\mathrm{Im}$ 而不是 fraktur 体 % $\Re$、$\Im$。 % \begin{macrocode} \newcommand\thu@set@unimath@real@part{% \AtBeginDocument{% \ifthu@math@style@GB \renewcommand{\Re}{\operatorname{Re}}% \renewcommand{\Im}{\operatorname{Im}}% \fi } } % \end{macrocode} % \end{macro} % \end{macro} Loading @@ -2566,14 +2554,46 @@ % \begin{macro}{\nabla} % \cs{nabla} 使用粗正体。 % \begin{macrocode} \newcommand\thu@set@unimath@nabla{ \AtBeginDocument{% \ifthu@math@style@GB \renewcommand\nabla{\mbfnabla}% \fi } } % \end{macrocode} % \end{macro} % % \begin{macrocode} \newcommand\thu@set@unimath@style{% \thu@set@math@ellipsis \thu@set@math@leq \thu@set@unimath@integral@limits \thu@set@unimath@real@part \thu@set@unimath@nabla } \newcommand\thu@load@math@font{% \AtBeginDocument{% \unimathsetup{ math-style = TeX, bold-style = TeX, } \ifthu@math@style@GB \unimathsetup{ math-style = ISO, bold-style = ISO, nabla = upright, partial = upright, } \fi \@nameuse{thu@load@math@font@\thu@math@font} } \thu@set@unimath@style } \thu@load@math@font \thu@option@hook{math-font}{\thu@load@math@font} % \end{macrocode} % % \begin{macro}{\bm} % \begin{macro}{\boldsymbol} % 兼容旧的粗体命令:\pkg{bm} 的 \cs{bm} 和 \pkg{amsmath} 的 \cs{boldsymbol}。 Loading Loading
sustechthesis.dtx +46 −26 Changes for sustechthesis.dtx: 46 added lines, 26 removed lines. Original line number Diff line number Diff line Loading @@ -1163,9 +1163,6 @@ choices = { times, termes, xits, libertinus, lm, auto, none, }, Loading @@ -1190,8 +1187,6 @@ cambria, xits, stix, libertinus, lm, none, }, default = cambria, Loading Loading @@ -1738,19 +1733,8 @@ \thusetup{math-style=TeX}% \fi } \unimathsetup{ math-style = TeX, bold-style = TeX, } \ifthu@math@style@GB \unimathsetup{ math-style = ISO, bold-style = ISO, nabla = upright, partial = upright, } \fi \newcommand\thu@xits@integral@stylistic@set{% %\ifthu@language@english \ifthu@math@style@GB 8%upright \fi Loading Loading @@ -1789,11 +1773,6 @@ \newcommand\thu@load@math@font@cambria{% \setmathfont[Path = "fonts/"]{CambriaMath.otf}% } \newcommand\thu@load@math@font{% \@nameuse{thu@load@math@font@\thu@math@font} } \thu@load@math@font \thu@option@hook{math-font}{\thu@load@math@font} % \end{macrocode} % % 中文字体 Loading Loading @@ -2490,6 +2469,7 @@ % 省略号一律居中,所以 \cs{ldots} 不再居于底部。 % \begin{macrocode} \newcommand\thu@set@math@ellipsis{% \AtBeginDocument{% \ifthu@math@style@GB \DeclareRobustCommand\mathellipsis{\mathinner{\unicodecdots}}% \else Loading @@ -2498,8 +2478,7 @@ \fi \fi } \thu@set@math@ellipsis \thu@option@hook{language}{\thu@set@math@ellipsis} } % \end{macrocode} % \end{macro} % Loading @@ -2509,14 +2488,16 @@ % \begin{macro}{\geq} % 小于等于号要使用倾斜的形式,仅中文生效。 % \begin{macrocode} \newcommand\thu@set@math@leq{% \AtBeginDocument{% \ifthu@math@style@GB \protected\def\le{\leqslant} \protected\def\ge{\geqslant} \AtBeginDocument{% \renewcommand\leq{\leqslant}% \renewcommand\geq{\geqslant}% } \fi } } % \end{macrocode} % \end{macro} % \end{macro} Loading @@ -2526,6 +2507,8 @@ % \begin{macro}{\int} % 积分号 \cs{int} 使用正体,并且上下限默认置于积分号上下两侧。 % \begin{macrocode} \newcommand\thu@set@unimath@integral@limits{ \AtBeginDocument{% \ifthu@math@style@GB \removenolimits{% \int\iint\iiint\iiiint\oint\oiint\oiiint Loading @@ -2545,6 +2528,9 @@ }% \fi \fi } } % \end{macrocode} % \end{macro} % Loading @@ -2553,12 +2539,14 @@ % 实部、虚部操作符使用罗马体 $\mathrm{Re}$、$\mathrm{Im}$ 而不是 fraktur 体 % $\Re$、$\Im$。 % \begin{macrocode} \newcommand\thu@set@unimath@real@part{% \AtBeginDocument{% \ifthu@math@style@GB \renewcommand{\Re}{\operatorname{Re}}% \renewcommand{\Im}{\operatorname{Im}}% \fi } } % \end{macrocode} % \end{macro} % \end{macro} Loading @@ -2566,14 +2554,46 @@ % \begin{macro}{\nabla} % \cs{nabla} 使用粗正体。 % \begin{macrocode} \newcommand\thu@set@unimath@nabla{ \AtBeginDocument{% \ifthu@math@style@GB \renewcommand\nabla{\mbfnabla}% \fi } } % \end{macrocode} % \end{macro} % % \begin{macrocode} \newcommand\thu@set@unimath@style{% \thu@set@math@ellipsis \thu@set@math@leq \thu@set@unimath@integral@limits \thu@set@unimath@real@part \thu@set@unimath@nabla } \newcommand\thu@load@math@font{% \AtBeginDocument{% \unimathsetup{ math-style = TeX, bold-style = TeX, } \ifthu@math@style@GB \unimathsetup{ math-style = ISO, bold-style = ISO, nabla = upright, partial = upright, } \fi \@nameuse{thu@load@math@font@\thu@math@font} } \thu@set@unimath@style } \thu@load@math@font \thu@option@hook{math-font}{\thu@load@math@font} % \end{macrocode} % % \begin{macro}{\bm} % \begin{macro}{\boldsymbol} % 兼容旧的粗体命令:\pkg{bm} 的 \cs{bm} 和 \pkg{amsmath} 的 \cs{boldsymbol}。 Loading