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.dtx35
1 files changed, 29 insertions, 6 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx
index ed8abf47f5..b6c3eceaaa 100644
--- a/macros/latex/contrib/easybook/easybook.dtx
+++ b/macros/latex/contrib/easybook/easybook.dtx
@@ -15,7 +15,7 @@
%<*class>
\NeedsTeXFormat{LaTeX2e}[2021/11/15]
\RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2024/04/22}{2024aw}
+\ProvidesExplClass{easybook}{2024/04/23}{2024ax}
{Easily typesetting Chinese theses or books}
\bool_new:N \l__eb_compile_draft_bool
@@ -297,7 +297,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2021/11/15]
\RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2024/04/22}{2024aw}
+\ProvidesExplPackage{easybase}{2024/04/23}{2024ax}
{Easily typesetting Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1559,6 +1559,7 @@
#1/tocformat .tl_set:c = l__eb_toc_#1_format_tl,
#1/tocformat+ .code:n = \tl_put_right:cn { l__eb_toc_#1_format_tl } {##1},
#1/tocformat~+ .code:n = \tl_put_right:cn { l__eb_toc_#1_format_tl } {##1},
+ #1/tocformat* .tl_set:c = l__eb_toc_#1_entry_nolabel_tl,
#1/tocindent .tl_set:c = l__eb_toc_#1_indent_tl,
#1/toclabel .cs_set:cp = { eb_toc_entry_#1:nnn } ##1##2##3,
#1/tocrule .tl_set:c = l__eb_toc_#1_rule_tl,
@@ -1584,7 +1585,8 @@
{#2}
[\tl_use:c { l__eb_toc_#2_indent_tl }]
{\tl_use:c { l__eb_toc_#2_format_tl }}
- {\use:c { eb_toc_entry_#2:nnn } { \thecontentslabel } {#2} {#1}}{}
+ {\use:c { eb_toc_entry_#2:nnn } { \thecontentslabel } {#2} {#1}}
+ {\tl_use:c { l__eb_toc_#2_entry_nolabel_tl }}
{\tl_use:c { l__eb_toc_#2_rule_tl }}
[\tl_use:c { l__eb_toc_#2_below_tl }]
}
@@ -2082,6 +2084,25 @@
]
\theoremstyle{default}
\cs_undefine:N \proof
+ \DeclareFloatList{theorem}{loe}
+ \eb_preto_cmd:nn { listoftheorems }
+ { \def\contentsline #1 {\use:c { thmt@contentsline@#1 }{#1}} }
+ \def\thmtname{\thmt@thmname}
+ \def\thmtenvname{\thmt@envname}
+ \def\thmtnote{\thmt@shortoptarg}
+ \def\thmtformatoptarg #1 {#1}
+ \def\thmtifname #1#2 {\ifbool{thmt@isstarred}{#2}{#1}}
+ \def\thmtifnote #1#2
+ {
+ \tl_if_empty:NTF \thmt@shortoptarg
+ { \protect\thmtformatoptarg{#2} }
+ { \protect\thmtformatoptarg{#1} }
+ }
+ \NewDocumentCommand{\settheoremtocline}{smm}
+ {
+ \IfBooleanT{#1}{\def\thmt@contentslineIgnore{\thmt@contentsline}}
+ \cs_set:cpn { ll@#2 } {#3}
+ }
}
\setchemformula
@@ -2418,7 +2439,8 @@
\ctex_define:n
{
lstlistlistingname .tl_set:N = \listlstlistingname,
- lstlistingname .tl_set:N = \lstlistingname
+ lstlistingname .tl_set:N = \lstlistingname,
+ listtheoremname .tl_set:N = \listtheoremname
}
\tl_if_eq:NnTF \l__ctex_scheme_tl { chinese }
{
@@ -2428,7 +2450,8 @@
listfigurename = 插图清单,
listtablename = 附表清单,
lstlistlistingname = 代码清单,
- lstlistingname = 代码
+ lstlistingname = 代码,
+ listtheoremname = 定理清单
}
}
{
@@ -2440,7 +2463,7 @@
}
%</package>
%<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2024/04/22}{2024aw}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/04/23}{2024ax}
{Customization of tcolorbox for easybook}
\cs_set_protected:Npn \addtotcbstyle #1#2