Skip to content

Commit

Permalink
chore: block unsupported ctex options
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexaraWu committed Dec 21, 2024
1 parent 2db0610 commit f14b4d9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions sjtutex/source/sjtutex.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1789,6 +1789,11 @@
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
\msg_new:nnn { sjtutex } { unsupported-option }
{ Option~'\l_keys_key_tl'~is~not~supported! \\ Will~be~ignored. }
% \end{macrocode}
%
% \subsection{选项处理}
%
% 定义 |sjtu/option| 键值类。
Expand Down Expand Up @@ -2003,6 +2008,19 @@
}
% \end{macrocode}
%
% 屏蔽不支持的 \pkg{ctex} 选项。
% \begin{macrocode}
\clist_map_inline:nn
{ GBK, scheme }
{
\keys_define:nn { sjtu / option }
{
#1 .code:n =
{ \msg_warning:nn { sjtutex } { unsupported-option } }
}
}
% \end{macrocode}
%
% 将文档类选项传给 |sjtu/option|。
% \begin{macrocode}
\ProcessKeyOptions [ sjtu / option ]
Expand Down

0 comments on commit f14b4d9

Please sign in to comment.