texlive[59148] Master/texmf-dist: easybook (9may21)

commits+karl at tug.org commits+karl at tug.org
Sun May 9 22:50:32 CEST 2021


Revision: 59148
          http://tug.org/svn/texlive?view=revision&revision=59148
Author:   karl
Date:     2021-05-09 22:50:32 +0200 (Sun, 09 May 2021)
Log Message:
-----------
easybook (9may21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/easybook/easybook.pdf
    trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx
    trunk/Master/texmf-dist/source/latex/easybook/easybook.ins
    trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls

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-05-09 20:50:14 UTC (rev 59147)
+++ trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2021-05-09 20:50:32 UTC (rev 59148)
@@ -24,11 +24,11 @@
 % \changes{v1.20}{2021/01/09}{修改和完善用户文档。}
 % \changes{v1.20}{2021/01/09}{模板更改为使用 CC-BY 许可协议。}
 % \changes{v1.23}{2021/03/19}{修复在 \pkg{ctex} v2.5.6 更新后 \cls{easybook} 与 \pkg{hyperref} 冲突问题。}
-% \changes{v1.25d}{2021/05/03}{取消附带的示例文件,可查看历史版本及其它来源的使用样例。}
+% \changes{v1.25f}{2021/05/03}{取消附带的示例文件,可查看历史版本及其它来源的使用样例。}
 %
 % \title{\sffamily easybook 文档类手册}
 % \author{瞿毅}
-% \date{2021/05/07\hskip\ccwd\relax v1.25d\thanks{\url{https://gitee.com/texl3/easybook}}}
+% \date{2021/05/09\hskip\ccwd\relax v1.25f\thanks{\url{https://gitee.com/texl3/easybook}}}
 %
 % \maketitle
 % \begin{abstract}
@@ -118,7 +118,7 @@
 % \end{syntax}
 % 传递给 \cls{ctexbook} 设置字体,最好不要使用原有的 \opt{fontset} 选项,默认情况下使用自定义字体而不开启这个选项,可根据安装的字体及电脑系统选取。\opt{noto} 与 \opt{none} 选项的相关描述见小节 \ref{subsec:font settings},\opt{overleaf} 是一个各系统通用选项,会检测系统环境选取对应字体。
 % \changes{v1.21}{2021/01/12}{默认字体与 \CTeX 一致,不再是自定义字体。}
-% \changes{v1.25d}{2021/05/04}{修复使用 \pkg{xeCJK} 与 \pkg{fontspec} 宏包的字体设置命令在 \hologo{LuaLaTeX} 下失效的问题。}
+% \changes{v1.25f}{2021/05/04}{修复使用 \pkg{xeCJK} 与 \pkg{fontspec} 宏包的字体设置命令在 \hologo{LuaLaTeX} 下失效的问题。}
 % \end{function}
 %
 % \begin{function}[rEXP,added = 2021-01-05,updated = 2021-01-13]{paper}
@@ -169,7 +169,7 @@
 %   \tn{listoflistings*+}\oarg{键值列表}
 % \end{syntax}
 % \tn{listoffigures} 命令输出图片目录,\tn{listoftables} 输出表格目录,\tn{listoflistings} 输出代码目录。带有星号的目录命令不将标题添加进主文档目录,带有+号的目录命令可以使当前标题编号。\tn{tableofcontents+} 与其它命令不同是用于输出双语目录,需要与双语目录标题命令 \tn{bichapter} 等或设置图片、表格和代码等英文目录的标题配合使用,附加代码是中文与英文目录之间的代码,可以插入文本和换页命令等。目录的键值列表选项如下
-% \changes{v1.25d}{2021/05/05}{命令 \tn{tableofcontents} 可以输出双语目录。}
+% \changes{v1.25f}{2021/05/05}{命令 \tn{tableofcontents} 可以输出双语目录。}
 % \end{function}
 %
 % \begin{function}{multoc,title,format,aftertitle,pagestyle,book,article}
@@ -200,7 +200,7 @@
 % 双语目录的标题命令目前设置了常用的三个级别,它们将中文标题正常输出,并使中英文标题加入双语目录,这个功能是为国内一些大学的学位论文模板的要求设计,在一般情况和英文模式下不需要使用。
 %
 % 它们的星号变体命令使文中标题不编号,但是仍然加入双语目录,若英文标题参数空置那么仅加入中文目录而不加入英文目录,这一特点与 \tn{chapter*} 等命令的行为不太一样,在一些情况下会用到。可选参数是目录中的中文标题,默认与中文标题一致,正文标题过长时可用它设置在目录中显示的标题。双语目录的格式是一致的,共享使用 \tn{tocset} 的设置,英文目录的章级别标题名及编号的修改方式如下
-% \changes{v1.25d}{2021/05/05}{增加与双语目录配合的标题命令。}
+% \changes{v1.25f}{2021/05/05}{增加与双语目录配合的标题命令。}
 % \end{function}
 %
 % \begin{function}{biname,binmuber}
@@ -224,12 +224,12 @@
 % \begin{syntax}
 %   \tn{ctexset}\marg{键值列表}
 % \end{syntax}
-% \cls{easybook} 扩展了 \CTeX 宏集\LaTeX 3风格键值的通用控制命令 \tn{ctexset},接口选项同样可用它设置, 原有的键值列表仍然可用。本文档类目前有九个模块用于实现常规的排版功能,如下表所示,它们既是统一接口 \tn{ctexset} 的路径,也是相关模块的接口命令名
+% \cls{easybook} 扩展了 \CTeX 宏集 \LaTeX 3风格键值的通用控制命令 \tn{ctexset},接口选项同样可用它设置, 原有的键值列表仍然可用。本文档类目前有九个模块用于实现常规的排版功能,如下表所示,它们既是统一接口 \tn{ctexset} 的路径,也是相关模块的接口命令名
 % \begin{center}
 %   \begin{tabular}{*{5}{c}}
 %     \toprule
-%     \hyperref[subsec:style]{风格} & \hyperref[subsec:hyperlinks]{超链接} & \hyperref[subsec:other font]{其它字体} & \hyperref[subsec:spacing]{行距} & \hyperref[subsec:reference]{参考文献} \\
-%     style & refset & elsefont & spread & bibset \\
+%     \hyperref[subsec:style]{风格} & \hyperref[subsec:other font]{其它字体} & \hyperref[subsec:spacing]{行距} & \hyperref[subsec:hyperlinks]{超链接} & \hyperref[subsec:reference]{参考文献} \\
+%     style & elsefont & spread & refset & bibset \\
 %     \midrule
 %     \hyperref[subsec:theorem of style]{定理样式} & \hyperref[subsec:page margins]{页面尺寸} & \hyperref[subsec:header and footer]{页眉页脚} & \hyperref[subsec:catalog style]{目录样式} & \\
 %     thmset & geoset & hdrset & tocset & \\
@@ -299,7 +299,7 @@
 % \opt{refset} 将超链接选项(包括以上选项)交给 \pkg{hyperref} 处理,除了一些关于 pdf 书签的选项可能会失效,其它由键值选项命令 \tn{hypersetup} 支持的多数选项可用。
 % \changes{v1.10}{2021/01/08}{修复了 \opt{linktopage} 选项关闭时目录中标题编号无超链接的问题。}
 % \changes{v1.24}{2021/04/05}{增加 \pkg{hyperref} 超链接选项完整的支持。}
-% \changes{v1.25d}{2021/05/06}{模块名 \opt{link} 改为 \opt{refset},\opt{link} 作为兼容性保留。}
+% \changes{v1.25f}{2021/05/06}{模块名 \opt{link} 改为 \opt{refset},\opt{link} 作为兼容性保留。}
 % \end{function}
 %
 % \begin{optdesc}
@@ -837,7 +837,7 @@
 %   \tn{ref}\marg{标签}
 %   \tn{labelformat}\marg{计数器}\marg{标签引用格式}
 % \end{syntax}
-% 使用 \tn{ref} 命令引用 \tn{label} 设置的标签,将会自动检测环境并添加相应的前缀,比如图表、章节标题和定理等。\tn{labelformat} 可以设置标签引用格式,第二个参数中\#1代表 \tn{the}\meta{计数器},可以设置引用序号的前缀和后缀。
+% 使用 \tn{ref} 命令引用 \tn{label} 设置的标签,将会检测临近计数器并添加相应的前缀,比如图表、章节标题和定理等。\tn{labelformat} 可以设置标签引用格式,第二个参数中\#1代表 \tn{the}\meta{计数器},可以设置引用序号的前缀和后缀。
 % \changes{v1.24}{2021/04/11}{取消载入 \pkg{cleveref} 宏包来交叉引用。}
 % \end{function}
 %
@@ -920,7 +920,7 @@
 %   \item[ctexbook] 提供中文排版的通用框架。
 %   \item[xcolor] 提供任意颜色的设定与混合,已载入了 \opt{svgnames} 颜色库。
 %   \item[footmisc] 更改脚注排版的方法的集合。
-%   \item[amsmath] 提供\LaTeX 中的数学功能。
+%   \item[amsmath] 提供 \LaTeX 中的数学功能。
 %   \item[thmtools] 用于通常需要的排版定理支持。
 %   \item[marginnote] 增强了边注输出的功能。
 %   \item[setspace] 提供对文档中行间距的支持。
@@ -928,7 +928,7 @@
 %   \item[siunitx] 全面的国际标准单位支持。
 %   \item[ulem] 提供可断行多样式的下划线命令。
 %   \item[geometry] 灵活完整的页面尺寸设置。
-%   \item[pdfpages] 在\LaTeX 中插入 pdf 文档。
+%   \item[pdfpages] 在 \LaTeX 中插入 pdf 文档。
 %   \item[graphicx] 增强了对图形插入的支持。
 %   \item[fancyhdr] 广泛控制页面的页眉和页脚。
 %   \item[titletoc] 设置目录中的标题格式。
@@ -937,7 +937,7 @@
 %   \item[multirow] 创建跨越多行的表格单元格。
 %   \item[booktabs] 为表格提供三线表式的命令。
 %   \item[enumitem] 提供列表环境的布局控制。
-%   \item[listings] 可以在\LaTeX 中排版程序/编程代码。
+%   \item[listings] 可以在 \LaTeX 中排版程序/编程代码。
 %   \item[hyperref] 处理交叉引用命令以及在文档中生成超文本链接。
 %   \item[\ding{75} tcolorbox] 为带有标题线的彩色和带框文本框提供了一个环境。
 %   \item[\ding{75} tasks] 将练习题组织成水平而不是垂直计数的列。
@@ -951,7 +951,7 @@
 %<*class>
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplClass{easybook}{2021/05/07}{1.25d}{beta}
+\ProvidesExplClass{easybook}{2021/05/09}{1.25f}{beta}
 
 \cs_generate_variant:Nn \eb_ctex_define:nn { nx }
 \cs_generate_variant:Nn \int_to_arabic:n { v }
@@ -1125,7 +1125,7 @@
     geometry,marginnote,nccfoots,
     pdfpages,graphicx,
     fancyhdr,titletoc,
-    caption-light,subcaption,
+    caption-light,
     tabularx,multirow,booktabs,
     enumitem,
     listings
@@ -1438,9 +1438,9 @@
       {
         #1/format .tl_set:c = l__eb_toc_#1_format_tl,
         #1/format+ .code:n  =
-          { \tl_put_right:cn {l__eb_toc_#1_format_tl} {##1} },
+          { \tl_put_right:cn { l__eb_toc_#1_format_tl } {##1} },
         #1/format~+ .code:n =
-          { \tl_put_right:cn {l__eb_toc_#1_format_tl} {##1} },
+          { \tl_put_right:cn { l__eb_toc_#1_format_tl } {##1} },
         #1/indent .tl_set:c = l__eb_toc_#1_indent_tl,
         #1/rule .tl_set:c   = l__eb_toc_#1_rule_tl,
         #1/numsep .tl_set:c = eb at toc@#1 at numsep
@@ -1462,7 +1462,7 @@
     list/lolskip .initial:n     = 0.8pc,
     list/belowoffset .dim_set:N = \l__eb_toc_listoffset_dim,
     list/belowoffset .initial:n =
-      {\bool_if:NTF \l__eb_class_book_bool { 0pc } { 0.15pc } },
+      { \bool_if:NTF \l__eb_class_book_bool { 0pc } { 0.15pc } },
 
     belowoffset .dim_set:N  = \l__eb_toc_offset_dim,
     belowoffset .initial:n  =
@@ -1785,7 +1785,7 @@
         \ifbool{@twocolumn}
           {
             \booltrue{@restonecol}
-            \bool_if:NTF \l__eb_multoc_bool {\twocolumn } { \onecolumn }
+            \bool_if:NTF \l__eb_multoc_bool { \twocolumn } { \onecolumn }
           }{
             \boolfalse{@restonecol}
             \bool_if:NT \l__eb_multoc_bool { \twocolumn }
@@ -2345,7 +2345,7 @@
               ]{\IfBooleanF{#1}{\CTEXthesection\hspace{0.5\ccwd}}#5}
           }{
             \group_begin:
-            \keys_set:nn { ctex/section } { format += \centering }
+            \ctex_set:nn { section } { format += \centering }
             \IfValueT{#6}{\ctex_set:nn { section } {#6}}
             \IfBooleanTF{#1}{\section*{#5}}{\section{#5}}
             \group_end:
@@ -2768,11 +2768,8 @@
         lstlistingname      = 代码
       }
     \labelformat{equation}{式(#1)}
-    \labelformat{align}{式(#1)}
-    \labelformat{multline}{式(#1)}
-    \labelformat{gather}{式(#1)}
-    \labelformat{section}{节#1}
-    \labelformat{subsection}{小节#1}
+    \labelformat{section}{节 #1}
+    \labelformat{subsection}{小节 #1}
   }
   {
     \keys_set_known:nn { ctex }
@@ -2782,9 +2779,6 @@
         lstlistingname      = Code
       }
     \labelformat{equation}{Equation~(#1)}
-    \labelformat{align}{Equation~(#1)}
-    \labelformat{multline}{Equation~(#1)}
-    \labelformat{gather}{Equation~(#1)}
     \labelformat{section}{Section~#1}
     \labelformat{subsection}{Subsection~#1}
   }

Modified: trunk/Master/texmf-dist/source/latex/easybook/easybook.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/easybook/easybook.ins	2021-05-09 20:50:14 UTC (rev 59147)
+++ trunk/Master/texmf-dist/source/latex/easybook/easybook.ins	2021-05-09 20:50:32 UTC (rev 59148)
@@ -1,25 +1,25 @@
-%
-% Copyright (C) 2021 by Qu Yi <quee123 at foxmail.com>
-%
-% This work may be distributed and/or modified under the
-% conditions of the CC-BY 4.0 License.
-% The latest version of this license is in
-%   https://creativecommons.org/licenses/by/4.0/legalcode
-\input ctxdocstrip
-\keepsilent
-\askforoverwritefalse
-
-\usedir{tex/latex/easybook}
-
-\preamble
-Copyright (C) 2021 by Qu Yi <quee123 at foxmail.com>
-
-This work may be distributed and/or modified under the
-conditions of the CC-BY 4.0 License.
-The latest version of this license is in
-  https://creativecommons.org/licenses/by/4.0/legalcode
-\endpreamble
-
-\generate{\file{\jobname.cls}{\from{\jobname.dtx}{class}}}
-
-\endbatchfile
+%
+% Copyright (C) 2021 by Qu Yi <quee123 at foxmail.com>
+%
+% This work may be distributed and/or modified under the
+% conditions of the CC-BY 4.0 License.
+% The latest version of this license is in
+%   https://creativecommons.org/licenses/by/4.0/legalcode
+\input ctxdocstrip
+\keepsilent
+\askforoverwritefalse
+
+\usedir{tex/latex/easybook}
+
+\preamble
+Copyright (C) 2021 by Qu Yi <quee123 at foxmail.com>
+
+This work may be distributed and/or modified under the
+conditions of the CC-BY 4.0 License.
+The latest version of this license is in
+  https://creativecommons.org/licenses/by/4.0/legalcode
+\endpreamble
+
+\generate{\file{\jobname.cls}{\from{\jobname.dtx}{class}}}
+
+\endbatchfile
\ No newline at end of file

Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2021-05-09 20:50:14 UTC (rev 59147)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2021-05-09 20:50:32 UTC (rev 59148)
@@ -13,7 +13,7 @@
 %%   https://creativecommons.org/licenses/by/4.0/legalcode
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplClass{easybook}{2021/05/07}{1.25d}{beta}
+\ProvidesExplClass{easybook}{2021/05/09}{1.25f}{beta}
 
 \cs_generate_variant:Nn \eb_ctex_define:nn { nx }
 \cs_generate_variant:Nn \int_to_arabic:n { v }
@@ -187,7 +187,7 @@
     geometry,marginnote,nccfoots,
     pdfpages,graphicx,
     fancyhdr,titletoc,
-    caption-light,subcaption,
+    caption-light,
     tabularx,multirow,booktabs,
     enumitem,
     listings
@@ -500,9 +500,9 @@
       {
         #1/format .tl_set:c = l__eb_toc_#1_format_tl,
         #1/format+ .code:n  =
-          { \tl_put_right:cn {l__eb_toc_#1_format_tl} {##1} },
+          { \tl_put_right:cn { l__eb_toc_#1_format_tl } {##1} },
         #1/format~+ .code:n =
-          { \tl_put_right:cn {l__eb_toc_#1_format_tl} {##1} },
+          { \tl_put_right:cn { l__eb_toc_#1_format_tl } {##1} },
         #1/indent .tl_set:c = l__eb_toc_#1_indent_tl,
         #1/rule .tl_set:c   = l__eb_toc_#1_rule_tl,
         #1/numsep .tl_set:c = eb at toc@#1 at numsep
@@ -524,7 +524,7 @@
     list/lolskip .initial:n     = 0.8pc,
     list/belowoffset .dim_set:N = \l__eb_toc_listoffset_dim,
     list/belowoffset .initial:n =
-      {\bool_if:NTF \l__eb_class_book_bool { 0pc } { 0.15pc } },
+      { \bool_if:NTF \l__eb_class_book_bool { 0pc } { 0.15pc } },
 
     belowoffset .dim_set:N  = \l__eb_toc_offset_dim,
     belowoffset .initial:n  =
@@ -847,7 +847,7 @@
         \ifbool{@twocolumn}
           {
             \booltrue{@restonecol}
-            \bool_if:NTF \l__eb_multoc_bool {\twocolumn } { \onecolumn }
+            \bool_if:NTF \l__eb_multoc_bool { \twocolumn } { \onecolumn }
           }{
             \boolfalse{@restonecol}
             \bool_if:NT \l__eb_multoc_bool { \twocolumn }
@@ -1407,7 +1407,7 @@
               ]{\IfBooleanF{#1}{\CTEXthesection\hspace{0.5\ccwd}}#5}
           }{
             \group_begin:
-            \keys_set:nn { ctex/section } { format += \centering }
+            \ctex_set:nn { section } { format += \centering }
             \IfValueT{#6}{\ctex_set:nn { section } {#6}}
             \IfBooleanTF{#1}{\section*{#5}}{\section{#5}}
             \group_end:
@@ -1830,11 +1830,8 @@
         lstlistingname      = 代码
       }
     \labelformat{equation}{式(#1)}
-    \labelformat{align}{式(#1)}
-    \labelformat{multline}{式(#1)}
-    \labelformat{gather}{式(#1)}
-    \labelformat{section}{节#1}
-    \labelformat{subsection}{小节#1}
+    \labelformat{section}{节 #1}
+    \labelformat{subsection}{小节 #1}
   }
   {
     \keys_set_known:nn { ctex }
@@ -1844,9 +1841,6 @@
         lstlistingname      = Code
       }
     \labelformat{equation}{Equation~(#1)}
-    \labelformat{align}{Equation~(#1)}
-    \labelformat{multline}{Equation~(#1)}
-    \labelformat{gather}{Equation~(#1)}
     \labelformat{section}{Section~#1}
     \labelformat{subsection}{Subsection~#1}
   }



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