summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty48
1 files changed, 24 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty b/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty
index 5e50f61baac..cef79c3eaf3 100644
--- a/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty
+++ b/Master/texmf-dist/tex/xelatex/xecjk/xeCJK-listings.sty
@@ -7,8 +7,8 @@
%% xeCJK.dtx (with options: `listings')
%%
%% Copyright (C) 2007--2010 by Wenchang Sun <sunwch@nankai.edu.cn>
-%% Copyright (C) 2009--2018 by Leo Liu <leoliu.pku@gmail.com>
-%% Copyright (C) 2012--2018 by Qing Lee <sobenlee@gmail.com>
+%% Copyright (C) 2009--2019 by Leo Liu <leoliu.pku@gmail.com>
+%% Copyright (C) 2012--2019 by Qing Lee <sobenlee@gmail.com>
%% ----------------------------------------------------------------------
%%
%% This work may be distributed and/or modified under the
@@ -29,10 +29,10 @@
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\GetIdInfo$Id: xeCJK.dtx b604170 2018-04-30 10:29:28 +0800 Liu Haiyang <leoliu.pku@gmail.com> $
+\GetIdInfo$Id: xeCJK.dtx 8be031f 2019-04-07 23:30:14 +0800 Qing Lee <sobenlee@gmail.com> $
{xeCJK patch file for listings}
\ProvidesExplPackage{xeCJK-listings}
- {\ExplFileDate}{3.7.1}{\ExplFileDescription}
+ {\ExplFileDate}{3.7.2}{\ExplFileDescription}
\DeclareOption* { \PassOptionsToPackage { \CurrentOption } { xeCJK } }
\ProcessOptions \scan_stop:
\RequirePackage { xeCJK }
@@ -77,7 +77,7 @@
}
}
\xeCJK_inter_class_toks:nnn { Boundary } { CM }
- { \__xeCJK_listings_process_CM:nN { \c_zero } }
+ { \__xeCJK_listings_process_CM:nN { 0 } }
\__xeCJK_listings_CJK_toks_hook:
}
\cs_new_protected_nopar:Npn \__xeCJK_backup_inter_class_toks:n #1
@@ -98,33 +98,33 @@
\cs_new_protected_nopar:Npn \__xeCJK_listings_CJK_toks_hook:
{
\xeCJK_inter_class_toks:nnn { Boundary } { CJK }
- { \__xeCJK_listings_process_CJK:nN { \c_two } }
+ { \__xeCJK_listings_process_CJK:nN { 2 } }
\xeCJK_inter_class_toks:nnn { Boundary } { FullLeft }
- { \__xeCJK_listings_process_CJK:nN { \c_two } }
+ { \__xeCJK_listings_process_CJK:nN { 2 } }
\xeCJK_inter_class_toks:nnn { Boundary } { FullRight }
- { \__xeCJK_listings_process_CJK:nN { \c_two } }
+ { \__xeCJK_listings_process_CJK:nN { 2 } }
\xeCJK_inter_class_toks:nnn { Boundary } { HangulJamo }
- { \__xeCJK_listings_process_CJK:nN { \c_two } }
+ { \__xeCJK_listings_process_CJK:nN { 2 } }
\seq_map_inline:Nn \g__xeCJK_CJK_sub_class_seq
{
\xeCJK_inter_class_toks:nnn { Boundary } { CJK/##1 }
- { \__xeCJK_listings_process_CJK:nN { \c_two } }
+ { \__xeCJK_listings_process_CJK:nN { 2 } }
}
}
\cs_new_protected_nopar:Npn \__xeCJK_listings_breaklines_toks:
{
\xeCJK_inter_class_toks:nnn { Boundary } { CJK }
- { \__xeCJK_listings_process_breaklines_CJK:nN { \c_two } }
+ { \__xeCJK_listings_process_breaklines_CJK:nN { 2 } }
\xeCJK_inter_class_toks:nnn { Boundary } { HangulJamo }
- { \__xeCJK_listings_process_breaklines_CJK:nN { \c_two } }
+ { \__xeCJK_listings_process_breaklines_CJK:nN { 2 } }
\xeCJK_inter_class_toks:nnn { Boundary } { FullLeft }
- { \__xeCJK_listings_process_FullLeft:nN { \c_two } }
+ { \__xeCJK_listings_process_FullLeft:nN { 2 } }
\xeCJK_inter_class_toks:nnn { Boundary } { FullRight }
- { \__xeCJK_listings_process_FullRight:nN { \c_two } }
+ { \__xeCJK_listings_process_FullRight:nN { 2 } }
\seq_map_inline:Nn \g__xeCJK_CJK_sub_class_seq
{
\xeCJK_inter_class_toks:nnn { Boundary } { CJK/##1 }
- { \__xeCJK_listings_process_breaklines_CJK:nN { \c_two } }
+ { \__xeCJK_listings_process_breaklines_CJK:nN { 2 } }
}
}
\cs_new_protected_nopar:Npn \__xeCJK_listings_process_Default:nN #1#2
@@ -154,7 +154,7 @@
}
\cs_new_protected_nopar:Npn \__xeCJK_listings_append:nN #1#2
{
- \int_add:Nn \lst@length { #1 - \c_one }
+ \int_add:Nn \lst@length { #1 - 1 }
\lst@Append #2
}
\cs_new_protected_nopar:Npn \__xeCJK_listings_process_letter:nN
@@ -186,14 +186,14 @@
\lst@whitespacefalse
\bool_if:NTF \l__xeCJK_listings_letter_bool
{
- \int_compare:nNnF \l__xeCJK_listings_flag_int = \c_two { \lst@Output }
+ \int_compare:nNnF \l__xeCJK_listings_flag_int = 2 { \lst@Output }
\lst@lettertrue
}
{
\lst@ifletter \lst@Output \else: \lst@OutputOther \lst@lettertrue \fi:
\bool_set_true:N \l__xeCJK_listings_letter_bool
}
- \int_set_eq:NN \l__xeCJK_listings_flag_int \c_one
+ \int_set_eq:NN \l__xeCJK_listings_flag_int \c_one_int
\__xeCJK_listings_append:nN
}
\cs_new_protected_nopar:Npn \__xeCJK_listings_process_FullLeft:nN #1#2
@@ -201,9 +201,9 @@
\lst@whitespacefalse
\bool_if:NTF \l__xeCJK_listings_letter_bool
{
- \int_compare:nNnF \l__xeCJK_listings_flag_int = \c_two
+ \int_compare:nNnF \l__xeCJK_listings_flag_int = 2
{
- \int_compare:nNnTF \l__xeCJK_listings_flag_int = \c_three
+ \int_compare:nNnTF \l__xeCJK_listings_flag_int = 3
{ \bool_if:NT \l__xeCJK_punct_breakable_bool { \lst@Output } }
{ \lst@Output }
}
@@ -213,7 +213,7 @@
\lst@ifletter \lst@Output \else: \lst@OutputOther \lst@lettertrue \fi:
\bool_set_true:N \l__xeCJK_listings_letter_bool
}
- \int_set_eq:NN \l__xeCJK_listings_flag_int \c_two
+ \int_set:Nn \l__xeCJK_listings_flag_int { 2 }
\__xeCJK_listings_append:nN {#1} #2
}
\cs_new_protected_nopar:Npn \__xeCJK_listings_process_FullRight:nN #1#2
@@ -221,7 +221,7 @@
\lst@whitespacefalse
\bool_if:NTF \l__xeCJK_listings_letter_bool
{
- \int_compare:nNnT \l__xeCJK_listings_flag_int < \c_two
+ \int_compare:nNnT \l__xeCJK_listings_flag_int < 2
{ \__xeCJK_punct_if_long:NT #2 { \lst@Output } }
\lst@lettertrue
}
@@ -229,7 +229,7 @@
\lst@ifletter \lst@Output \else: \lst@OutputOther \lst@lettertrue \fi:
\bool_set_true:N \l__xeCJK_listings_letter_bool
}
- \int_set_eq:NN \l__xeCJK_listings_flag_int \c_three
+ \int_set:Nn \l__xeCJK_listings_flag_int { 3 }
\__xeCJK_listings_append:nN {#1} #2
}
\int_new:N \l__xeCJK_listings_flag_int
@@ -305,7 +305,7 @@
\cs_new_protected_nopar:Npn \__xeCJK_listings_inline_group:w
{
\exp_after:wN \__xeCJK_listings_inline_group:n
- \exp_after:wN { \if_int_compare:w `} = \c_zero \fi:
+ \exp_after:wN { \if_int_compare:w `} = \c_zero_int \fi:
}
\cs_set_eq:NN \lst@InlineGJ \__xeCJK_listings_inline_group:w
\cs_new_protected:Npn \__xeCJK_listings_inline_group:n #1