diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/ctexhook.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ctex/ctexhook.sty | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/ctexhook.sty b/Master/texmf-dist/tex/latex/ctex/ctexhook.sty index ed0b47caacf..0bad5bedc30 100644 --- a/Master/texmf-dist/tex/latex/ctex/ctexhook.sty +++ b/Master/texmf-dist/tex/latex/ctex/ctexhook.sty @@ -26,10 +26,10 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo$Id: ctex.dtx 6604451 2021-06-20 17:08:49 +0800 Qing Lee <sobenlee@gmail.com> $ +\GetIdInfo$Id: ctex.dtx fcbe2c0 2021-12-12 18:20:54 +0800 Qing Lee <sobenlee@gmail.com> $ {Document and package hooks (CTEX)} \ProvidesExplPackage{ctexhook} - {\ExplFileDate}{2.5.7}{\ExplFileDescription} + {\ExplFileDate}{2.5.8}{\ExplFileDescription} \cs_new:Npn \ctex_if_format_at_least:nTF { \@ifl@t@r \fmtversion } \cs_new_protected:Npn \ctex_file_input:n #1 @@ -132,8 +132,12 @@ { \ctex_gadd_ltxhook:nn { begindocument/before } } \cs_new_protected:Npn \ctex_after_end_preamble:n { \ctex_gadd_ltxhook:nn { begindocument/end } } - \cs_new_protected:Npn \ctex_gadd_package_hook:nnn #1#2 - { \ctex_gadd_ltxhook:nn { package/#1/#2 } } + \cs_new_protected:Npx \ctex_gadd_package_hook:nnn #1#2 + { + \ctex_if_format_at_least:nTF { 2021/11/15 } + { \ctex_gadd_ltxhook:nn { package/#2/#1 } } + { \ctex_gadd_ltxhook:nn { package/#1/#2 } } + } \file_input_stop: } { } |