summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ctex/ctexheading.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/ctexheading.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ctex/ctexheading.sty25
1 files changed, 16 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/ctexheading.sty b/Master/texmf-dist/tex/latex/ctex/ctexheading.sty
index 6ead5f694d9..d30e04f7f02 100644
--- a/Master/texmf-dist/tex/latex/ctex/ctexheading.sty
+++ b/Master/texmf-dist/tex/latex/ctex/ctexheading.sty
@@ -26,10 +26,10 @@
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee@gmail.com> $
+\GetIdInfo$Id: ctex.dtx 76d4e94 2020-06-06 23:22:18 +0800 Qing Lee <sobenlee@gmail.com> $
{Heading style modification (CTEX)}
\ProvidesExplPackage{ctexheading}
- {\ExplFileDate}{2.5.2}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.3}{\ExplFileDescription}
\RequirePackage { xparse , l3keys2e }
\RequirePackage { ctexhook , ctexpatch }
\tl_clear_new:N \l__ctex_tmp_tl
@@ -43,20 +43,27 @@
{ \keys_set:nn { ctex } }
\cs_new_protected:Npn \ctex_set:nn #1
{ \keys_set:nn { ctex / #1 } }
-\cs_new_protected:Npn \ctex_file_wrapper:nnn #1#2#3
+\cs_new_protected:Npn \ctex_file_wrapper:nnn
{
- \use:x
+ \exp_args:NNx \ExplSyntaxOff
+ \__ctex_file_wrapper_aux:nnnn
{
- \ExplSyntaxOff
- \char_set_catcode_letter:n { 64 }
- #1
- \exp_not:n {#2}
\bool_if:NTF \l__kernel_expl_bool
{ \ExplSyntaxOn }
{ \ExplSyntaxOff }
+ }
+ }
+\cs_new_protected:Npn \__ctex_file_wrapper_aux:nnnn #1#2#3#4
+ {
+ \use:x
+ {
+ \char_set_catcode_letter:n { 64 }
+ #2
+ \exp_not:n {#3}
\char_set_catcode:nn { 64 } { \char_value_catcode:n { 64 } }
- #3
+ #4
}
+ #1
}
\cs_new_protected:Npn \ctex_file_input:n #1
{ \ctex_file_wrapper:nnn { } { \file_input:n {#1} } { } }