From 7390f2fd1bbcb605894627d5b9214a79be7e37f5 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sun, 18 Apr 2021 20:19:22 +0000
Subject: easybook (18apr21)

git-svn-id: svn://tug.org/texlive/trunk@58905 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/easybook/easybook.cls | 66 +++++++++++++++--------
 1 file changed, 45 insertions(+), 21 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/easybook/easybook.cls')

diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls
index 2d61f167c12..c63f009edcb 100644
--- a/Master/texmf-dist/tex/latex/easybook/easybook.cls
+++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls
@@ -13,7 +13,7 @@
 %%   https://creativecommons.org/licenses/by/4.0/legalcode
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
 \RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplClass{easybook}{2021/04/17}{1.24m}{beta}
+\ProvidesExplClass{easybook}{2021/04/18}{1.24n}{beta}
 
 \cs_generate_variant:Nn \__ctex_define:nn {nx}
 \cs_generate_variant:Nn \int_to_arabic:n {v}
@@ -485,8 +485,8 @@
     \bool_if:NT \l__eb_draft_bool
       {
         \bool_if:NTF \l__eb_page_twoside_bool
-          {\easyfoot[C]{\color{gray!60}\sffamily\today}}
-          {\easyhead[C]{\color{gray!60}\sffamily\today}}
+          {\easyfoot[C]{\color{SlateGray}\sffamily\today}}
+          {\easyhead[C]{\color{SlateGray}\sffamily\today}}
         \geometry{showframe}
       }
   }
@@ -1135,7 +1135,7 @@
             enhanced~jigsaw,pad~at~break* = 3pt,
             opacityback = 0,
             colframe = ctex@emph,
-            left = .2pc,right = .2pc,top = .5pc,bottom = .5pc,middle= .5pc,
+            left = 6pt,right = 6pt,top = 8pt,bottom = 8pt,middle= 8pt,
             arc = 0pt
           },
         tc-outline/.style =
@@ -1147,21 +1147,20 @@
             fonttitle = \large\sffamily,fontupper = \itshape,
             boxed~title~style = {size = normal,opacityframe = 0,boxrule = 0pt},
             attach~boxed~title~to~top~center = {yshift = -\tcboxedtitleheight/2},
-            arc = 3pt,
+            arc = 3pt,boxsep = 5pt,
             after~skip = 3ex,
-            left = 1.5pc,right = 1.5pc,top = 1pc,bottom = 0.5pc,
-            boxsep = 5pt
+            left = 1.5pc,right = 1.5pc,top = 1pc,bottom = 0.5pc
           },
         tc-exercise/.style =
           {
             enhanced,on~line,
-            arc = 5pt,
             fontupper = \sffamily\Large,
-            boxrule = 1pt,boxsep = 0pt,
+            boxrule = 1pt,arc = 5pt,
             left = 6pt,right = 6pt,top = 3.5pt,bottom = 3.5pt,
             before~skip = 4ex,after~skip = 2.25ex
           },
         breakable,
+        boxsep = 0pt,
         boxrule = \l__eb_rule_width_dim
       }
     \NewDocumentEnvironment{outline}{D(){\abstractname}o+b}
@@ -1208,20 +1207,44 @@
           #6
         \end{enumerate}
       }{}
-    \DeclareTColorBox{easybox}{sO{MintCream}d()O{}}
+    \DeclareTColorBox{easybox}{sO{DarkCyan}d()O{}}
       {
         enhanced~jigsaw,pad~at~break* = 3pt,
-        IfBooleanTF = {#1}{colback = #2}{opacityback = 0,colframe = ctex@emph},
+        IfBooleanTF = {#1}
+          {toptitle = 8pt,top = 8pt}
+          {frame~hidden,boxrule = 0pt,toptitle = 8pt,top = 0pt},
         IfValueT = {#3}{title = #3},
-        coltitle = black,colbacktitle = white,
+        colback = #2!8!white,colbacktitle = #2!8!white,
+        coltitle = black,colframe = black,
         fonttitle = \sffamily,
-        left = .2pc,right = .2pc,top = .5pc,bottom = .5pc,middle= .5pc,
-        arc = 0pt,
-        toptitle = 2pt,bottomtitle = 2pt,
-        beforeafter~skip=2ex,
+        left = 6pt,right = 6pt,bottom = 8pt,middle= 8pt,
+        bottomtitle = 8pt,arc = 0pt,
+        beforeafter~skip = 2ex,
         halign~upper = left,halign~lower = left,
         center~title,#4
       }
+    \DeclareTColorBox{ebparbox}{sO{Purple}d()O{}}
+      {
+        frame~hidden,
+        enhanced~jigsaw,pad~at~break* = 3pt,
+        boxrule = 0pt,
+        borderline~west = {3pt}{0pt}{#2},
+        IfBooleanTF = {#1}
+          {
+            colback = white,
+            IfValueT = {#3}{title = #3},
+            top = 0pt,bottom = 0pt,toptitle = 0pt
+          }{
+            colback = #2!8!white,colbacktitle = #2!8!white,
+            IfValueTF = {#3}{title = #3,top = 0pt}{top = 8pt},
+            bottom = 8pt,toptitle = 8pt
+          },
+        left = 8pt,right = 8pt,middle= 8pt,
+        bottomtitle = 8pt,arc = 0pt,
+        beforeafter~skip = 1.5ex,
+        colframe = #2,coltitle = #2,
+        fonttitle = \sffamily,#4
+      }
     \DeclareTotalTCBox{\fuzzy}{O{DarkSeaGreen}vO{}}
       {
         nobeforeafter,tcbox~raise~base,
@@ -1392,6 +1415,7 @@
   }
 \__eb_patch_cmd:Nnn \@makefnmark
   {\normalfont}{\l__eb_font_footnote_tl}
+\cs_gset:Npn \thempfootnote{\int_to_alph:n {\c@mpfootnote}}
 
 \lstdefinestyle{easy-lst-sty}
   {
@@ -1428,7 +1452,7 @@
     framesep = 3pt,
     frame = single,
     rulecolor = \color{ctex@frame},
-    commentstyle = \color{gray},
+    commentstyle = \color{SlateGray},
     emphstyle = \color{ctex@emph},
     emph = {caption,multirow,subcaption,tabularx},
     morekeywords =
@@ -1519,12 +1543,12 @@
       {
         {fresh,     62d71f,0000B2,005752},
         {cutepink,  ff69b4,9d5196,57b5e5},
-        {skyblue,   0000ff,004986,eb6877},
+        {navyblue,  000080,004986,eb6877},
         {crimson,   dc143c,00c1c9,afcd20}
       }
       \__eb_linkcolor_set:n
-    linkcolor         .default:n = fresh,
-    linkcolor         .initial:n = fresh,
+    linkcolor         .default:n = navyblue,
+    linkcolor         .initial:n = navyblue,
     linkcol-all       .code:n = \__eb_define_linkcolor:n {\exp_not:n {#1}},
 
     linktoc           .choice:,
@@ -1549,7 +1573,7 @@
     \clist_map_function:nN
       {
         {none,      000000,000000,000000},
-        {seaside,   4682B4,004986,2E8B57},
+        {seaside,   4169e1,708090,9932cc},
         {energy,    f39800,00a0e9,893895},
         {cyberpunk, 601986,eb6877,a4005b}
       }
-- 
cgit v1.2.3

