texlive[60235] Master/texmf-dist: easybook (13aug21)

commits+karl at tug.org commits+karl at tug.org
Fri Aug 13 23:21:15 CEST 2021


Revision: 60235
          http://tug.org/svn/texlive?view=revision&revision=60235
Author:   karl
Date:     2021-08-13 23:21:15 +0200 (Fri, 13 Aug 2021)
Log Message:
-----------
easybook (13aug21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/easybook/easybook.pdf
    trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex
    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/doc/latex/easybook/easybook.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex	2021-08-13 21:20:26 UTC (rev 60234)
+++ trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex	2021-08-13 21:21:15 UTC (rev 60235)
@@ -11,8 +11,8 @@
   {
     name      = easybook,
     title     = EASYBOOK 使用手册,
-    version   = v1.28L,
-    date      = 2021/08/11,
+    version   = v1.28N,
+    date      = 2021/08/13,
     authors   = 瞿毅,
     info      = 排版简体中文学位论文和书籍,
     email     = quee123 at foxmail.com,
@@ -48,6 +48,7 @@
   {\IfBooleanF{#1}{\color{cnltxblue}}#3\ifblank{#2}{}{\ttfamily[#2]}}
 \newcommand{\splitmeta}[2][\texttt{,}]
   {
+    \clist_clear:N \l_tmpa_clist
     \clist_map_inline:nn {#2}
       { \clist_put_right:Nn \l_tmpa_clist { \meta{##1} } }
     \clist_use:Nn \l_tmpa_clist {#1}
@@ -447,7 +448,7 @@
   \keyval-{caption}{数值}\Default{1.1}
   图片、表格和代码题注的行距因子。
   \keyval-{footnote}{数值}\Default{1.1}
-  脚注整体内容的行距因子,可以使用 \option{fntext-form} 的代码覆盖每个脚注单独的行距,从而与不同脚注的段落间距不同。
+  脚注内容整体的行距因子,可以使用 \option{fntext-form} 的代码覆盖每个脚注单独的行距,从而与不同脚注的段落间距不同。
   \begin{ctexexam}
   \spread{footnote = 1.3}
   \hdrset{fntext-form = \linespread{1.2}\selectfont}
@@ -563,7 +564,7 @@
   \begin{itemize}
   \item 中英文模式下标题不同,英文标题为可选项,默认为首字母大写的 \meta{环境名}。
   \item 自动定义交叉引用的格式,引用标签前缀为定理标题名称。
-  \item 定理盒子选项 \keyis-{thmbox}{true} 仍然生效,此时 \meta{盒子风格} 用于设置定理盒子风格的名称,它需要 \pkg*{tcolorbox} 的 \cs*{tcbset} 接口命令或 \cs{tcbappstyle} 设定,默认为 \code{tc-theorem}。
+  \item 定理盒子选项 \keyis-{thmbox}{true} 仍然生效,此时 \meta{盒子风格} 为定理盒子风格的名称,它需要由新建盒子风格命令 \cs{newtcbstyle} 定义,默认为 \code{tc-theorem}。
   \item 默认使用 \code{easy-theorem} 定理样式,可在最后一个选项使用 \option*{style} 更改样式。
   \end{itemize}
   \command{declaretheoremstyle}[\oarg{键值列表1}\marg{定理样式名}\oarg{键值列表2}]
@@ -581,9 +582,9 @@
   \tcolorboxenvironment{定理环境名}{tc-theorem}
 \end{ctexexam}
 
-使用 \cs{tcbappstyle} 命令调整开启定理盒子时默认的样式,第一个参数为 \code{theorem},关于命令的介绍在小节 \ref{subsec:box}。
+使用 \cs{addtcbstyle} 命令调整开启定理盒子时默认的样式,第一个参数为 \code{theorem},关于命令的介绍在小节 \ref{subsec:box}。
 \begin{ctexexam}
-  \tcbappstyle{theorem}{colback = GreenYellow}
+  \addtcbstyle{theorem}{colback = GreenYellow}
 \end{ctexexam}
 
 定义一个新的定理样式可用于 \cs{declaretheorem} 的 \option*{style} 选项:
@@ -901,10 +902,10 @@
   \environment{exercise}[\sarg\parg\oarg{键值列表1}\darg{键值列表2}\oarg{键值列表3}]
   习题环境的标题使用 \cs*{tcbox} 行内盒子包装样式,内容则使用 \env{enumerate} 列表环境。它有 5 个可选参数,应当注意用法。当使用星号参数时标题不进行编号,使用 \parg{} 号参数时不使用预置标题,此时 \meta{键值列表1} 除了 \option{label} 选项失效。\par
 
-  \meta{键值列表2} 包括 \pkg*{tcolorbox} 的盒子样式选项,例如 \option*{boxsep} 和 \option*{fontupper} 等,也可以使用下述 \option{tcolorbox} 选项。在这里可以使用 \cs{tcbappstyle} 命令设置标题选项 \meta{键值列表2} 的值,第一个参数为 \code{exercise}。
+  \meta{键值列表2} 包括 \pkg*{tcolorbox} 的盒子样式选项,例如 \option*{boxsep} 和 \option*{fontupper} 等,也可以使用下述 \option{tcolorbox} 选项。在这里可以使用 \cs{addtcbstyle} 命令设置标题选项 \meta{键值列表2} 的值,第一个参数为 \code{exercise}。
   \begin{ctexexam}
   \tcphantomifname{\markright{\UseCounter{tcbcounter}{\quad 习题}}}{}
-  \tcbappstyle{exercise}{boxsep = 5pt}
+  \addtcbstyle{exercise}{boxsep = 5pt}
   \exerprologue{习题前的一段文本}
   \begin{exercise}+[color = LightSkyBlue](after skip = 2pc)[itemsep = 1ex]
     \item 第一题
@@ -944,12 +945,13 @@
 \subsection{盒子}
 \label{subsec:box}
 使用盒子以及小节 \ref{subsec:exercise} 中的 \env{exercise} 环境需要在导言区\textbf{手动载入} \pkg*{tcolorbox} 宏包,它们 \meta{配置选项} 的键值列表同样由 \pkg*{tcolorbox} 提供支持,具体选项可见宏包文档的 Option Keys 一节,可以进行边距、字体及背景颜色等各种个性化设置,一些配置会覆盖预设。
-
 \begin{commands}
-  \command{tcbappstyle}[\sarg\marg{风格名称}\marg{键值列表}]
-  这是一个 \pkg*{tcolorbox} 宏包盒子风格定义命令,带有星号的命令可以\textbf{新建或重置}一个名为 \code{tc-}\meta{风格名称} 的盒子风格,否则是修改\textbf{已存在}的风格。这个命令可以调整以下即将介绍的预置盒子风格,对于预置盒子来说参数 \meta{风格名称} 即为它们对应的环境或命令名。
+  \command{newtcbstyle}[\marg{风格名称}\marg{键值列表}]
+  新建或重置一个名为 \code{tc-}\meta{风格名称} 的 \pkg*{tcolorbox} 宏包盒子风格,可以与 \cs{addtcbstyle} 命令联用。
+  \command{addtcbstyle}[\marg{风格名称}\marg{键值列表}]
+  修改已存在的 \pkg*{tcolorbox} 宏包盒子风格。这个命令可以调整以下即将介绍的预置盒子风格,对于预置盒子来说参数 \meta{风格名称} 即为它们对应的环境或命令名。
   \begin{ctexexam}
-  \tcbappstyle*{mytcb} % 新建一个盒子风格tc-mytcb
+  \newtcbstyle{mytcb} % 新建一个盒子风格tc-mytcb
     {
       colback = Snow,colframe = LimeGreen,coltext = Coral,
       fontupper = \bfseries,arc = 6pt,
@@ -969,7 +971,7 @@
 \subsubsection{摘要盒子}
 \begin{environments}
   \environment{outline}[\oarg{键值列表1}\darg{标题名称}\oarg{键值列表2}]
-  摘要盒子 \env{outline} 可用于章前摘要,它的标题是可选参数,默认标题是摘要。\meta{键值列表2} 是摘要盒子样式选项,可以使用 \cs{tcbappstyle} 命令对它进行全局设置,命令第一个参数为 \code{outline}。
+  摘要盒子 \env{outline} 可用于章前摘要,它的标题是可选参数,默认标题是摘要。\meta{键值列表2} 是摘要盒子样式选项,可以使用 \cs{addtcbstyle} 命令对它进行全局设置,命令第一个参数为 \code{outline}。
 \end{environments}
 
 \begin{commands}
@@ -976,7 +978,7 @@
   \command{setoutlinelist}[\marg{键值列表1}]
   \meta{键值列表1} 与 \pkg*{enumitem} 宏包中列表配置选项相同,可以设置摘要条目的各种距离,要对它进行全局设置可以使用 \cs{setoutlinelist} 命令。
   \begin{ctexexam}
-  \tcbappstyle{outline}{arc = 6pt}
+  \addtcbstyle{outline}{arc = 6pt}
   \begin{outline}[leftmargin = *](摘要标题)
     \item 摘要内容1
     \item 摘要内容2
@@ -987,7 +989,7 @@
 \subsubsection{段落盒子}
 \begin{environments}
   \environment{easybox}[\sarg\oarg{颜色名}\darg{段落标题}\oarg{配置选项}]
-  环境 \env{easybox} 创建一个带有三个可选参数的扁平盒子。使用星号参数时给盒子添加边框,\meta{颜色名} 选项设置背景颜色,\meta{段落标题} 选项可以设置标题,默认无标题。如果 \meta{配置选项} 较长且希望在原有基础上更改为全局固定的样式,可以使用 \cs{tcbappstyle} 命令设置,命令第一个参数为 \code{easybox}。
+  环境 \env{easybox} 创建一个带有三个可选参数的扁平盒子。使用星号参数时给盒子添加边框,\meta{颜色名} 选项设置背景颜色,\meta{段落标题} 选项可以设置标题,默认无标题。如果 \meta{配置选项} 较长且希望在原有基础上更改为全局固定的样式,可以使用 \cs{addtcbstyle} 命令设置,命令第一个参数为 \code{easybox}。
   \begin{ctexexam}
   \begin{easybox}*[DarkCyan](段落标题)
     上半盒子内容

Modified: trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2021-08-13 21:20:26 UTC (rev 60234)
+++ trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2021-08-13 21:21:15 UTC (rev 60235)
@@ -8,7 +8,7 @@
 %<*class>
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/08/11}{1.28L}
+\ProvidesExplClass{easybook}{2021/08/13}{1.28N}
   {Typeset Chinese theses or books}
 
 \bool_set_false:N \l__eb_compile_draft_bool
@@ -292,7 +292,7 @@
 %<*package>
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2021/08/11}{1.28L}
+\ProvidesExplPackage{easybase}{2021/08/13}{1.28N}
   {Typeset Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_add:Nn { NV,Nv }
@@ -363,13 +363,13 @@
       }
       { \IfFileExists{#1.sty}{\RequirePackage{#1}}{} }
   }
-\cs_new_protected:Npn \eb_if_package_reload:nF #1#2
+\cs_new_protected:Npn \eb_if_package_loaded:nF #1#2
   {
     \@ifpackageloaded{#1}
-      {\msg_warning:nnn { easybase } { package-reload } {#1}}
+      {\msg_warning:nnn { easybase } { package-loaded } {#1}}
       {#2\disable at package@load{#1}{}}
   }
-\msg_new:nnn { easybase } { package-reload }
+\msg_new:nnn { easybase } { package-loaded }
   {
     The~macro~package~#1~has~been~reloaded. \\
     Please~pass~the~arguments~by \\
@@ -381,7 +381,7 @@
     \PassOptionsToPackage{#1}{#2}
     \eb_clist_map_inline:nn {#2}
       {
-        \eb_if_package_reload:nF {##1}
+        \eb_if_package_loaded:nF {##1}
           { \eb at usepackage@save{##1} }
       }
   }
@@ -2068,16 +2068,16 @@
     numsep .initial:n = 0.5em,
     label .tl_set:N   = \eb at tc@exercise at label,
     enumitem .code:n  = \setexerlist{#1},
-    tcolorbox .code:n = \tcbappstyle{exercise}{#1}
+    tcolorbox .code:n = \addtcbstyle{exercise}{#1}
   }
 \cs_new_protected:Npn \setexercise #1
   { \keys_set:nn { eb/exercise } {#1} }
-\NewDocumentCommand{\tcbappstyle}{smm}
-  {
-    \IfBooleanTF{#1}
-      {\tcbset{tc-#2/.style = {#3}}}
-      {\tcbset{tc-#2/.append~style = {#3}}}
-  }
+\cs_new_protected:Npn \addtcbstyle #1#2
+  { \tcbset{tc-#1/.append~style = {#2}} }
+\cs_new_protected:Npn \newtcbstyle #1#2
+  { \tcbset{tc-#1/.style = {#2}} }
+\cs_new_protected:Npn \tcbappstyle
+  { \@ifstar{\newtcbstyle}{\addtcbstyle} }
 \ctex_at_end_package:nn { tcolorbox }
   {
     \eb_package_date_check:nn { tcolorbox } { 2020/10/09 }
@@ -2396,11 +2396,11 @@
   }
 %</package>
 %<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2021/08/11}{1.28L}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2021/08/13}{1.28N}
   {Customization of tcolorbox for easybook}
 
 \tl_gset:Nn \eb at tc@line at skip { 0.5\baselineskip }
-\tcbappstyle*{theorem}
+\newtcbstyle{theorem}
   {
     enhanced~jigsaw,pad~at~break* = 3pt,
     opacityback = 0,
@@ -2411,7 +2411,7 @@
     top = \eb at tc@line at skip,bottom = \eb at tc@line at skip,
     middle = \eb at tc@line at skip
   }
-\tcbappstyle*{outline}
+\newtcbstyle{outline}
   {
     enhanced,nofloat,
     tikznode~boxed~title,
@@ -2424,7 +2424,7 @@
     arc = 3pt,
     left = 2pc,right = 2pc,top = 1.5pc,bottom = 1pc
   }
-\tcbappstyle*{exercise}
+\newtcbstyle{exercise}
   {
     blank,on~line,center,
     sharpish~corners,
@@ -2431,7 +2431,7 @@
     fontupper         = \Large\sffamily,
     beforeafter~skip  = 3.75ex plus .2ex minus .1ex
   }
-\tcbappstyle*{easybox}
+\newtcbstyle{easybox}
   {
     enhanced~jigsaw,pad~at~break* = 3pt,
     center~title,
@@ -2445,7 +2445,7 @@
     titlerule = 0pt,
     beforeafter~skip = 1.75ex plus .2ex minus .1ex
   }
-\tcbappstyle*{ebparbox}
+\newtcbstyle{ebparbox}
   {
     frame~hidden,
     enhanced~jigsaw,pad~at~break* = 3pt,
@@ -2455,8 +2455,8 @@
     middle = \eb at tc@line at skip,bottomtitle = \eb at tc@line at skip,
     beforeafter~skip = 1.75ex plus .2ex minus .1ex
   }
-\tcbappstyle*{ebemph}{on~line,blank}
-\tcbappstyle*{eblink}
+\newtcbstyle{ebemph}{on~line,blank}
+\newtcbstyle{eblink}
   {
     standard~jigsaw,on~line,
     top = 1.5pt,bottom = 1.5pt,left = 1.5pt,right = 1.5pt,
@@ -2463,7 +2463,7 @@
     boxrule = 0.75pt,arc = 1pt,
     opacityback = 0.2
   }
-\tcbappstyle*{ebfbox}
+\newtcbstyle{ebfbox}
   {
     on~line,sharpish~corners,
     top = 2pt,bottom = 2pt,left = 1pt,right = 1pt,

Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty	2021-08-13 21:20:26 UTC (rev 60234)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty	2021-08-13 21:21:15 UTC (rev 60235)
@@ -13,7 +13,7 @@
 %%   https://creativecommons.org/licenses/by/4.0/legalcode
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2021/08/11}{1.28L}
+\ProvidesExplPackage{easybase}{2021/08/13}{1.28N}
   {Typeset Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_add:Nn { NV,Nv }
@@ -84,13 +84,13 @@
       }
       { \IfFileExists{#1.sty}{\RequirePackage{#1}}{} }
   }
-\cs_new_protected:Npn \eb_if_package_reload:nF #1#2
+\cs_new_protected:Npn \eb_if_package_loaded:nF #1#2
   {
     \@ifpackageloaded{#1}
-      {\msg_warning:nnn { easybase } { package-reload } {#1}}
+      {\msg_warning:nnn { easybase } { package-loaded } {#1}}
       {#2\disable at package@load{#1}{}}
   }
-\msg_new:nnn { easybase } { package-reload }
+\msg_new:nnn { easybase } { package-loaded }
   {
     The~macro~package~#1~has~been~reloaded. \\
     Please~pass~the~arguments~by \\
@@ -102,7 +102,7 @@
     \PassOptionsToPackage{#1}{#2}
     \eb_clist_map_inline:nn {#2}
       {
-        \eb_if_package_reload:nF {##1}
+        \eb_if_package_loaded:nF {##1}
           { \eb at usepackage@save{##1} }
       }
   }
@@ -1789,16 +1789,16 @@
     numsep .initial:n = 0.5em,
     label .tl_set:N   = \eb at tc@exercise at label,
     enumitem .code:n  = \setexerlist{#1},
-    tcolorbox .code:n = \tcbappstyle{exercise}{#1}
+    tcolorbox .code:n = \addtcbstyle{exercise}{#1}
   }
 \cs_new_protected:Npn \setexercise #1
   { \keys_set:nn { eb/exercise } {#1} }
-\NewDocumentCommand{\tcbappstyle}{smm}
-  {
-    \IfBooleanTF{#1}
-      {\tcbset{tc-#2/.style = {#3}}}
-      {\tcbset{tc-#2/.append~style = {#3}}}
-  }
+\cs_new_protected:Npn \addtcbstyle #1#2
+  { \tcbset{tc-#1/.append~style = {#2}} }
+\cs_new_protected:Npn \newtcbstyle #1#2
+  { \tcbset{tc-#1/.style = {#2}} }
+\cs_new_protected:Npn \tcbappstyle
+  { \@ifstar{\newtcbstyle}{\addtcbstyle} }
 \ctex_at_end_package:nn { tcolorbox }
   {
     \eb_package_date_check:nn { tcolorbox } { 2020/10/09 }

Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2021-08-13 21:20:26 UTC (rev 60234)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2021-08-13 21:21:15 UTC (rev 60235)
@@ -13,7 +13,7 @@
 %%   https://creativecommons.org/licenses/by/4.0/legalcode
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/08/11}{1.28L}
+\ProvidesExplClass{easybook}{2021/08/13}{1.28N}
   {Typeset Chinese theses or books}
 
 \bool_set_false:N \l__eb_compile_draft_bool

Modified: trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg	2021-08-13 21:20:26 UTC (rev 60234)
+++ trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg	2021-08-13 21:21:15 UTC (rev 60235)
@@ -11,11 +11,11 @@
 %% 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/08/11}{1.28L}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2021/08/13}{1.28N}
   {Customization of tcolorbox for easybook}
 
 \tl_gset:Nn \eb at tc@line at skip { 0.5\baselineskip }
-\tcbappstyle*{theorem}
+\newtcbstyle{theorem}
   {
     enhanced~jigsaw,pad~at~break* = 3pt,
     opacityback = 0,
@@ -26,7 +26,7 @@
     top = \eb at tc@line at skip,bottom = \eb at tc@line at skip,
     middle = \eb at tc@line at skip
   }
-\tcbappstyle*{outline}
+\newtcbstyle{outline}
   {
     enhanced,nofloat,
     tikznode~boxed~title,
@@ -39,7 +39,7 @@
     arc = 3pt,
     left = 2pc,right = 2pc,top = 1.5pc,bottom = 1pc
   }
-\tcbappstyle*{exercise}
+\newtcbstyle{exercise}
   {
     blank,on~line,center,
     sharpish~corners,
@@ -46,7 +46,7 @@
     fontupper         = \Large\sffamily,
     beforeafter~skip  = 3.75ex plus .2ex minus .1ex
   }
-\tcbappstyle*{easybox}
+\newtcbstyle{easybox}
   {
     enhanced~jigsaw,pad~at~break* = 3pt,
     center~title,
@@ -60,7 +60,7 @@
     titlerule = 0pt,
     beforeafter~skip = 1.75ex plus .2ex minus .1ex
   }
-\tcbappstyle*{ebparbox}
+\newtcbstyle{ebparbox}
   {
     frame~hidden,
     enhanced~jigsaw,pad~at~break* = 3pt,
@@ -70,8 +70,8 @@
     middle = \eb at tc@line at skip,bottomtitle = \eb at tc@line at skip,
     beforeafter~skip = 1.75ex plus .2ex minus .1ex
   }
-\tcbappstyle*{ebemph}{on~line,blank}
-\tcbappstyle*{eblink}
+\newtcbstyle{ebemph}{on~line,blank}
+\newtcbstyle{eblink}
   {
     standard~jigsaw,on~line,
     top = 1.5pt,bottom = 1.5pt,left = 1.5pt,right = 1.5pt,
@@ -78,7 +78,7 @@
     boxrule = 0.75pt,arc = 1pt,
     opacityback = 0.2
   }
-\tcbappstyle*{ebfbox}
+\newtcbstyle{ebfbox}
   {
     on~line,sharpish~corners,
     top = 2pt,bottom = 2pt,left = 1pt,right = 1pt,



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