diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/easybook/easybase.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybase.sty | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty index 974a15a011b..9f31c7f8121 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybase.sty +++ b/Master/texmf-dist/tex/latex/easybook/easybase.sty @@ -13,7 +13,7 @@ %% https://creativecommons.org/licenses/by/4.0/legalcode \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2021/08/11}{1.28L} +\ProvidesExplPackage{easybase}{2021/08/13}{1.28N} {Typeset Chinese theses or books} \cs_generate_variant:Nn \dim_add:Nn { NV,Nv } @@ -84,13 +84,13 @@ } { \IfFileExists{#1.sty}{\RequirePackage{#1}}{} } } -\cs_new_protected:Npn \eb_if_package_reload:nF #1#2 +\cs_new_protected:Npn \eb_if_package_loaded:nF #1#2 { \@ifpackageloaded{#1} - {\msg_warning:nnn { easybase } { package-reload } {#1}} + {\msg_warning:nnn { easybase } { package-loaded } {#1}} {#2\disable@package@load{#1}{}} } -\msg_new:nnn { easybase } { package-reload } +\msg_new:nnn { easybase } { package-loaded } { The~macro~package~#1~has~been~reloaded. \\ Please~pass~the~arguments~by \\ @@ -102,7 +102,7 @@ \PassOptionsToPackage{#1}{#2} \eb_clist_map_inline:nn {#2} { - \eb_if_package_reload:nF {##1} + \eb_if_package_loaded:nF {##1} { \eb@usepackage@save{##1} } } } @@ -1789,16 +1789,16 @@ numsep .initial:n = 0.5em, label .tl_set:N = \eb@tc@exercise@label, enumitem .code:n = \setexerlist{#1}, - tcolorbox .code:n = \tcbappstyle{exercise}{#1} + tcolorbox .code:n = \addtcbstyle{exercise}{#1} } \cs_new_protected:Npn \setexercise #1 { \keys_set:nn { eb/exercise } {#1} } -\NewDocumentCommand{\tcbappstyle}{smm} - { - \IfBooleanTF{#1} - {\tcbset{tc-#2/.style = {#3}}} - {\tcbset{tc-#2/.append~style = {#3}}} - } +\cs_new_protected:Npn \addtcbstyle #1#2 + { \tcbset{tc-#1/.append~style = {#2}} } +\cs_new_protected:Npn \newtcbstyle #1#2 + { \tcbset{tc-#1/.style = {#2}} } +\cs_new_protected:Npn \tcbappstyle + { \@ifstar{\newtcbstyle}{\addtcbstyle} } \ctex_at_end_package:nn { tcolorbox } { \eb_package_date_check:nn { tcolorbox } { 2020/10/09 } |