Skip to content

Commit

Permalink
chore: ensure required symbols are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexaraWu committed Jan 1, 2025
1 parent 47c5079 commit e1649b6
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions sjtutex/source/sjtutex.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -2897,10 +2897,20 @@
}
% \end{macrocode}
%
% 若未使用 \pkg{unicode-math} 配置数学字体,则自动调用 \pkg{bm}。
% 若未使用 \pkg{unicode-math} 配置数学字体,则自动调用 \pkg{bm},
% 并在未定义 \tn{uppi} 和 \tn{checkmark} 时分别调用 \pkg{upgreek} 和 \pkg{amsfonts}。
% \begin{macrocode}
\ctex_at_end_preamble:n
{ \IfPackageLoadedF { unicode-math } { \RequirePackage { bm } } }
{
\IfPackageLoadedF { unicode-math }
{
\RequirePackage { bm }
\cs_if_exist:NF \uppi
{ \RequirePackage { upgreek } }
\cs_if_exist:NF \checkmark
{ \RequirePackage { amsfonts } }
}
}
%</class>
% \end{macrocode}
%
Expand Down

0 comments on commit e1649b6

Please sign in to comment.