diff options
author | Karl Berry <karl@freefriends.org> | 2021-11-24 21:29:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-11-24 21:29:28 +0000 |
commit | 8832179161b2bf27735f1276934f097904ffc1ce (patch) | |
tree | 75ebf2f9211c2484edbcb0be7691d3e29ec894d0 /Master/texmf-dist/tex/latex/easybook | |
parent | 1c487f7cccb03438d9e02a0a7d17f2a4049717d7 (diff) |
easybook (24nov21)
git-svn-id: svn://tug.org/texlive/trunk@61141 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/easybook')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybase.sty | 44 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybook.cls | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg | 4 |
3 files changed, 30 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty index 5e83a43d7d7..5a4ec969861 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybase.sty +++ b/Master/texmf-dist/tex/latex/easybook/easybase.sty @@ -20,7 +20,7 @@ %% This work has the LPPL maintenance status `maintained'. \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2021/11/22}{1.40V} +\ProvidesExplPackage{easybase}{2021/11/24}{1.40X} {Typeset Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -1549,7 +1549,6 @@ \cs_new_protected:Npn \seteqcomp #1 { \keys_set:nn { eb/eqcomp} {#1} } -\cs_new:Npn \eb@itembox { \item\makebox } \cs_new:Npn \eb_eqsymb_left_margin_calc: { \hbox_set:Nn \l_tmpa_box { \l__eb_eqsymb_delim_tl } @@ -1571,27 +1570,38 @@ #3 \end{eb@eqcomp@list} }{} +\cs_new_protected:Npn \eb_eqsymb_format_mark:n #1 + { + \tl_use:N \l__eb_eqsymb_font_tl + { + \tl_if_eq:NnT \l__eb_eqsymb_mode_tl { math } + { \ensuremath }{#1} + } + } +\cs_new_protected:Npn \eb_eqsymb_space_delim:nn #1#2 + { + \hspace{\l__eb_eqsymb_space_dim} + \IfBooleanTF{#1} + {\makebox{#2}} + {\makebox[\box_wd:N \l_tmpa_box][\l__eb_eqsymb_delim_align_tl]{#2}} + \hspace{\l__eb_eqsymb_space_dim} + } +\cs_new_protected:Npn \eb@itembox { \item\makebox } \NewDocumentCommand{\symb}{smO{\l__eb_eqsymb_delim_tl}} { \IfBooleanTF{#1} { - \eb_eqsymb_left_margin_calc: - \makebox + \eb_eqsymb_format_mark:n {#2} + \eb_eqsymb_space_delim:nn {#1} {#3} } - {\eb@itembox}[\l_tmpa_dim] { - \makebox[\box_wd:N \l_tmpb_box]{\l__eb_eqsymb_intro_tl} - \makebox[\l__eb_eqsymb_width_dim][\l__eb_eqsymb_item_align_tl] + \eb@itembox[\l_tmpa_dim] { - \tl_use:N \l__eb_eqsymb_font_tl - { - \tl_if_eq:NnT \l__eb_eqsymb_mode_tl { math } - { \ensuremath }{#2} - } + \makebox[\box_wd:N \l_tmpb_box]{\l__eb_eqsymb_intro_tl} + \makebox[\l__eb_eqsymb_width_dim][\l__eb_eqsymb_item_align_tl] + {\eb_eqsymb_format_mark:n {#2}} + \eb_eqsymb_space_delim:nn {#1} {#3} } - \hspace{\l__eb_eqsymb_space_dim} - \makebox[\box_wd:N \l_tmpa_box][\l__eb_eqsymb_delim_align_tl]{#3} - \hspace{\l__eb_eqsymb_space_dim} } \tl_clear:N \l__eb_eqsymb_intro_tl \ignorespaces @@ -1613,7 +1623,7 @@ \cs_set_eq:NN \newtheorem \declaretheorem \cs_new_protected:Npn \eb_if_thmframe_with_tcolorbox:TF #1#2 { - \bool_if:NT \l__eb_thmframe_bool + \bool_if:NT \l__eb_thm_frame_bool { \@ifpackageloaded{tcolorbox}{#1}{#2} } } \NewDocumentCommand{\deftheorem} @@ -1649,7 +1659,7 @@ { \ctex_define:nn { thmset } { #1 .tl_set:N = #2 } } \ctex_define:nn { thmset } { - thmframe .bool_set:N = \l__eb_thmframe_bool, + thmframe .bool_set:N = \l__eb_thm_frame_bool, thmframe .default:n = true, thmframe .initial:n = false, thmbox .meta:n = { thmframe = #1 }, diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls index 76cdc88cf5a..1a4f18b3e04 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybook.cls +++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls @@ -20,7 +20,7 @@ %% This work has the LPPL maintenance status `maintained'. \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2021/11/22}{1.40V} +\ProvidesExplClass{easybook}{2021/11/24}{1.40X} {Typeset Chinese theses or books} \bool_set_false:N \l__eb_compile_draft_bool diff --git a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg index 7e8a74d328c..92f9f45b948 100644 --- a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg +++ b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg @@ -18,7 +18,7 @@ %% LaTeX version 2005/12/01 or later. %% %% This work has the LPPL maintenance status `maintained'. -\ProvidesExplFile{eb-tcolorbox.cfg}{2021/11/22}{1.40V} +\ProvidesExplFile{eb-tcolorbox.cfg}{2021/11/24}{1.40X} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \setexercise #1 @@ -113,7 +113,7 @@ \newtcbstyle{tc-ebfbox} { on~line,sharpish~corners, - top = 2pt,bottom = 2pt,left = 1pt,right = 1pt, + top = 1.5pt,bottom = 1.5pt,left = 1pt,right = 1pt, boxrule = 0.5pt,leftrule = 0pt,rightrule = 0pt } \tcbset |