texlive[59858] Master/texmf-dist: easybook (6jul21)

commits+karl at tug.org commits+karl at tug.org
Tue Jul 6 22:32:05 CEST 2021


Revision: 59858
          http://tug.org/svn/texlive?view=revision&revision=59858
Author:   karl
Date:     2021-07-06 22:32:05 +0200 (Tue, 06 Jul 2021)
Log Message:
-----------
easybook (6jul21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/easybook/easybook.pdf
    trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx
    trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty
    trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
    trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg

Modified: trunk/Master/texmf-dist/doc/latex/easybook/easybook.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2021-07-06 20:31:50 UTC (rev 59857)
+++ trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2021-07-06 20:32:05 UTC (rev 59858)
@@ -28,7 +28,7 @@
 %
 % \title{\sffamily easybook 文档类手册}
 % \author{瞿毅}
-% \date{2021/07/05\hskip\ccwd\relax v1.26s\thanks{\url{https://gitee.com/texl3/easybook}}}
+% \date{2021/07/06\hskip\ccwd\relax v1.26u\thanks{\url{https://gitee.com/texl3/easybook}}}
 %
 % \maketitle
 % \begin{abstract}
@@ -158,7 +158,7 @@
 %   floatpage = <true|(false)>
 % \end{syntax}
 % 开启这个选项后浮动环境 \env{table} 和 \env{figure} 的比例参数会使用默认值,关闭它则尽可能避免出现浮动页,使图表环境与正文段落更加紧凑,减少多余的空白版面。
-% \changes{v1.26s}{2021/06/15}{增加浮动环境比例参数选项 \opt{floatpage}。}
+% \changes{v1.26u}{2021/06/15}{增加浮动环境比例参数选项 \opt{floatpage}。}
 % \end{function}
 %
 % \subsection{article 模式}
@@ -240,7 +240,7 @@
 %   \tn{EBeforeAddBitoc*}\marg{加入目录英文标题前的代码}
 % \end{syntax}
 % \tn{appendix} 命令后的章节标题变为附录形式。英文目录中附录标题的格式用可选参数修改,英文附录目录前名字默认为 Appendix\tn{space},后名字默认为空,名字之间用一个半角逗号分开,也可以只有一部分,表示英文附录目录前名字。英文附录目录数字输出命令默认为 \tn{Alph}\{chapter\}。
-% \changes{v1.26s}{2021/06/13}{增加调整英文目录格式的钩子 \tn{EBeforeAddBitoc}。}
+% \changes{v1.26u}{2021/06/13}{增加调整英文目录格式的钩子 \tn{EBeforeAddBitoc}。}
 % \end{function}
 %
 % \tn{EBeforeAddBitoc} 是一个作用于局部范围的英文目录钩子,可以插入标题或目录设置的命令改变英文目录中标题的显示格式,也可以覆盖上述的目录前后名字和编号等设置,带有星号的命令会重置之前的代码,放置在导言区或 \tn{bichapter} 等命令前生效。
@@ -248,17 +248,17 @@
 % \subsection{上标和下标}
 % \begin{function}[added = 2021-06-26]{\super,\sub,\supersub,\textsuperscript,\textsubscript}
 % \begin{syntax}
-%   \tn{super*}\oarg{垂直偏移}[<高度>,<深度>]\parg{格式代码}\marg{内容}\oarg{水平偏移}
-%   \tn{sub*}\oarg{垂直偏移}[<高度>,<深度>]\parg{格式代码}\marg{内容}\oarg{水平偏移}
-%   \tn{supersub*}\oarg{上下标间距}\oarg{对齐方式}\parg{上标代码}
+%   \tn{super*}\oarg{垂直偏移|(0pt)}[<高度>,<深度>]\parg{格式代码}\marg{内容}\oarg{水平偏移|(0pt)}
+%   \tn{sub*}\oarg{垂直偏移|(0pt)}[<高度>,<深度>]\parg{格式代码}\marg{内容}\oarg{水平偏移|(0pt)}
+%   \tn{supersub*}\oarg{上下标间距|(0.3ex)}\oarg{对齐方式|(l)|c|r}\parg{上标代码}
 %   \          \marg{上标内容}\marg{下标内容}
-%   \          \oarg{水平偏移}\parg{下标代码}
+%   \          \oarg{水平偏移|(0pt)}\parg{下标代码}
 % \end{syntax}
 % 上标和下标的功能来自 \pkg{spbmark} 宏包,\tn{super}、\tn{sub} 和 \tn{supersub} 三个命令可以用于输出上标和下标。它们根据当前处于文本模式还是数学模式来匹配相应的模式,或者可以使用它们的星号变体命令来强制使用数学模式。也可以使用键值列表对偏移量进行全局设置,详情见小节 \ref{subsubsec:super-sub-script}。
-% \changes{v1.26s}{2021/06/28}{增加可以调整相对位置和格式的上标和下标命令 \tn{super}、\tn{sub} 和 \tn{supersub}。}
+% \changes{v1.26u}{2021/06/28}{增加可以调整相对位置和格式的上标和下标命令 \tn{super}、\tn{sub} 和 \tn{supersub}。}
 % \end{function}
 %
-% 垂直和水平偏移默认值都是 0 pt,\meta{对齐方式} 的参数与 \opt{supersubalign} 相同。\meta{格式代码} 用于格式化上标和下标,可以插入字体或颜色等命令。代码中的最后一个命令可以接受一个为上标或下标的参数。\tn{textsuperscript} 和 \tn{textsubscript} 命令已被重新定义并且分别等价于 \tn{super} 和 \tn{sub},如果您需要使用它们的原始定义创建新命令,则可以使用 \tn{spb at textsuperscript@save} 和 \tn{spb at textsubscript@save} 命令。
+% 垂直和水平偏移默认值都是 0 pt,\meta{对齐方式} 的参数与 \opt{supersubalign} 相同。\meta{格式代码} 用于格式化上标和下标,可以插入字体或颜色等命令。代码中的最后一个命令可以接受一个为上标或下标的参数。上标和下标命令还分别具有更简短的等价命令 \tn{sp}、\tn{sb} 和 \tn{spb}。
 %
 % \section{接口选项}
 % \label{sec:interface options}
@@ -306,7 +306,7 @@
 %       \tn{DeclareThemeColor}\{<风格名称>,<ctex at frame>,<ctex at emph>,<ctex at verb>\}
 %     \end{syntax}
 %     可以使用 \tn{DeclareThemeColor} 命令声明新的主题颜色,它的参数以英文逗号分隔,第一部分为颜色风格名称,后面三部分为 HTML 颜色代码,构成主题颜色。类似地更改超链接颜色见小节 \ref{subsec:hyperlinks}。
-%     \changes{v1.26s}{2021/07/03}{使用 \tn{DeclareThemeColor} 命令声明新的颜色风格。}
+%     \changes{v1.26u}{2021/07/03}{使用 \tn{DeclareThemeColor} 命令声明新的颜色风格。}
 %     \end{function}
 %   \item[color-all] 统一设置主题的各部分颜色,参数是 6 个十六进制数字组成的 HTML 颜色代码,任意颜色的代码可以在常见的图片处理工具拾色器中查看。
 %   \item[multoc] 开启多栏目录,与节 \ref{sec:document command} 中目录命令的同名选项有相同效果。
@@ -371,7 +371,7 @@
 %       \tn{DeclareLinkColor}\{<风格名称>,<ctex at link>,<ctex at url>,<ctex at cite>\}
 %     \end{syntax}
 %     可以使用 \tn{DeclareLinkColor} 命令声明新的超链接颜色样式,它的参数以英文逗号分隔,第一部分为颜色风格名称,后面三部分为 HTML 颜色代码,构成超链接颜色。
-%     \changes{v1.26s}{2021/07/03}{使用 \tn{DeclareLinkColor} 命令声明新的超链接颜色。}
+%     \changes{v1.26u}{2021/07/03}{使用 \tn{DeclareLinkColor} 命令声明新的超链接颜色。}
 %     \end{function}
 %   \item[linkcol-all] 统一设置超链接的各部分颜色,参数是 6 个十六进制数字组成的 HTML 颜色代码,任意颜色的代码可以在常见的图片处理工具拾色器中查看。
 %   \item[linktoc] 将目录中的超链接取消、置于标题上、置于页码上或置于标题和页码上。
@@ -492,7 +492,7 @@
 % \end{syntax}
 % \ding{229} 以上选项路径为 \opt{thmset/...}
 % \changes{v1.21}{2021/01/12}{增加配置定理环境样式的选项。}
-% \changes{v1.26s}{2021/07/01}{增加配置公式标签括号选项 \opt{brackets}。}
+% \changes{v1.26u}{2021/07/01}{增加配置公式标签括号选项 \opt{brackets}。}
 % \end{function}
 %
 % \begin{optdesc}
@@ -519,7 +519,7 @@
 % 文档类已预置 8 个定理环境,环境名及对应的定理标题名见小节 \ref{subsec:theorem},如果需要新的定理标题名或定理样式可使用这两个命令,由 \pkg{thmtools} 提供支持,用法与它的同名命令一致。
 % \changes{v1.23}{2021/03/12}{重新定义了新定理环境命令 \tn{newtheorem}。}
 % \changes{v1.24}{2021/04/25}{增加定义定理环境命令 \tn{EBNewTheorem}。}
-% \changes{v1.26s}{2021/06/15}{定义新定理环境的命令调整为 \tn{declaretheorem}。}
+% \changes{v1.26u}{2021/06/15}{定义新定理环境的命令调整为 \tn{declaretheorem}。}
 % \end{function}
 %
 % \begin{optdesc}
@@ -625,7 +625,7 @@
 %   \tn{markrule}\oarg{长度|(\tn{textwidth})}\parg{颜色名}\marg{线宽|(0.75pt)}[<上间距>+<下间距>]
 % \end{syntax}
 % 命令 \tn{easyhead} 和 \tn{easyfoot} 的使用方法与 \tn{fancyhead} 和 \tn{fancyfoot} 完全相同,它们需要在 \opt{head-foot} 选项中使用,设置的是一个名为 \opt{fancy} 的页面风格。\pkg{fancyhdr} 将页眉页脚分成了左中右和奇数页(odd)、偶数页(even)共12个部分,可选参数中E、O代表偶数、奇数,L、C、R代表左、中、右部分。单面打印时,含有偶数的选项无效。
-% \changes{v1.26s}{2021/06/14}{增加页眉页脚的横线绘制命令 \tn{markrule}。}
+% \changes{v1.26u}{2021/06/14}{增加页眉页脚的横线绘制命令 \tn{markrule}。}
 % \end{function}
 %
 % 命令 \tn{markrule} 用于绘制页眉页脚横线,长度默认为页面文本区的宽度,上下间距为横线与上下方部件的间距,带有长度单位,间距长度之间用 + 号分开,若只有一部分则表示上间距,这个命令也可以在正文中绘制横线。下面举一个设置页眉内容的例子:
@@ -963,7 +963,7 @@
 %   \tn{EBUseCounter*}\oarg{父计数器}\parg{编号|(arabic)}\marg{计数器}\marg{内容}\oarg{分隔符|(.)}\parg{数值}
 % \end{syntax}
 % \tn{newcounter} 是 \LaTeX 自带的创建计数器命令,\tn{EBUseCounter} 将会以一定的格式使用由它创建的计数器,将会以 \tn{the}\meta{父计数器}\meta{分隔符}\tn{the}\meta{计数器}\meta{内容} 输出当前内容。
-% \changes{v1.26s}{2021/06/30}{增加计数器使用命令 \tn{EBUseCounter}。}
+% \changes{v1.26u}{2021/06/30}{增加计数器使用命令 \tn{EBUseCounter}。}
 % \end{function}
 %
 % 需要注意的是 \tn{EBUseCounter} 仅具有 \textbf{输出功能},并不会改变计数器原有的绑定关系。默认每使用一次命令 \meta{计数器} 的值增加 1,带有星号的命令使 \meta{计数器} 保持当前值,\meta{编号} 为 arabic 和 alpha 等格式,\meta{数值} 可以手动将 \meta{计数器} 设为指定值。
@@ -1150,7 +1150,7 @@
 %<*class>
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/07/05}{1.26s}
+\ProvidesExplClass{easybook}{2021/07/06}{1.26u}
   {Typeset Chinese books or notes}
 
 \bool_set_false:N \l__eb_compile_draft_bool
@@ -1242,10 +1242,9 @@
     \exp_args:Nc \RenewDocumentCommand {set#1font}{O{}mO{}}
       {\use:c { eb_set#1font:nn } {##2} {##1,##3}}
   }
-\seq_const_from_clist:Nn \c__eb_font_reset_family_seq
+\eb_clist_map_function:nN
   { main,sans,mono,CJKmain,CJKsans,CJKmono }
-\seq_map_inline:Nn \c__eb_font_reset_family_seq
-  { \eb_font_double_engine_set:n {#1} }
+  \eb_font_double_engine_set:n
 
 \cs_new_protected:Npn \eb_setmainfont:nn #1#2
   { \__fontspec_main_setmainfont:nn {#2} {#1} }
@@ -1398,7 +1397,7 @@
 %<*package>
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2021/07/05}{1.26s}
+\ProvidesExplPackage{easybase}{2021/07/06}{1.26u}
   {Typeset Chinese books or notes}
 
 \cs_generate_variant:Nn \eb_ctex_define:nn { nx }
@@ -1409,16 +1408,28 @@
 \cs_generate_variant:Nn \seq_set_from_clist:Nn { No }
 \cs_generate_variant:Nn \int_compare:nNnT { oNnT }
 \cs_generate_variant:Nn \prop_set_from_keyval:Nn { NV }
+\cs_generate_variant:Nn \eb_at_begin_environment:nn { on }
 \cs_new_protected:Npn \eb_ctex_define:nn #1
   { \keys_define:nn { ctex/#1 } }
+\cs_new_protected:Npn \eb_clist_map_inline:nn #1#2
+  {
+    \seq_set_from_clist:Nn \l_tmpa_seq {#1}
+    \seq_map_inline:Nn \l_tmpa_seq {#2}
+  }
+\cs_new_protected:Npn \eb_clist_map_function:nN #1#2
+  {
+    \seq_set_from_clist:Nn \l_tmpb_seq {#1}
+    \seq_map_function:NN \l_tmpb_seq #2
+  }
+\cs_new_protected:Npn \eb_patch_cmd:Nnn #1#2#3
+  {
+    \ctex_patch_cmd_once:NnnnTF #1 { } {#2} {#3}
+      { } { \ctex_patch_failure:N #1 }
+  }
 \cs_new_protected:Npn \eb_patch_cmd:nnn #1#2#3
   {
-    \seq_set_from_clist:Nn \l__eb_control_sequence_seq {#1}
-    \seq_map_inline:Nn \l__eb_control_sequence_seq
-      {
-        \ctex_patch_cmd_once:NnnnTF ##1 { } {#2} {#3}
-          { } { \ctex_patch_failure:N ##1 }
-      }
+    \eb_clist_map_inline:nn {#1}
+      { \eb_patch_cmd:Nnn ##1 {#2} {#3} }
   }
 \cs_new_protected:Npn \eb_preto_cmd:Nn #1#2
   {
@@ -1432,8 +1443,7 @@
   }
 \cs_new_protected:Npn \eb_at_begin_environment:nn #1#2
   {
-    \seq_set_from_clist:No \l__eb_env_hook_name_seq {#1}
-    \seq_map_inline:Nn \l__eb_env_hook_name_seq
+    \eb_clist_map_inline:nn {#1}
       { \AtBeginEnvironment{##1}{#2} }
   }
 \cs_new_protected:Npn \eb_match_package_name:n #1
@@ -1511,13 +1521,12 @@
 \bool_new:N \l__eb_chap_counter_withpart_bool
 \tl_new:N   \l__eb_foot_counter_parent_choice_tl
 
-\seq_const_from_clist:Nn \c__eb_options_path_seq
+\eb_clist_map_inline:nn
   {
     style,subfont,spread,
     refset,bibset,thmset,
     geoset,hdrset,tocset
   }
-\seq_map_inline:Nn \c__eb_options_path_seq
   {
     \ctex_define:n { #1 .meta:nn = { ctex/#1 } {##1} }
     \cs_new:cpn {#1} ##1 { \keys_set:nn { ctex/#1 } {##1} }
@@ -1676,9 +1685,8 @@
     \booltrue{@mainmatter}
     \pagenumbering{arabic}
   }
-\seq_const_from_clist:Nn \c__eb_mark_title_level_seq
+\eb_clist_map_inline:nn
   { chapter,section,subsection }
-\seq_map_inline:Nn \c__eb_mark_title_level_seq
   {
     \exp_args:Nc \NewDocumentCommand { eb at mark@#1 at label@layout }
       {O{\use:c { CTEXthe#1 }}m}
@@ -1942,11 +1950,9 @@
   }
 \seq_map_function:NN
 \c__eb_toc_heading_level_seq \eb_toc_assign_keys:n
-
-\seq_const_from_clist:Nn \c__eb_toc_list_meta_keys_seq
+\ctex_define:n { tocset/list .meta:nn = { ctex/tocset/list } {#1} }
+\eb_clist_map_inline:nn
   { format,format+,format~+,indent,rule,numsep,belowoffset }
-\ctex_define:n { tocset/list .meta:nn = { ctex/tocset/list } {#1} }
-\seq_map_inline:Nn \c__eb_toc_list_meta_keys_seq
   {
     \eb_ctex_define:nn { tocset }
       {
@@ -2153,9 +2159,8 @@
 \cs_set:Npn \thebisection { \eb_section_counter_prefix:n { bi } }
 \cs_set:Npn \thebisubsection { \thebisection.\eb_arabic:n { bisubsection } }
 \cs_set:Npn \thesection { \eb_section_counter_prefix:n { } }
-\seq_const_from_clist:Nn \c__eb_serial_number_counter_seq
+\eb_clist_map_inline:nn
   { figure,table,lstlisting,equation }
-\seq_map_inline:Nn \c__eb_serial_number_counter_seq
   {
     \cs_set:cpn { the#1 }
       {
@@ -2185,9 +2190,8 @@
     \addcontentsline{tec}{#1}{\use:c { CTEX@#1 at tocline }{#1}{#2}}
     \group_end:
   }
-\seq_const_from_clist:Nn \c__eb_bitoc_title_level_seq
+\eb_clist_map_inline:nn
   { chapter,section,subsection }
-\seq_map_inline:Nn \c__eb_bitoc_title_level_seq
   {
     \exp_args:Nc \NewDocumentCommand { bi#1 }{sO{##3}mm}
       {
@@ -2387,10 +2391,7 @@
     binmuber .initial:n = \arabic{chapter}
   }
 \cs_new_protected:Npn \eb_counter_zero:n #1
-  {
-    \seq_set_from_clist:No \l__eb_counter_name_seq {#1}
-    \seq_map_inline:Nn \l__eb_counter_name_seq { \setcounter{##1}{0} }
-  }
+  { \eb_clist_map_inline:nn {#1} { \setcounter{##1}{0} } }
 \RenewDocumentCommand{\appendix}
   {O{Appendix\space}D(){\Alph{chapter}}}
   {
@@ -2398,7 +2399,7 @@
     \int_compare:nNnTF { \c at chapter } > { 0 }
       {
         \ExplSyntaxOn\char_set_catcode_letter:N \@
-        \eb_patch_cmd:nnn { \CTEX at addbitocline }
+        \eb_patch_cmd:Nnn \CTEX at addbitocline
           {
             \def\CTEX at prechapter{\CTEX at prebichapter}
             \def\CTEX at thechapter{\CTEX at bichapter@number}
@@ -2757,7 +2758,7 @@
     \linespread{\fp_use:N \l__eb_spread_math_fp}
     \selectfont\collect at body
   }
-\eb_patch_cmd:nnn { \gather at split }
+\eb_patch_cmd:Nnn \gather at split
   { \spread at equation }
   {
     \linespread{\fp_use:N \l__eb_spread_math_fp}
@@ -3131,7 +3132,7 @@
   }
 %</package>
 %<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2021/07/05}{1.26s}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2021/07/06}{1.26u}
   {Customization of tcolorbox for easybook}
 
 \cs_new_protected:Npn \eb_tcb_theorem_set:n #1

Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty	2021-07-06 20:31:50 UTC (rev 59857)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty	2021-07-06 20:32:05 UTC (rev 59858)
@@ -13,7 +13,7 @@
 %%   https://creativecommons.org/licenses/by/4.0/legalcode
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2021/07/05}{1.26s}
+\ProvidesExplPackage{easybase}{2021/07/06}{1.26u}
   {Typeset Chinese books or notes}
 
 \cs_generate_variant:Nn \eb_ctex_define:nn { nx }
@@ -24,16 +24,28 @@
 \cs_generate_variant:Nn \seq_set_from_clist:Nn { No }
 \cs_generate_variant:Nn \int_compare:nNnT { oNnT }
 \cs_generate_variant:Nn \prop_set_from_keyval:Nn { NV }
+\cs_generate_variant:Nn \eb_at_begin_environment:nn { on }
 \cs_new_protected:Npn \eb_ctex_define:nn #1
   { \keys_define:nn { ctex/#1 } }
+\cs_new_protected:Npn \eb_clist_map_inline:nn #1#2
+  {
+    \seq_set_from_clist:Nn \l_tmpa_seq {#1}
+    \seq_map_inline:Nn \l_tmpa_seq {#2}
+  }
+\cs_new_protected:Npn \eb_clist_map_function:nN #1#2
+  {
+    \seq_set_from_clist:Nn \l_tmpb_seq {#1}
+    \seq_map_function:NN \l_tmpb_seq #2
+  }
+\cs_new_protected:Npn \eb_patch_cmd:Nnn #1#2#3
+  {
+    \ctex_patch_cmd_once:NnnnTF #1 { } {#2} {#3}
+      { } { \ctex_patch_failure:N #1 }
+  }
 \cs_new_protected:Npn \eb_patch_cmd:nnn #1#2#3
   {
-    \seq_set_from_clist:Nn \l__eb_control_sequence_seq {#1}
-    \seq_map_inline:Nn \l__eb_control_sequence_seq
-      {
-        \ctex_patch_cmd_once:NnnnTF ##1 { } {#2} {#3}
-          { } { \ctex_patch_failure:N ##1 }
-      }
+    \eb_clist_map_inline:nn {#1}
+      { \eb_patch_cmd:Nnn ##1 {#2} {#3} }
   }
 \cs_new_protected:Npn \eb_preto_cmd:Nn #1#2
   {
@@ -47,8 +59,7 @@
   }
 \cs_new_protected:Npn \eb_at_begin_environment:nn #1#2
   {
-    \seq_set_from_clist:No \l__eb_env_hook_name_seq {#1}
-    \seq_map_inline:Nn \l__eb_env_hook_name_seq
+    \eb_clist_map_inline:nn {#1}
       { \AtBeginEnvironment{##1}{#2} }
   }
 \cs_new_protected:Npn \eb_match_package_name:n #1
@@ -126,13 +137,12 @@
 \bool_new:N \l__eb_chap_counter_withpart_bool
 \tl_new:N   \l__eb_foot_counter_parent_choice_tl
 
-\seq_const_from_clist:Nn \c__eb_options_path_seq
+\eb_clist_map_inline:nn
   {
     style,subfont,spread,
     refset,bibset,thmset,
     geoset,hdrset,tocset
   }
-\seq_map_inline:Nn \c__eb_options_path_seq
   {
     \ctex_define:n { #1 .meta:nn = { ctex/#1 } {##1} }
     \cs_new:cpn {#1} ##1 { \keys_set:nn { ctex/#1 } {##1} }
@@ -291,9 +301,8 @@
     \booltrue{@mainmatter}
     \pagenumbering{arabic}
   }
-\seq_const_from_clist:Nn \c__eb_mark_title_level_seq
+\eb_clist_map_inline:nn
   { chapter,section,subsection }
-\seq_map_inline:Nn \c__eb_mark_title_level_seq
   {
     \exp_args:Nc \NewDocumentCommand { eb at mark@#1 at label@layout }
       {O{\use:c { CTEXthe#1 }}m}
@@ -557,11 +566,9 @@
   }
 \seq_map_function:NN
 \c__eb_toc_heading_level_seq \eb_toc_assign_keys:n
-
-\seq_const_from_clist:Nn \c__eb_toc_list_meta_keys_seq
+\ctex_define:n { tocset/list .meta:nn = { ctex/tocset/list } {#1} }
+\eb_clist_map_inline:nn
   { format,format+,format~+,indent,rule,numsep,belowoffset }
-\ctex_define:n { tocset/list .meta:nn = { ctex/tocset/list } {#1} }
-\seq_map_inline:Nn \c__eb_toc_list_meta_keys_seq
   {
     \eb_ctex_define:nn { tocset }
       {
@@ -768,9 +775,8 @@
 \cs_set:Npn \thebisection { \eb_section_counter_prefix:n { bi } }
 \cs_set:Npn \thebisubsection { \thebisection.\eb_arabic:n { bisubsection } }
 \cs_set:Npn \thesection { \eb_section_counter_prefix:n { } }
-\seq_const_from_clist:Nn \c__eb_serial_number_counter_seq
+\eb_clist_map_inline:nn
   { figure,table,lstlisting,equation }
-\seq_map_inline:Nn \c__eb_serial_number_counter_seq
   {
     \cs_set:cpn { the#1 }
       {
@@ -800,9 +806,8 @@
     \addcontentsline{tec}{#1}{\use:c { CTEX@#1 at tocline }{#1}{#2}}
     \group_end:
   }
-\seq_const_from_clist:Nn \c__eb_bitoc_title_level_seq
+\eb_clist_map_inline:nn
   { chapter,section,subsection }
-\seq_map_inline:Nn \c__eb_bitoc_title_level_seq
   {
     \exp_args:Nc \NewDocumentCommand { bi#1 }{sO{##3}mm}
       {
@@ -1002,10 +1007,7 @@
     binmuber .initial:n = \arabic{chapter}
   }
 \cs_new_protected:Npn \eb_counter_zero:n #1
-  {
-    \seq_set_from_clist:No \l__eb_counter_name_seq {#1}
-    \seq_map_inline:Nn \l__eb_counter_name_seq { \setcounter{##1}{0} }
-  }
+  { \eb_clist_map_inline:nn {#1} { \setcounter{##1}{0} } }
 \RenewDocumentCommand{\appendix}
   {O{Appendix\space}D(){\Alph{chapter}}}
   {
@@ -1013,7 +1015,7 @@
     \int_compare:nNnTF { \c at chapter } > { 0 }
       {
         \ExplSyntaxOn\char_set_catcode_letter:N \@
-        \eb_patch_cmd:nnn { \CTEX at addbitocline }
+        \eb_patch_cmd:Nnn \CTEX at addbitocline
           {
             \def\CTEX at prechapter{\CTEX at prebichapter}
             \def\CTEX at thechapter{\CTEX at bichapter@number}
@@ -1372,7 +1374,7 @@
     \linespread{\fp_use:N \l__eb_spread_math_fp}
     \selectfont\collect at body
   }
-\eb_patch_cmd:nnn { \gather at split }
+\eb_patch_cmd:Nnn \gather at split
   { \spread at equation }
   {
     \linespread{\fp_use:N \l__eb_spread_math_fp}

Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2021-07-06 20:31:50 UTC (rev 59857)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2021-07-06 20:32:05 UTC (rev 59858)
@@ -13,7 +13,7 @@
 %%   https://creativecommons.org/licenses/by/4.0/legalcode
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/07/05}{1.26s}
+\ProvidesExplClass{easybook}{2021/07/06}{1.26u}
   {Typeset Chinese books or notes}
 
 \bool_set_false:N \l__eb_compile_draft_bool
@@ -105,10 +105,9 @@
     \exp_args:Nc \RenewDocumentCommand {set#1font}{O{}mO{}}
       {\use:c { eb_set#1font:nn } {##2} {##1,##3}}
   }
-\seq_const_from_clist:Nn \c__eb_font_reset_family_seq
+\eb_clist_map_function:nN
   { main,sans,mono,CJKmain,CJKsans,CJKmono }
-\seq_map_inline:Nn \c__eb_font_reset_family_seq
-  { \eb_font_double_engine_set:n {#1} }
+  \eb_font_double_engine_set:n
 
 \cs_new_protected:Npn \eb_setmainfont:nn #1#2
   { \__fontspec_main_setmainfont:nn {#2} {#1} }

Modified: trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg	2021-07-06 20:31:50 UTC (rev 59857)
+++ trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg	2021-07-06 20:32:05 UTC (rev 59858)
@@ -11,7 +11,7 @@
 %% conditions of the CC-BY 4.0 License.
 %% The latest version of this license is in
 %%   https://creativecommons.org/licenses/by/4.0/legalcode
-\ProvidesExplFile{eb-tcolorbox.cfg}{2021/07/05}{1.26s}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2021/07/06}{1.26u}
   {Customization of tcolorbox for easybook}
 
 \cs_new_protected:Npn \eb_tcb_theorem_set:n #1



More information about the tex-live-commits mailing list.