From 4fd81a66c82a2ba8787c6ca78bfcc14820e4017c Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Wed, 17 Jan 2024 03:01:02 +0000
Subject: CTAN sync 202401170301

---
 macros/latex/contrib/easybook/easybook.dtx | 57 ++++++++++++++++++++++--------
 1 file changed, 42 insertions(+), 15 deletions(-)

(limited to 'macros/latex/contrib/easybook/easybook.dtx')

diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx
index ef77b1dd23..94cecae2dc 100644
--- a/macros/latex/contrib/easybook/easybook.dtx
+++ b/macros/latex/contrib/easybook/easybook.dtx
@@ -15,7 +15,7 @@
 %<*class>
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2024/01/14}{2024H}
+\ProvidesExplClass{easybook}{2024/01/16}{2024I}
   {Easily typesetting Chinese theses or books}
 
 \bool_set_false:N \l__eb_compile_draft_bool
@@ -158,7 +158,7 @@
     \eb_setsansfont:nn { Arial } { }
     \eb_setmonofont:nn { Courier~New } { }
   }
-\cs_new_protected:Npn \eb_font_load_libertinus_sans:
+\cs_new_protected:Npn \eb@font@load@libertinus@sans
   {
     \eb_setsansfont:nn { LibertinusSans }
       {
@@ -168,7 +168,7 @@
         ItalicFont  = *-Italic
       }
   }
-\cs_new_protected:Npn \eb_font_load_lmmonolt_mono:
+\cs_new_protected:Npn \eb@font@load@lmmonolt@mono
   {
     \eb_setmonofont:nn { lmmonolt10 }
       {
@@ -189,8 +189,8 @@
         ItalicFont      = *-Italic,
         BoldItalicFont  = *-BoldItalic
       }
-    \eb_font_load_libertinus_sans:
-    \eb_font_load_lmmonolt_mono:
+    \eb@font@load@libertinus@sans
+    \eb@font@load@lmmonolt@mono
   }
 \cs_new_protected:Npn \eb@font@load@libertine
   {
@@ -202,8 +202,8 @@
         ItalicFont      = *-Italic,
         BoldItalicFont  = *-BoldItalic
       }
-    \eb_font_load_libertinus_sans:
-    \eb_font_load_lmmonolt_mono:
+    \eb@font@load@libertinus@sans
+    \eb@font@load@lmmonolt@mono
   }
 \cs_new_protected:Npn \eb@font@load@palatino
   {
@@ -215,8 +215,8 @@
         ItalicFont      = *-italic,
         BoldItalicFont  = *-bolditalic
       }
-    \eb_font_load_libertinus_sans:
-    \eb_font_load_lmmonolt_mono:
+    \eb@font@load@libertinus@sans
+    \eb@font@load@lmmonolt@mono
   }
 \cs_new_protected:Npn \eb_put_newtxmath:n #1
   { \PassOptionsToPackage{#1}{newtxmath} }
@@ -302,7 +302,7 @@
 %<*package>
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2024/01/14}{2024H}
+\ProvidesExplPackage{easybase}{2024/01/16}{2024I}
   {Easily typesetting Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1245,7 +1245,6 @@
 \cs_set:Npn \thebisection { \eb_section_counter_prefix:n { bi } }
 \cs_set:Npn \thebisubsection { \thebisection.\@arabic\c@bisubsection }
 \cs_set:Npn \thesection { \eb_section_counter_prefix:n { } }
-\contentsuse{}{tec}
 \tl_new:N \eb@before@addbitoc@hook
 \NewDocumentCommand{\BeforeAddBitoc}{sm}
   {
@@ -1390,8 +1389,13 @@
   }
 \cs_new_protected:Npn \eb_toc_title_level_cmd:n #1
   {
-    \IfBooleanF{#1}
-      {\eb@toc@title@level{\eb@toc@title}{\eb@bitoc@title}}
+    \IfBooleanTF{#1}
+      {\par}
+      {
+        \tl_if_exist:NTF \eb@toc@title
+          { \eb@toc@title@level{\eb@toc@title}{\eb@bitoc@title} }
+          { \par }
+      }
   }
 \cs_new_protected:Npn \eb_toc_float_list_parse:nnnnn #1#2#3#4#5
   {
@@ -1499,7 +1503,7 @@
         \tl_use:c { l__eb_toc_#1_after_tl }
       }
   }
-\cs_new_protected:Npn \RegisterTocName #1
+\cs_new_protected:Npn \eb@toc@format@define #1
   {
     \ctex_define:n
       {
@@ -1511,6 +1515,9 @@
         #1/tocafter .tl_set:c   = l__eb_toc_#1_after_tl,
         #1/tocbelow .tl_set:c   = l__eb_toc_#1_below_tl
       }
+  }
+\cs_new_protected:Npn \eb@toc@format@initial #1
+  {
     \titlecontents{#1}
       [\dim_use:c { l__eb_toc_#1_indent_dim }]
       {\tl_use:c { l__eb_toc_#1_format_tl }}
@@ -1518,8 +1525,20 @@
       {\tl_use:c { l__eb_toc_#1_rule_tl }}
       [\tl_use:c { l__eb_toc_#1_below_tl }]
   }
+\cs_new_protected:Npn \RegisterTocName #1
+  {
+    \eb@toc@format@define{#1}
+    \eb@toc@format@initial{#1}
+  }
 \seq_map_function:NN
 \c__ctex_headings_seq \RegisterTocName
+\seq_remove_all:Nn \c__ctex_headings_seq { table }
+\seq_remove_all:Nn \c__ctex_headings_seq { figure }
+\seq_remove_all:Nn \c__ctex_headings_seq { lstlisting }
+\cs_new_protected:Npn \eb@key@path@meta@define #1
+  { \ctex_define:n { #1 .meta:nn = { ctex/#1 } {##1} } }
+\seq_map_function:NN
+\c__ctex_headings_seq \eb@key@path@meta@define
 \eb_seq_map_inline:nn
   {
     tocformat,tocformat+,tocformat~+,
@@ -1586,6 +1605,14 @@
           }
       }
   }
+\cs_set_eq:NN \eb@ctexsetii \ctex_set:nn
+\cs_new_protected:Npn \SetTocStyle #1#2#3
+  {
+    \tl_set:cn { eb@toc@style@set@#1@#2 }
+      { \eb@ctexsetii{#1}{#3} }
+  }
+\cs_new_protected:Npn \UseTocStyle #1#2#3
+  { \addtocontents{#3}{\@nameuse{eb@toc@style@set@#1@#2}} }
 \ctex_set:n
   {
     part          =
@@ -2321,7 +2348,7 @@
   }
 %</package>
 %<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2024/01/14}{2024H}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/01/16}{2024I}
   {Customization of tcolorbox for easybook}
 
 \cs_set_protected:Npn \addtotcbstyle #1#2
-- 
cgit v1.2.3

