From 769e7ba80785adf6ccb03041b687fcd0253e9371 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sat, 14 Aug 2021 03:01:53 +0000
Subject: CTAN sync 202108140301

---
 macros/latex/contrib/easybook/easybook.dtx | 44 +++++++++++++++---------------
 1 file changed, 22 insertions(+), 22 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 39acbc59f9..d114859b14 100644
--- a/macros/latex/contrib/easybook/easybook.dtx
+++ b/macros/latex/contrib/easybook/easybook.dtx
@@ -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@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@usepackage@save{##1} }
       }
   }
@@ -2068,16 +2068,16 @@
     numsep .initial:n = 0.5em,
     label .tl_set:N   = \eb@tc@exercise@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@tc@line@skip { 0.5\baselineskip }
-\tcbappstyle*{theorem}
+\newtcbstyle{theorem}
   {
     enhanced~jigsaw,pad~at~break* = 3pt,
     opacityback = 0,
@@ -2411,7 +2411,7 @@
     top = \eb@tc@line@skip,bottom = \eb@tc@line@skip,
     middle = \eb@tc@line@skip
   }
-\tcbappstyle*{outline}
+\newtcbstyle{outline}
   {
     enhanced,nofloat,
     tikznode~boxed~title,
@@ -2424,14 +2424,14 @@
     arc = 3pt,
     left = 2pc,right = 2pc,top = 1.5pc,bottom = 1pc
   }
-\tcbappstyle*{exercise}
+\newtcbstyle{exercise}
   {
     blank,on~line,center,
     sharpish~corners,
     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,15 +2455,15 @@
     middle = \eb@tc@line@skip,bottomtitle = \eb@tc@line@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,
     boxrule = 0.75pt,arc = 1pt,
     opacityback = 0.2
   }
-\tcbappstyle*{ebfbox}
+\newtcbstyle{ebfbox}
   {
     on~line,sharpish~corners,
     top = 2pt,bottom = 2pt,left = 1pt,right = 1pt,
-- 
cgit v1.2.3

