From 189140b53960215eec1626503040fb38360ab4ed Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sun, 28 Feb 2021 03:01:24 +0000
Subject: CTAN sync 202102280301

---
 macros/latex/contrib/easybook/easybook.cls | 35 ++++++++++++++++++------------
 1 file changed, 21 insertions(+), 14 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 470d7ae495..47a3778ff1 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/02/23}{1.23g}{}
+\ProvidesExplClass{easybook}{2021/02/27}{1.23h}{}
 
 \cs_generate_variant:Nn \keys_define:nn {nx}
 \cs_generate_variant:Nn \int_to_arabic:n {v}
@@ -91,6 +91,7 @@
 \bool_new:N \l__foot_perpart_bool
 \bool_new:N \l__foot_perpage_bool
 \bool_new:N \l__notomath_bool
+\bool_new:N \l__uppercase_bool
 \tl_new:N   \g__config_tl
 
 \ctex_define:n
@@ -128,7 +129,10 @@
     notomath  .default:n = true,
     notomath  .initial:n = true,
     rulewidth .dim_set:N = \l__rule_width_dim,
-    rulewidth .initial:n = 0.75pt
+    rulewidth .initial:n = 0.75pt,
+    uppercase .bool_set:N = \l__uppercase_bool,
+    uppercase .default:n = true,
+    uppercase .initial:n = true
   }
 
 \clist_map_inline:nn
@@ -338,7 +342,7 @@
           {
             \markboth
               {
-                \MakeUppercase
+                \bool_if:NT \l__uppercase_bool{\MakeUppercase}
                   {
                     \ifnum\c@secnumdepth>\m@ne
                       \if@mainmatter
@@ -349,7 +353,7 @@
                     \fi#1
                   }
               }{
-                \MakeUppercase
+                \bool_if:NT \l__uppercase_bool{\MakeUppercase}
                   {
                     \ifnum\c@secnumdepth>\m@ne
                       \if@mainmatter
@@ -368,7 +372,7 @@
           {
             \markboth
               {
-                \MakeUppercase
+                \bool_if:NT \l__uppercase_bool{\MakeUppercase}
                   {
                     \ifnum\c@secnumdepth>\m@ne
                       \if@mainmatter
@@ -387,11 +391,14 @@
       {
         \markright
           {
-            \ifnum\c@secnumdepth>\z@
-              \ifodd\CTEX@section@numbering
-                \CTEXthesection\hspace{0.5\ccwd}
-              \fi
-            \fi#1
+            \bool_if:NT \l__uppercase_bool{\MakeUppercase}
+              {
+                \ifnum\c@secnumdepth>\z@
+                  \ifodd\CTEX@section@numbering
+                    \CTEXthesection\hspace{0.5\ccwd}
+                  \fi
+                \fi#1
+              }
           }
       }
     \cs_gset:Npn \headrule
@@ -989,7 +996,7 @@
                   \refstepcounter{section}
                   \markright{\CTEXthesection\hspace{0.5\ccwd}#4}
                   \CTEX@addtocline{section}{#4}
-                },
+                }
             ]{\IfBooleanF{#1}{\CTEXthesection\hspace{0.5\ccwd}}#4}
         }{
           \sffamily\Large
@@ -1167,7 +1174,7 @@
   {
     language = [LaTeX]TeX,
     texcsstyle =
-      *\lst@ifdisplaystyle\bfseries\color{ctex@emph}\else\color{ctex@verb}\fi,
+      *\lst@ifdisplaystyle\bfseries\color{ctex@verb}\else\color{ctex@verb}\fi,
     basicstyle =
       \ttfamily\lst@ifdisplaystyle\small\else\color{ctex@verb}\fi,
     framexleftmargin = 0pt,
@@ -1182,7 +1189,7 @@
     emphstyle = \color{ctex@emph},
     emph = {caption,makecell,subcaption,tabularx},
     keywordstyle =
-      \lst@ifdisplaystyle\bfseries\color{ctex@emph}\else\color{ctex@verb}\fi,
+      \lst@ifdisplaystyle\bfseries\color{ctex@verb}\else\color{ctex@verb}\fi,
     morekeywords =
       {
         includegraphics,setmainfont,setsansfont,setmonofont,setCJKmainfont,setCJKsansfont,setCJKmonofont,setCJKfamilyfont,RequirePackage
@@ -1284,7 +1291,7 @@
     \clist_map_function:nN
       {
         {none,      000000,000000,000000},
-        {seaside,   1381b2,004986,a40000},
+        {seaside,   4682B4,004986,a40000},
         {energy,    f39800,00a0e9,893895},
         {cyberpunk, 601986,eb6877,a4005b}
       }
-- 
cgit v1.2.3

