summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook/easybook.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/easybook/easybook.dtx')
-rw-r--r--macros/latex/contrib/easybook/easybook.dtx24
1 files changed, 15 insertions, 9 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx
index 7c5e902059..3c11935729 100644
--- a/macros/latex/contrib/easybook/easybook.dtx
+++ b/macros/latex/contrib/easybook/easybook.dtx
@@ -15,7 +15,7 @@
%<*class>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/08/26}{1.29e}
+\ProvidesExplClass{easybook}{2021/08/31}{1.29h}
{Typeset Chinese theses or books}
\bool_set_false:N \l__eb_compile_draft_bool
@@ -297,7 +297,7 @@
%<*package>
\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 }
@@ -1307,8 +1307,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
@@ -1318,7 +1318,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
@@ -1363,9 +1363,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}
@@ -1936,10 +1936,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
@@ -2394,7 +2400,7 @@
}
%</package>
%<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2021/08/26}{1.29e}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2021/08/31}{1.29h}
{Customization of tcolorbox for easybook}
\tl_gset:Nn \eb@tc@line@skip { 0.5\baselineskip }