From 954d393d844eacce4354b6174613f467bcd7a257 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sun, 14 Mar 2021 03:01:35 +0000
Subject: CTAN sync 202103140301

---
 macros/latex/contrib/easybook/easybook.cls | 45 +++++++++++++++---------------
 1 file changed, 23 insertions(+), 22 deletions(-)

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

diff --git a/macros/latex/contrib/easybook/easybook.cls b/macros/latex/contrib/easybook/easybook.cls
index f639eeb570..a1a78fa847 100644
--- a/macros/latex/contrib/easybook/easybook.cls
+++ b/macros/latex/contrib/easybook/easybook.cls
@@ -9,7 +9,7 @@
 %%   https://creativecommons.org/licenses/by/4.0/legalcode
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/03/12}{1.23o}{}
+\ProvidesExplClass{easybook}{2021/03/13}{1.23p}{}
 
 \cs_generate_variant:Nn \keys_define:nn {nx}
 \cs_generate_variant:Nn \int_to_arabic:n {v}
@@ -25,7 +25,6 @@
 
 \bool_set_false:N \l__draft_bool
 \bool_set_false:N \l__newline_bool
-\bool_set_false:N \l__enstyle_bool
 \bool_set_false:N \l__font_noto_bool
 \bool_set_true:N  \l__zhtitle_bool
 \bool_set_true:N  \l__lang_chinese_bool
@@ -36,9 +35,9 @@
   {
     draft         .code:n = {\bool_set_true:N  \l__draft_bool},
     newline       .code:n = {\bool_set_true:N  \l__newline_bool},
-    enstyle       .code:n = {\bool_set_true:N  \l__enstyle_bool},
     entitle       .code:n = {\bool_set_false:N \l__zhtitle_bool},
     english       .code:n = {\bool_set_false:N \l__lang_chinese_bool},
+    enstyle       .meta:n = {newline,entitle,english},
 
     font          .choice:,
     font          .value_required:n = true,
@@ -63,7 +62,11 @@
 
     oneside   .value_forbidden:n = true,
     twoside   .value_forbidden:n = true,
-    oneside   .code:n = {\bool_set_false:N \l__page_twoside_bool},
+    oneside   .code:n =
+      {
+        \bool_set_false:N \l__page_twoside_bool
+        \__put_ctexbook:n {oneside}
+      },
 
     unknown   .code:n =
       {\clist_gput_right:No \g__options_clist{\CurrentOption}}
@@ -71,12 +74,6 @@
 
 \ProcessKeysOptions{easybook}
 
-\bool_if:NT \l__enstyle_bool
-  {
-    \bool_set_false:N \l__lang_chinese_bool
-    \bool_set_false:N \l__zhtitle_bool
-    \bool_set_true:N  \l__newline_bool
-  }
 \bool_if:NTF \l__lang_chinese_bool
   {\__put_ctexbook:n {scheme = chinese}}
   {\__put_ctexbook:n {scheme = plain}}
@@ -966,15 +963,15 @@
         \tcolorboxenvironment{example}{thmsty}
       }
   }
-\NewDocumentEnvironment{outline}{O{\abstractname}}
+\NewDocumentEnvironment{outline}{O{\abstractname}o}
   {
-    \begin{tcolorbox}[outlinesty,title = #1]
+    \begin{tcolorbox}[outlinesty,title = #1,IfValueT = {#2}{#2}]
       \begin{outlinelist}
   }{
       \end{outlinelist}
     \end{tcolorbox}
   }
-\NewDocumentEnvironment{exercise}{sO{LightYellow}O{1.}O{\c__name_exercise_tl}}
+\NewDocumentEnvironment{exercise}{sO{LightYellow}O{1.}O{\c__name_exercise_tl}o}
   {
     \begin{center}
       \bool_if:NTF \l__thmbox_bool
@@ -983,6 +980,7 @@
             exersty,
             colback = #2,colframe = black,
             drop~fuzzy~shadow = #2,
+            IfValueT = {#5}{#5},
             phantom =
               \IfBooleanF{#1}
                 {
@@ -1008,29 +1006,32 @@
   }{
     \end{compactenum}
   }
-\DeclareTColorBox{mybox}{soO{MintCream}}
+\DeclareTColorBox{mybox}{soO{MintCream}O{}}
   {
     enhanced~jigsaw,pad~at~break* = 3pt,
     IfBooleanTF = {#1}{colback = #3}{opacityback = 0,colframe = ctex@emph},
-    coltitle = black,opacitybacktitle = 0,
+    IfValueT = {#2}{title = #2},
+    coltitle = black,colbacktitle = white,
     fonttitle = \sffamily,
     left = .2pc,right = .2pc,top = .5pc,bottom = .5pc,middle= .5pc,
     arc = 0pt,
     toptitle = 2pt,bottomtitle = 2pt,
     beforeafter~skip=2ex,
     halign~upper = left,halign~lower = left,
-    center~title,
-    IfValueT = {#2}{title = #2}
+    center~title,#4
   }
-\NewTCBox{\fuzzy}{O{DarkSeaGreen}O{}}
-  {nobeforeafter,tcbox~raise~base,blank,fuzzy~halo = 2pt~with~#1,#2}
-\DeclareTotalTCBox{\concise}{O{Aqua}O{}v}
+\DeclareTotalTCBox{\fuzzy}{O{DarkSeaGreen}vO{}}
+  {
+    nobeforeafter,tcbox~raise~base,
+    blank,fuzzy~halo = 2pt~with~#1,#3
+  }{#2}
+\DeclareTotalTCBox{\concise}{O{Aqua}vO{}}
   {
     nobeforeafter,tcbox~raise~base,
     top = 2pt,bottom = 2.5pt,left = 2pt,right = 2pt,
     boxsep = 0pt,boxrule = 0.75pt,arc = 1pt,
-    colback = #1!15!white,#2
-  }{#3}
+    colback = #1!15!white,#3
+  }{#2}
 
 \bool_set_true:N \l__backend_bibtex_bool
 \tl_new:N \l__bib_style_tl
-- 
cgit v1.2.3

