diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/ctexhook.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ctex/ctexhook.sty | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/ctexhook.sty b/Master/texmf-dist/tex/latex/ctex/ctexhook.sty index c6ae5130a98..b05729f969a 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 e805781 2020-08-23 21:30:35 +0800 Qing Lee <sobenlee@gmail.com> $ +\GetIdInfo$Id: ctex.dtx 81d4c90 2020-10-19 20:24:58 +0800 Qing Lee <sobenlee@gmail.com> $ {Document and package hooks (CTEX)} \ProvidesExplPackage{ctexhook} - {\ExplFileDate}{2.5.4}{\ExplFileDescription} + {\ExplFileDate}{2.5.5}{\ExplFileDescription} \cs_new_protected:Npn \ctex_at_begin_package:nn #1 { \@ifpackageloaded {#1} @@ -51,12 +51,14 @@ } \@ifl@t@r \fmtversion { 2020/10/01 } { - \cs_new_protected:Npx \ctex_at_end_preamble:n - { \hook_gput_code:nnn { env/document/before } { \c_novalue_tl } } - \cs_new_protected:Npx \ctex_after_end_preamble:n - { \hook_gput_code:nnn { begindocument/end } { \c_novalue_tl } } - \cs_new_protected:Npx \ctex_gadd_package_hook:nnn #1#2 - { \hook_gput_code:nnn { package/#1/#2 } { \c_novalue_tl } } + \cs_new_protected:Npx \ctex_gadd_ltxhook:nn #1 + { \hook_gput_code:nnn {#1} { \c_novalue_tl } } + \cs_new_protected:Npn \ctex_at_end_preamble:n + { \ctex_gadd_ltxhook:nn { env/document/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 } } \file_input_stop: } { } |