From b7a48c5e229d2c195b6a32bfd73a1036a31f2df3 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Fri, 4 Feb 2022 03:01:19 +0000
Subject: CTAN sync 202202040301

---
 macros/latex/contrib/easybook/easybook.dtx | 33 +++++++++++-------------------
 1 file changed, 12 insertions(+), 21 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 ec17a0f52b..e1040bbc69 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}{2022/02/02}{1.60}
+\ProvidesExplClass{easybook}{2022/02/03}{1.61}
   {Typeset Chinese theses or books}
 
 \bool_set_false:N \l__eb_compile_draft_bool
@@ -305,7 +305,7 @@
 %<*package>
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2022/02/02}{1.60}
+\ProvidesExplPackage{easybase}{2022/02/03}{1.61}
   {Typeset Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -340,16 +340,10 @@
           { } { \ctex_patch_failure:N ##1 }
       }
   }
-\cs_new_protected:Npn \eb_preto_cmd:Nn #1#2
-  {
-    \ctex_preto_cmd:NnnTF #1 { } {#2}
-      { } { \ctex_patch_failure:N #1 }
-  }
-\cs_new_protected:Npn \eb_appto_cmd:Nn #1#2
-  {
-    \ctex_appto_cmd:NnnTF #1 { } {#2}
-      { } { \ctex_patch_failure:N #1 }
-  }
+\cs_new_protected:Npn \eb_preto_cmd:nn #1#2
+  { \AddToHook{cmd/#1/before}{#2} }
+\cs_new_protected:Npn \eb_appto_cmd:nn #1#2
+  { \AddToHook{cmd/#1/after}{#2} }
 \cs_new_protected:Npn \eb_at_begin_environment:nn #1#2
   {
     \eb_seq_map_inline:nn {#1}
@@ -734,7 +728,7 @@
     \geometry{showframe}
   }
 \bool_new:N \l__eb_ps_used_bool
-\eb_appto_cmd:Nn \pagestyle { \bool_set_true:N \l__eb_ps_used_bool }
+\eb_appto_cmd:nn { pagestyle } { \bool_set_true:N \l__eb_ps_used_bool }
 \ctex_at_end_preamble:n
   {
     \bool_if:NF \l__eb_ps_used_bool { \pagestyle{fancy} }
@@ -1477,13 +1471,10 @@
           }
       }
   }
-\cs_if_exist:NT \chapter
+\eb_preto_cmd:nn { @chapter }
   {
-    \eb_appto_cmd:Nn \@chapter
-      {
-        \skip_if_eq:nnF { \eb@toc@lol@skip } { \c_zero_skip }
-          { \addtocontents{lol}{\protect\addvspace{\skip_use:N \eb@toc@lol@skip}} }
-      }
+    \skip_if_eq:nnF { \eb@toc@lol@skip } { \c_zero_skip }
+      { \addtocontents{lol}{\protect\addvspace{\skip_use:N \eb@toc@lol@skip}} }
   }
 
 \ctex_define:nn { style }
@@ -2265,7 +2256,7 @@
 
 \cs_new_protected:Npn \eb_allow_url_break:
   {
-    \eb_appto_cmd:Nn \UrlBreaks
+    \eb_appto_cmd:nn { UrlBreaks }
       {
         \UrlOrds
         \tl_map_function:NN \c__eb_url_break_points_tl \do
@@ -2341,7 +2332,7 @@
   }
 %</package>
 %<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2022/02/02}{1.60}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2022/02/03}{1.61}
   {Customization of tcolorbox for easybook}
 
 \cs_set_protected:Npn \addtotcbstyle #1#2
-- 
cgit v1.2.3

