From 24d32bcde145f8a1a3fd07b2d66909f5d04536fc Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 10 Feb 2021 22:04:10 +0000
Subject: easybook (10feb21)

git-svn-id: svn://tug.org/texlive/trunk@57702 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/easybook/easybook.cls | 74 +++++++++--------------
 1 file changed, 27 insertions(+), 47 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 7f1d5d12559..e3f6b5ce9e1 100644
--- a/Master/texmf-dist/tex/latex/easybook/easybook.cls
+++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls
@@ -9,7 +9,7 @@
 %%   https://creativecommons.org/licenses/by/4.0/legalcode
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/02/09}{1.23b}{}
+\ProvidesExplClass{easybook}{2021/02/10}{1.23c}{}
 
 \cs_generate_variant:Nn \keys_define:nn {nx}
 \cs_generate_variant:Nn \int_to_arabic:n {v}
@@ -652,7 +652,7 @@
     format = hang,
     % figurewithin = section,
     % tablewithin = section,
-    font = {stretch = \l__cap_spread_tl},
+    font = {stretch = {\fp_use:N \l__cap_spread_fp}},
     labelfont = {color = ctex@frame},
     labelsep = ccwd,
     belowskip = 0pt,aboveskip = 10pt
@@ -685,9 +685,9 @@
 
 \fp_new:N \l__line_spread_fp
 \fp_new:N \l__tab_spread_fp
-\tl_new:N \l__math_spread_tl
-\tl_new:N \l__cap_spread_tl
-\tl_new:N \l__foot_spread_tl
+\fp_new:N \l__math_spread_fp
+\fp_new:N \l__cap_spread_fp
+\fp_new:N \l__foot_spread_fp
 
 \__ctex_define:nn {spread}
   {
@@ -695,11 +695,11 @@
     linespread  .initial:n = 1.3,
     tabspread   .fp_set:N = \l__tab_spread_fp,
     tabspread   .initial:n = 1.05,
-    mathspread  .tl_set:N = \l__math_spread_tl,
+    mathspread  .fp_set:N = \l__math_spread_fp,
     mathspread  .initial:n = 1.05,
-    capspread   .tl_set:N = \l__cap_spread_tl,
+    capspread   .fp_set:N = \l__cap_spread_fp,
     capspread   .initial:n = 1,
-    fnspread    .tl_set:N = \l__foot_spread_tl,
+    fnspread    .fp_set:N = \l__foot_spread_fp,
     fnspread    .initial:n = 1
   }
 
@@ -748,7 +748,7 @@
 \skip_set:Nn \plitemsep{.75ex plus .1ex}
 \skip_set:Nn \plparsep{0ex}
 
-\cs_new_protected:Npn \__thmname_set:nn #1#2
+\cs_new_protected:Npn \__thmname_set:n #1#2
   {\tl_const:cn {c__name_#1_tl}{#2}}
 \bool_if:NTF \l__lang_chinese_bool
   {
@@ -762,7 +762,7 @@
         {example}{例},
         {remark}{注},
         {exercise}{练习}
-      }{\__thmname_set:nn #1}
+      }{\__thmname_set:n #1}
   }{
     \clist_map_inline:nn
       {
@@ -774,7 +774,7 @@
         {example}{Example},
         {remark}{Remark},
         {exercise}{Exercise}
-      }{\__thmname_set:nn #1}
+      }{\__thmname_set:n #1}
   }
 
 \bool_new:N \l__thmbox_bool
@@ -875,50 +875,30 @@
 \allowdisplaybreaks[4]
 \cs_gset:Npn \ULthickness{.75pt}
 \skip_set:Nn \jot{4pt plus 1pt minus 1pt}
-\cs_new:Npn \l__math_restore:n #1
+\cs_new_protected:Npn \l__math_restore:n #1
   {
     \AtBeginEnvironment{#1}
-      {\linespread{\l__math_spread_tl}\selectfont\ignorespaces}
+      {\linespread{\fp_use:N \l__math_spread_fp}\selectfont\ignorespaces}
   }
-\l__math_restore:n {array}
-\l__math_restore:n {matrix}
-\l__math_restore:n {pmatrix}
-\l__math_restore:n {bmatrix}
-\l__math_restore:n {Bmatrix}
-\l__math_restore:n {vmatrix}
-\l__math_restore:n {Vmatrix}
-\l__math_restore:n {cases}
-\l__math_restore:n {aligned}
-\l__math_restore:n {alignedat}
-\l__math_restore:n {gathered}
+\clist_map_inline:nn
+  {
+    {array},{matrix},{pmatrix},{bmatrix},{Bmatrix},{vmatrix},{Vmatrix},
+    {matrix*},{pmatrix*},{bmatrix*},{Bmatrix*},{vmatrix*},{Vmatrix*},
+    {cases},{cases*},{dcases},{dcases*},{rcases},{rcases*},{drcases},{drcases*},
+    {aligned},{alignedat},{gathered},{multlined},{lgathered},{rgathered}
+  }{\l__math_restore:n {#1}}
 \__patch_cmd:Nnn \start@gather
   {\collect@body}
-  {\linespread{\l__math_spread_tl}\selectfont\collect@body}
+  {\linespread{\fp_use:N \l__math_spread_fp}\selectfont\collect@body}
 \__patch_cmd:Nnn \start@align
   {\collect@body}
-  {\linespread{\l__math_spread_tl}\selectfont\collect@body}
+  {\linespread{\fp_use:N \l__math_spread_fp}\selectfont\collect@body}
 \__patch_cmd:Nnn \start@multline
   {\collect@body}
-  {\linespread{\l__math_spread_tl}\selectfont\collect@body}
+  {\linespread{\fp_use:N \l__math_spread_fp}\selectfont\collect@body}
 \__patch_cmd:Nnn \gather@split
   {\spread@equation}
-  {\linespread{\l__math_spread_tl}\selectfont\spread@equation}
-\l__math_restore:n {matrix*}
-\l__math_restore:n {pmatrix*}
-\l__math_restore:n {bmatrix*}
-\l__math_restore:n {Bmatrix*}
-\l__math_restore:n {vmatrix*}
-\l__math_restore:n {Vmatrix*}
-\l__math_restore:n {cases*}
-\l__math_restore:n {dcases}
-\l__math_restore:n {dcases*}
-\l__math_restore:n {rcases}
-\l__math_restore:n {rcases*}
-\l__math_restore:n {drcases}
-\l__math_restore:n {drcases*}
-\l__math_restore:n {multlined}
-\l__math_restore:n {lgathered}
-\l__math_restore:n {rgathered}
+  {\linespread{\fp_use:N \l__math_spread_fp}\selectfont\spread@equation}
 \ctex_after_end_preamble:n
   {
     \skip_set:Nn \abovedisplayskip{5pt plus 1pt minus 1pt}
@@ -1139,7 +1119,7 @@
     \skip_set:Nn \footnotemargin{0.5\ccwd}
     \group_begin:
     \footnotesize
-    \exp_args:Nx \linespread{\tl_use:N \l__foot_spread_tl}\selectfont
+    \exp_args:Nx \linespread{\fp_use:N \l__foot_spread_fp}\selectfont
     \skip_gset:Nn \footnotesep{\ht\strutbox}
     \group_end:
     \cs_gset:Npn \hangfootparskip{0ex}
@@ -1165,10 +1145,10 @@
   }
 \__patch_cmd:Nnn \@footnotetext
   {\reset@font}
-  {\def\baselinestretch{\l__foot_spread_tl}\l__foot_font_tl}
+  {\def\baselinestretch{\fp_use:N \l__foot_spread_fp}\l__foot_font_tl}
 \__patch_cmd:Nnn \@mpfootnotetext
   {\reset@font}
-  {\def\baselinestretch{\l__foot_spread_tl}\l__foot_font_tl}
+  {\def\baselinestretch{\fp_use:N \l__foot_spread_fp}\l__foot_font_tl}
 \__patch_cmd:Nnn \@makefnmark
   {\normalfont}{\l__foot_font_tl}
 \cs_gset:Npn \marginfont{\l__margin_font_tl}
-- 
cgit v1.2.3

