summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ctex/ctexpatch.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/ctexpatch.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ctex/ctexpatch.sty12
1 files changed, 6 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/ctexpatch.sty b/Master/texmf-dist/tex/latex/ctex/ctexpatch.sty
index e13eb5a56f7..ee308aaaa09 100644
--- a/Master/texmf-dist/tex/latex/ctex/ctexpatch.sty
+++ b/Master/texmf-dist/tex/latex/ctex/ctexpatch.sty
@@ -6,7 +6,7 @@
%%
%% ctex.dtx (with options: `ctexpatch')
%%
-%% Copyright (C) 2003--2018
+%% Copyright (C) 2003--2019
%% CTEX.ORG and any individual authors listed in the documentation.
%% ------------------------------------------------------------------------------
%%
@@ -28,10 +28,10 @@
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctex.dtx 096f319 2018-05-02 19:51:41 +0800 Liam Huang <liamhuang0205@gmail.com> $
+\GetIdInfo$Id: ctex.dtx cb8bf3c 2019-04-07 23:32:09 +0800 Qing Lee <sobenlee@gmail.com> $
{Patching commands (CTEX)}
\ProvidesExplPackage{ctexpatch}
- {\ExplFileDate}{2.4.14}{\ExplFileDescription}
+ {\ExplFileDate}{2.4.15}{\ExplFileDescription}
\cs_if_exist:NF \str_new:N { \RequirePackage { l3str } }
\cs_new_protected:Npn \ctex_patch_cmd_once:NnnnTF #1#2
{
@@ -94,7 +94,7 @@
{
\group_end:
\__ctex_parse_name:nNNNnN
- { \token_get_replacement_spec:N ##2 }
+ { \cs_replacement_spec:N ##2 }
\exp_not:N ##2
\exp_not:c { ##3 ~ }
\exp_not:c { #1##3 }
@@ -112,11 +112,11 @@
{ \x@protect ##2 \protect ##3 } { }
}
{
- \str_if_eq_x:nnTF
+ \str_if_eq:eeTF
{ \exp_not:n { #1@protected@ ##3 #1##3 } }
{
\exp_last_unbraced:Nf \__ctex_parse_name:w
- \token_get_replacement_spec:N ##3 #3 ~ #2 \q_stop
+ \cs_replacement_spec:N ##3 #3 ~ #2 \q_stop
}
{ #1##5 ~ } { ##5 ~ }
}