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.dtx40
1 files changed, 20 insertions, 20 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx
index 633dde041c..1dc68e17ad 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/11/24}{1.40X}
+\ProvidesExplClass{easybook}{2021/11/25}{1.40Z}
{Typeset Chinese theses or books}
\bool_set_false:N \l__eb_compile_draft_bool
@@ -325,7 +325,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2021/11/24}{1.40X}
+\ProvidesExplPackage{easybase}{2021/11/25}{1.40Z}
{Typeset Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1388,7 +1388,7 @@
{
\eb@if@boolT\eb@titletoc@hang@fix@bool{\p@numberline}
\bgroup
- \eb@toc@label@lstlisting{}
+ \eb@toc@label@lstlisting{\thelstlisting}
\egroup
\lst@@caption
}
@@ -1697,16 +1697,19 @@
\ctex_define:nn { subfont }
{
- caption-table .tl_set:N = \l__eb_subfont_table_tl,
- caption-table .initial:n = \sffamily\small,
- caption-figure .tl_set:N = \l__eb_subfont_figure_tl,
- caption-figure .initial:n = \sffamily\small,
- caption-listing .tl_set:N = \l__eb_subfont_listing_tl,
- caption-listing .initial:n = \sffamily\small,
- footnote .tl_set:N = \l__eb_subfont_footnote_tl,
- footnote .initial:n = \rmfamily,
- marginpar .tl_set:N = \marginfont,
- marginpar .initial:n = \rmfamily\footnotesize,
+ caption-table .tl_set:N = \l__eb_subfont_table_tl,
+ caption-figure .tl_set:N = \l__eb_subfont_figure_tl,
+ caption-listing .tl_set:N = \l__eb_subfont_listing_tl,
+ caption .meta:n =
+ {
+ caption-table = #1,caption-figure = #1,
+ caption-listing = #1
+ },
+ caption .initial:n = \sffamily\small,
+ footnote .tl_set:N = \l__eb_subfont_footnote_tl,
+ footnote .initial:n = \rmfamily,
+ marginpar .tl_set:N = \marginfont,
+ marginpar .initial:n = \rmfamily\footnotesize,
unknown .code:n = \eb_msg_unknown_option:n { subfont }
}
@@ -1760,13 +1763,10 @@
\captionsetup[figure][bi-second]{name = Figure}
\captionsetup[table][bi-second]{name = Table}
}
-\IfPackageAtLeastTF{tabularray}{2021/07/01}
- {
- \UseTblrLibrary{booktabs}
- \SetTblrInner{stretch = \fp_use:N \l__eb_spread_table_fp}
- }{}
-\eb_at_begin_environment:nn { tabular,tabularx }
+\eb_at_begin_environment:nn
+ { tabular,tabularx,tblr,longtblr,longtable }
{ \setspread{\fp_use:N \l__eb_spread_table_fp} }
+\IfPackageAtLeastTF{tabularray}{2021/07/01}{\UseTblrLibrary{booktabs}}{}
\bool_if:NF \l__eb_float_page_bool
{
@@ -2380,7 +2380,7 @@
}
%</package>
%<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2021/11/24}{1.40X}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2021/11/25}{1.40Z}
{Customization of tcolorbox for easybook}
\cs_set_protected:Npn \setexercise #1