diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/ctexsize.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ctex/ctexsize.sty | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/ctexsize.sty b/Master/texmf-dist/tex/latex/ctex/ctexsize.sty index 1e972ec977a..d492471ad77 100644 --- a/Master/texmf-dist/tex/latex/ctex/ctexsize.sty +++ b/Master/texmf-dist/tex/latex/ctex/ctexsize.sty @@ -26,11 +26,12 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo$Id: ctex.dtx c6b2e9c 2022-06-04 19:41:06 +0800 Qing Lee <sobenlee@gmail.com> $ +\GetIdInfo$Id: ctex.dtx 13a2256 2022-07-14 18:54:09 +0800 Qing Lee <sobenlee@gmail.com> $ {Chinese font size definition (CTEX)} \ProvidesExplPackage{ctexsize} - {\ExplFileDate}{2.5.9}{\ExplFileDescription} -\RequirePackage { xparse , l3keys2e } + {\ExplFileDate}{2.5.10}{\ExplFileDescription} +\cs_if_exist:NF \NewDocumentCommand + { \RequirePackage { xparse } } \prop_gput:Nnn \g_msg_module_name_prop { ctex } { ctexsize } \RequirePackage { fix-cm } \cs_new_protected:Npn \ctex_define_option:n @@ -61,7 +62,12 @@ } \exp_args:No \ctex_define_option:n { \l__ctex_tmp_tl } \tl_clear:N \l__ctex_tmp_tl -\ProcessKeysOptions { ctex / option } +\cs_if_exist:NTF \ProcessKeyOptions + { \ProcessKeyOptions [ ctex / option ] } + { + \RequirePackage { l3keys2e } + \ProcessKeysOptions { ctex / option } + } \NewDocumentCommand \zihao { m } { \exp_args:Nx \ctex_zihao:n {#1} \tex_ignorespaces:D } \cs_new_protected:Npn \ctex_zihao:n #1 @@ -81,7 +87,7 @@ \seq_new:N \c__ctex_font_size_seq \cs_new_protected:Npn \__ctex_save_font_size:nn #1#2 { - \use:x + \use:e { \prop_gput:Nnn \exp_not:N \c__ctex_font_size_prop {#1} { |