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 Dec 30, 2024
1 parent be3ec7f commit 1ac91f0
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 @@ -2951,10 +2951,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 1ac91f0

Please sign in to comment.