texlive[74036] Master/texmf-dist: easybook (16feb25)

commits+karl at tug.org commits+karl at tug.org
Sun Feb 16 22:02:57 CET 2025


Revision: 74036
          https://tug.org/svn/texlive?view=revision&revision=74036
Author:   karl
Date:     2025-02-16 22:02:56 +0100 (Sun, 16 Feb 2025)
Log Message:
-----------
easybook (16feb25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/easybook/README.md
    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/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/easybook/README.md	2025-02-16 21:02:41 UTC (rev 74035)
+++ trunk/Master/texmf-dist/doc/latex/easybook/README.md	2025-02-16 21:02:56 UTC (rev 74036)
@@ -1,5 +1,5 @@
 # The `easybook` document class
-Easily typesetting Chinese theses or books (v2025p)
+Easily typesetting Chinese theses or books (v2025q)
 
 ## Abstract
 `easybook` is a pure academic template created based on the `ctexbook` book document class. It also has the functions of `book` and `article` document class. Combined with the general framework design of the theses of many universities in China, providing multiple commands and interfaces allows users to easily customize the theses templates. Its basic macro package `easybase` can also be used with `ctex` and standard document classes.

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	2025-02-16 21:02:41 UTC (rev 74035)
+++ trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex	2025-02-16 21:02:56 UTC (rev 74036)
@@ -23,8 +23,8 @@
     name            = easybook,
     color-scheme    = blue,
     title           = EASYBOOK使用手册,
-    version         = v2025p,
-    date            = 2025/02/14,
+    version         = v2025q,
+    date            = 2025/02/16,
     authors         = 瞿毅,
     info            = 简便地排版中文学位论文或书籍,
     email           = toquyi at 163.com,
@@ -1316,6 +1316,11 @@
   \begin{ctexexam}
   \hangfrom[\hangwd + 1em]{悬挂标签\hspace{0.5em}}[1]
   \hangfrom*[3em]{}
+  \ctexset[section] % 与\ctexset{section/hang = true}等效
+    {
+      hang = false,
+      nameformat+ = \hangfrom[\hangwd + 0.5em]
+    }
   \end{ctexexam}
   \environment{hangparas}[\marg{缩进长度}\marg{缩进开始行数}]
   悬挂缩进环境 \env{hangparas} 有两个必选参数,使其中的段落均保持悬挂缩进。每个段落的缩进将以 \meta{缩进长度} 从 \meta{缩进开始行数} 开始。

Modified: trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2025-02-16 21:02:41 UTC (rev 74035)
+++ trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2025-02-16 21:02:56 UTC (rev 74036)
@@ -14,7 +14,7 @@
 % This work has the LPPL maintenance status `maintained'.
 %<class|package>\NeedsTeXFormat{LaTeX2e}[2021/11/15]
 %<*class>
-\ProvidesExplClass{easybook}{2025/02/14}{2025p}
+\ProvidesExplClass{easybook}{2025/02/16}{2025q}
   {Easily typesetting Chinese theses or books}
 
 \bool_new:N \l__eb_compile_draft_bool
@@ -308,7 +308,7 @@
 %</class>
 %<*package>
 \RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2025/02/14}{2025p}
+\ProvidesExplPackage{easybase}{2025/02/16}{2025q}
   {Easily typesetting Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1515,6 +1515,7 @@
 \cs_new:Npn \ebifbitoc { \ifbool{@bitoc} }
 \seq_new:N \l__eb_level_tmpa_seq
 \tl_new:N \l__eb_level_tmpa_tl
+\tl_gset:Nn \g__eb_bilist_permute_value_tl { new }
 \cs_generate_variant:Nn \regex_extract_all:nnN { no }
 \cs_generate_variant:Nn \keys_define:nn { nx }
 \cs_generate_variant:Nn \ctex_set:nn { ox }
@@ -1583,11 +1584,14 @@
       {
         \str_if_eq:nnTF {#1} { mix }
           {
-            \tl_gset:Nn \g__eb_bilist_permute_value_tl {#1}
-            \AddToHook{cmd/CTEX at addtocline/before}[bitoc]
-              {\addtocontents{toc}{\boolfalse{@bitoc}}}
-            \AddToHook{cmd/CTEX at addbitocline/before}[bitoc]
-              {\addtocontents{toc}{\booltrue{@bitoc}}}
+            \tl_if_eq:NnF \g__eb_bilist_permute_value_tl { mix }
+              {
+                \tl_gset:Nn \g__eb_bilist_permute_value_tl {#1}
+                \AddToHook{cmd/CTEX at addtocline/before}[bitoc]
+                  {\addtocontents{toc}{\boolfalse{@bitoc}}}
+                \AddToHook{cmd/CTEX at addbitocline/before}[bitoc]
+                  {\addtocontents{toc}{\booltrue{@bitoc}}}
+              }
           }
           {
             \tl_if_eq:NnT \g__eb_bilist_permute_value_tl { mix }
@@ -2338,8 +2342,8 @@
 \dim_new:N \hangwd
 \cs_set_protected:Npn \hangpara #1#2
   {
-    \dim_set:Nn \hangindent {#1}
-    \int_set:Nn \hangafter {#2}
+    \dim_gset:Nn \hangindent {#1}
+    \int_gset:Nn \hangafter {#2}
     \noindent\ignorespaces
   }
 \NewDocumentCommand{\hangfrom}{sO{\hangwd}mO{1}}
@@ -3042,7 +3046,7 @@
   }
 %</package>
 %<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2025/02/14}{2025p}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2025/02/16}{2025q}
   {Customization of tcolorbox for easybook}
 
 \cs_set_protected:Npn \addtotcbstyle #1#2

Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty	2025-02-16 21:02:41 UTC (rev 74035)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty	2025-02-16 21:02:56 UTC (rev 74036)
@@ -20,7 +20,7 @@
 %% This work has the LPPL maintenance status `maintained'.
 \NeedsTeXFormat{LaTeX2e}[2021/11/15]
 \RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2025/02/14}{2025p}
+\ProvidesExplPackage{easybase}{2025/02/16}{2025q}
   {Easily typesetting Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1227,6 +1227,7 @@
 \cs_new:Npn \ebifbitoc { \ifbool{@bitoc} }
 \seq_new:N \l__eb_level_tmpa_seq
 \tl_new:N \l__eb_level_tmpa_tl
+\tl_gset:Nn \g__eb_bilist_permute_value_tl { new }
 \cs_generate_variant:Nn \regex_extract_all:nnN { no }
 \cs_generate_variant:Nn \keys_define:nn { nx }
 \cs_generate_variant:Nn \ctex_set:nn { ox }
@@ -1295,11 +1296,14 @@
       {
         \str_if_eq:nnTF {#1} { mix }
           {
-            \tl_gset:Nn \g__eb_bilist_permute_value_tl {#1}
-            \AddToHook{cmd/CTEX at addtocline/before}[bitoc]
-              {\addtocontents{toc}{\boolfalse{@bitoc}}}
-            \AddToHook{cmd/CTEX at addbitocline/before}[bitoc]
-              {\addtocontents{toc}{\booltrue{@bitoc}}}
+            \tl_if_eq:NnF \g__eb_bilist_permute_value_tl { mix }
+              {
+                \tl_gset:Nn \g__eb_bilist_permute_value_tl {#1}
+                \AddToHook{cmd/CTEX at addtocline/before}[bitoc]
+                  {\addtocontents{toc}{\boolfalse{@bitoc}}}
+                \AddToHook{cmd/CTEX at addbitocline/before}[bitoc]
+                  {\addtocontents{toc}{\booltrue{@bitoc}}}
+              }
           }
           {
             \tl_if_eq:NnT \g__eb_bilist_permute_value_tl { mix }
@@ -2050,8 +2054,8 @@
 \dim_new:N \hangwd
 \cs_set_protected:Npn \hangpara #1#2
   {
-    \dim_set:Nn \hangindent {#1}
-    \int_set:Nn \hangafter {#2}
+    \dim_gset:Nn \hangindent {#1}
+    \int_gset:Nn \hangafter {#2}
     \noindent\ignorespaces
   }
 \NewDocumentCommand{\hangfrom}{sO{\hangwd}mO{1}}

Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2025-02-16 21:02:41 UTC (rev 74035)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2025-02-16 21:02:56 UTC (rev 74036)
@@ -19,7 +19,7 @@
 %% 
 %% This work has the LPPL maintenance status `maintained'.
 \NeedsTeXFormat{LaTeX2e}[2021/11/15]
-\ProvidesExplClass{easybook}{2025/02/14}{2025p}
+\ProvidesExplClass{easybook}{2025/02/16}{2025q}
   {Easily typesetting Chinese theses or books}
 
 \bool_new: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	2025-02-16 21:02:41 UTC (rev 74035)
+++ trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg	2025-02-16 21:02:56 UTC (rev 74036)
@@ -18,7 +18,7 @@
 %% LaTeX version 2005/12/01 or later.
 %% 
 %% This work has the LPPL maintenance status `maintained'.
-\ProvidesExplFile{eb-tcolorbox.cfg}{2025/02/14}{2025p}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2025/02/16}{2025q}
   {Customization of tcolorbox for easybook}
 
 \cs_set_protected:Npn \addtotcbstyle #1#2



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