diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/easybook/easybase.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybase.sty | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty index c5579df89fd..afbe0c32c7e 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/08/26}{1.29e} +\ProvidesExplPackage{easybase}{2021/08/31}{1.29h} {Typeset Chinese theses or books} \cs_generate_variant:Nn \dim_add:Nn { NV,Nv } @@ -1030,8 +1030,8 @@ { \bool_if:NTF \l__eb_class_book_bool { 0pc } { 0.15pc } } } -\prop_new:N \l__eb_label_name_prop -\prop_set_from_keyval:Nn \l__eb_label_name_prop +\prop_new:N \l__eb_list_label_name_prop +\prop_set_from_keyval:Nn \l__eb_list_label_name_prop { figure = \eb@labelname@lof, table = \eb@labelname@lot @@ -1041,7 +1041,7 @@ \addcontentsline{#1}{#2} { \ifbool{eb@titletoc@hang@fix}{\eb@numberline}{} - {\prop_item:Nn \l__eb_label_name_prop {#2}{#3}}#4 + {\prop_item:Nn \l__eb_list_label_name_prop {#2}{#3}}#4 } } \ctex_patch_cmd:Nnn \lst@MakeCaption @@ -1086,9 +1086,9 @@ \int_compare:nNnT { \c@chapter } > { 0 } { \use:c { the#1chapter }. } \int_to_arabic:v { c@#1section } } -\cs_set:Npn \thebichapter { \eb_arabic:n { bichapter } } +\cs_set:Npn \thebichapter { \@arabic\c@bichapter } \cs_set:Npn \thebisection { \eb_section_counter_prefix:n { bi } } -\cs_set:Npn \thebisubsection { \thebisection.\eb_arabic:n { bisubsection } } +\cs_set:Npn \thebisubsection { \thebisection.\@arabic\c@bisubsection } \cs_set:Npn \thesection { \eb_section_counter_prefix:n { } } \contentsuse{}{tec} @@ -1659,10 +1659,16 @@ \bool_if:NT \l__eb_thmbox_bool { \@ifpackageloaded{tcolorbox} - {\tcolorboxenvironment{#1}{#4}}{} + {\tcolorboxenvironment{#1}{#4}} + {\msg_warning:nn { easybase } { need-tcolorbox }} } \labelformat{#1}{\tl_use:c { c__eb_name_#1_tl }~##1} } +\msg_new:nnn { easybase } { need-tcolorbox } + { + Now~that~the~thmbox~option~is~true. \\ + Please~load~the~tcolorbox~macro~package. + } \cs_set_eq:NN \EBNewTheorem \DeclareTheorem \prop_new:N \l__eb_thmtools_entry_prop \clist_const:Nn \c__eb_thmtools_entry_clist |