texlive[71615] Master/texmf-dist: easybook (24jun24)

commits+karl at tug.org commits+karl at tug.org
Mon Jun 24 21:07:54 CEST 2024


Revision: 71615
          https://tug.org/svn/texlive?view=revision&revision=71615
Author:   karl
Date:     2024-06-24 21:07:54 +0200 (Mon, 24 Jun 2024)
Log Message:
-----------
easybook (24jun24)

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	2024-06-24 10:00:58 UTC (rev 71614)
+++ trunk/Master/texmf-dist/doc/latex/easybook/README.md	2024-06-24 19:07:54 UTC (rev 71615)
@@ -1,5 +1,5 @@
 # The `easybook` document class
-Easily typesetting Chinese theses or books (v2024ci)
+Easily typesetting Chinese theses or books (v2024cm)
 
 ## 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	2024-06-24 10:00:58 UTC (rev 71614)
+++ trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex	2024-06-24 19:07:54 UTC (rev 71615)
@@ -23,8 +23,8 @@
     name            = easybook,
     color-scheme    = blue,
     title           = EASYBOOK使用手册,
-    version         = v2024ci,
-    date            = 2024/06/22,
+    version         = v2024cm,
+    date            = 2024/06/24,
     authors         = 瞿毅,
     info            = 简便地排版中文学位论文或书籍,
     email           = toquyi at 163.com,

Modified: trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2024-06-24 10:00:58 UTC (rev 71614)
+++ trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2024-06-24 19:07:54 UTC (rev 71615)
@@ -14,7 +14,7 @@
 % This work has the LPPL maintenance status `maintained'.
 %<class|package>\NeedsTeXFormat{LaTeX2e}[2021/11/15]
 %<*class>
-\ProvidesExplClass{easybook}{2024/06/22}{2024ci}
+\ProvidesExplClass{easybook}{2024/06/24}{2024cm}
   {Easily typesetting Chinese theses or books}
 
 \bool_new:N \l__eb_compile_draft_bool
@@ -301,7 +301,7 @@
 %</class>
 %<*package>
 \RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2024/06/22}{2024ci}
+\ProvidesExplPackage{easybase}{2024/06/24}{2024cm}
   {Easily typesetting Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -383,7 +383,7 @@
       }
   }
 \providecommand{\NewHookWithArguments}[2]{}
-\ProvideDocumentCommand{\AddToHookWithArguments}{mom}{}
+\ProvideDocumentCommand{\AddToHookWithArguments}{mo+m}{}
 
 \bool_set_true:N \l__eb_class_mode_book_bool
 \bool_set_false:N \l__eb_compile_draft_bool
@@ -457,7 +457,7 @@
     \ctex_define:n { #1 .meta:nn = { ctex/#1 } {##1} }
     \cs_new_protected:cpn { eb#1set } ##1 { \ctex_set:nn {#1} {##1} }
   }
-\RenewDocumentCommand{\ctexset}{om}
+\RenewDocumentCommand{\ctexset}{o+m}
   {
     \IfValueTF{#1}
       {\ctex_set:nn {#1} {#2}}
@@ -1541,7 +1541,7 @@
   }
 \cs_new_protected:Npn \DeclareFloatList #1#2
   {
-    \exp_args:Nc \DeclareDocumentCommand { listof#1s }{st+o}
+    \exp_args:Nc \DeclareDocumentCommand { listof#1s }{st++o}
       {\eb_toc_list_struct_parse:nnnnn {##1} {##2} {##3} {#1} {#2}}
     \ctex_define:n
       {
@@ -1571,7 +1571,7 @@
     bicontentsname .tl_set:N  = \bicontentsname,
     bicontentsname .initial:n = Contents
   }
-\RenewDocumentCommand{\tableofcontents}{st+oD(){}}
+\RenewDocumentCommand{\tableofcontents}{st++o+D(){}}
   {
     \group_begin:
     \tl_set_eq:NN \eb at toc@title \contentsname
@@ -1795,10 +1795,19 @@
   }
 \cs_set_protected:Npn \AllotPartialExt #1#2
   {
-    \tl_set:cn { ttl at partial#1 } {#2}
-    \AddToHookWithArguments{cmd/ttl at writepartial/before}
-      {\ttl at topartial{#1}{##1}{##2}}
+    \tl_if_exist:cTF { ttl at partial#1 }
+      { \msg_warning:nnnn { easybase } { repeated-ptoc } {#1} {#2} }
+      {
+        \tl_set:cn { ttl at partial#1 } {#2}
+        \AddToHookWithArguments{cmd/ttl at writepartial/before}[ttl/#1]
+          {\ttl at topartial{#1}{##1}{##2}}
+      }
   }
+\msg_new:nnn { easybase } { repeated-ptoc }
+  {
+    Local~directory~file~'#2'~of~directory~type~'#1'~is \\
+    repeatedly~allocated.
+  }
 \AllotPartialExt{lol}{pll}
 
 \cs_new_protected:Npn \RegisterTitleIfname #1
@@ -1823,16 +1832,15 @@
   }
 \RegisterTitleIfname{toc}
 
-\cs_set_eq:NN \eb at ctexsetii \ctex_set:nn
 \cs_new_protected:Npn \SetTocStyle #1#2#3
   {
     \cs_set_protected:cpn { eb at toc@style at set@#1@#2 }
-      { \eb at ctexsetii{#1}{#3} }
+      { \ctex_set:nn {#1} {#3} }
   }
 \cs_new_protected:Npn \UseTocStyle #1#2#3
   {
     \cs_if_exist:cTF { eb at toc@style at set@#1@#2 }
-      { \addtocontents{#3}{\@nameuse{eb at toc@style at set@#1@#2}} }
+      { \addtocontents{#3}{\string\csuse{eb at toc@style at set@#1@#2}} }
       { \msg_warning:nnnn { easybase } { undefined-toc-style } {#2} {#1} }
   }
 \msg_new:nnn { easybase } { undefined-toc-style }
@@ -2209,9 +2217,9 @@
     \RequirePackage{amsthm,thmtools}
     \cs_set_eq:NN \eb at declaretheoremstyle@save \declaretheoremstyle
     \cs_set_eq:NN \eb at declaretheorem@save \declaretheorem
-    \RenewDocumentCommand{\declaretheoremstyle}{O{}mO{}}
+    \RenewDocumentCommand{\declaretheoremstyle}{+O{}m+O{}}
       {\eb at declaretheoremstyle@save[#1,#3]{#2}}
-    \RenewDocumentCommand{\declaretheorem}{O{}mO{}}
+    \RenewDocumentCommand{\declaretheorem}{+O{}m+O{}}
       {
         \eb at declaretheorem@save[style = default,#1,#3]{#2}
         \settheoremtocline{#2}
@@ -2625,7 +2633,7 @@
   }
 %</package>
 %<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2024/06/22}{2024ci}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/06/24}{2024cm}
   {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	2024-06-24 10:00:58 UTC (rev 71614)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty	2024-06-24 19:07:54 UTC (rev 71615)
@@ -20,7 +20,7 @@
 %% This work has the LPPL maintenance status `maintained'.
 \NeedsTeXFormat{LaTeX2e}[2021/11/15]
 \RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2024/06/22}{2024ci}
+\ProvidesExplPackage{easybase}{2024/06/24}{2024cm}
   {Easily typesetting Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -102,7 +102,7 @@
       }
   }
 \providecommand{\NewHookWithArguments}[2]{}
-\ProvideDocumentCommand{\AddToHookWithArguments}{mom}{}
+\ProvideDocumentCommand{\AddToHookWithArguments}{mo+m}{}
 
 \bool_set_true:N \l__eb_class_mode_book_bool
 \bool_set_false:N \l__eb_compile_draft_bool
@@ -176,7 +176,7 @@
     \ctex_define:n { #1 .meta:nn = { ctex/#1 } {##1} }
     \cs_new_protected:cpn { eb#1set } ##1 { \ctex_set:nn {#1} {##1} }
   }
-\RenewDocumentCommand{\ctexset}{om}
+\RenewDocumentCommand{\ctexset}{o+m}
   {
     \IfValueTF{#1}
       {\ctex_set:nn {#1} {#2}}
@@ -1260,7 +1260,7 @@
   }
 \cs_new_protected:Npn \DeclareFloatList #1#2
   {
-    \exp_args:Nc \DeclareDocumentCommand { listof#1s }{st+o}
+    \exp_args:Nc \DeclareDocumentCommand { listof#1s }{st++o}
       {\eb_toc_list_struct_parse:nnnnn {##1} {##2} {##3} {#1} {#2}}
     \ctex_define:n
       {
@@ -1290,7 +1290,7 @@
     bicontentsname .tl_set:N  = \bicontentsname,
     bicontentsname .initial:n = Contents
   }
-\RenewDocumentCommand{\tableofcontents}{st+oD(){}}
+\RenewDocumentCommand{\tableofcontents}{st++o+D(){}}
   {
     \group_begin:
     \tl_set_eq:NN \eb at toc@title \contentsname
@@ -1514,10 +1514,19 @@
   }
 \cs_set_protected:Npn \AllotPartialExt #1#2
   {
-    \tl_set:cn { ttl at partial#1 } {#2}
-    \AddToHookWithArguments{cmd/ttl at writepartial/before}
-      {\ttl at topartial{#1}{##1}{##2}}
+    \tl_if_exist:cTF { ttl at partial#1 }
+      { \msg_warning:nnnn { easybase } { repeated-ptoc } {#1} {#2} }
+      {
+        \tl_set:cn { ttl at partial#1 } {#2}
+        \AddToHookWithArguments{cmd/ttl at writepartial/before}[ttl/#1]
+          {\ttl at topartial{#1}{##1}{##2}}
+      }
   }
+\msg_new:nnn { easybase } { repeated-ptoc }
+  {
+    Local~directory~file~'#2'~of~directory~type~'#1'~is \\
+    repeatedly~allocated.
+  }
 \AllotPartialExt{lol}{pll}
 
 \cs_new_protected:Npn \RegisterTitleIfname #1
@@ -1542,16 +1551,15 @@
   }
 \RegisterTitleIfname{toc}
 
-\cs_set_eq:NN \eb at ctexsetii \ctex_set:nn
 \cs_new_protected:Npn \SetTocStyle #1#2#3
   {
     \cs_set_protected:cpn { eb at toc@style at set@#1@#2 }
-      { \eb at ctexsetii{#1}{#3} }
+      { \ctex_set:nn {#1} {#3} }
   }
 \cs_new_protected:Npn \UseTocStyle #1#2#3
   {
     \cs_if_exist:cTF { eb at toc@style at set@#1@#2 }
-      { \addtocontents{#3}{\@nameuse{eb at toc@style at set@#1@#2}} }
+      { \addtocontents{#3}{\string\csuse{eb at toc@style at set@#1@#2}} }
       { \msg_warning:nnnn { easybase } { undefined-toc-style } {#2} {#1} }
   }
 \msg_new:nnn { easybase } { undefined-toc-style }
@@ -1928,9 +1936,9 @@
     \RequirePackage{amsthm,thmtools}
     \cs_set_eq:NN \eb at declaretheoremstyle@save \declaretheoremstyle
     \cs_set_eq:NN \eb at declaretheorem@save \declaretheorem
-    \RenewDocumentCommand{\declaretheoremstyle}{O{}mO{}}
+    \RenewDocumentCommand{\declaretheoremstyle}{+O{}m+O{}}
       {\eb at declaretheoremstyle@save[#1,#3]{#2}}
-    \RenewDocumentCommand{\declaretheorem}{O{}mO{}}
+    \RenewDocumentCommand{\declaretheorem}{+O{}m+O{}}
       {
         \eb at declaretheorem@save[style = default,#1,#3]{#2}
         \settheoremtocline{#2}

Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2024-06-24 10:00:58 UTC (rev 71614)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2024-06-24 19:07:54 UTC (rev 71615)
@@ -19,7 +19,7 @@
 %% 
 %% This work has the LPPL maintenance status `maintained'.
 \NeedsTeXFormat{LaTeX2e}[2021/11/15]
-\ProvidesExplClass{easybook}{2024/06/22}{2024ci}
+\ProvidesExplClass{easybook}{2024/06/24}{2024cm}
   {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	2024-06-24 10:00:58 UTC (rev 71614)
+++ trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg	2024-06-24 19:07:54 UTC (rev 71615)
@@ -18,7 +18,7 @@
 %% LaTeX version 2005/12/01 or later.
 %% 
 %% This work has the LPPL maintenance status `maintained'.
-\ProvidesExplFile{eb-tcolorbox.cfg}{2024/06/22}{2024ci}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/06/24}{2024cm}
   {Customization of tcolorbox for easybook}
 
 \cs_set_protected:Npn \addtotcbstyle #1#2



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