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.dtx17
1 files changed, 9 insertions, 8 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx
index 52c3418055..050718cbb5 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}{2022/02/14}{1.626}
+\ProvidesExplClass{easybook}{2022/02/15}{1.628}
{Typeset Chinese theses or books}
\bool_set_false:N \l__eb_compile_draft_bool
@@ -303,7 +303,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2022/02/14}{1.626}
+\ProvidesExplPackage{easybase}{2022/02/15}{1.628}
{Typeset Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -641,7 +641,7 @@
\cs_new_protected:Npn \eb_draw_markrule:nnnnn #1#2#3#4#5
{
\group_begin:
- \tl_if_empty:nF {#4} { \vspace*{#4} }
+ \tl_if_blank:nF {#4} { \vspace*{#4} }
\color{#2}\hrule\@width #1\@height #3
\tl_if_novalue:nF {#5} { \vspace*{#5} }
\group_end:
@@ -730,7 +730,7 @@
\ctex_at_end_preamble:n
{
\bool_if:NF \l__eb_ps_used_bool { \pagestyle{fancy} }
- \tl_if_empty:NF \l_eb_graphics_path_tl
+ \tl_if_blank:VF \l_eb_graphics_path_tl
{ \exp_args:NV \graphicspath \l_eb_graphics_path_tl }
\providecommand{\kaishu}{\itshape}
}
@@ -1214,8 +1214,9 @@
\bool_if:NT \l__eb_toc_entry_hang_bool
{ \contentspush }
{
- \bool_if:NT \l__eb_toc_number_color_bool
+ \bool_if:NTF \l__eb_toc_number_color_bool
{ \textcolor{ctex@toc@number} }
+ { \use:n }
{ \thecontentslabel }
\tl_use:c { l__eb_toc_#1_after_tl }
}
@@ -1990,7 +1991,7 @@
}
{ \cs_set_eq:NN \cite \citep }
{ \exp_args:NV \bibliographystyle \l__eb_bib_otherstyle_tl }
- \tl_if_empty:NF \l__eb_bib_cite_style_tl
+ \tl_if_blank:VF \l__eb_bib_cite_style_tl
{ \exp_args:NV \setcitestyle \l__eb_bib_cite_style_tl }
\NewDocumentCommand{\printbibliography}{st+o}
{
@@ -2023,7 +2024,7 @@
{ \eb_put_biblatex:n { style = gb7714-2015 } }
{ \eb_put_biblatex:n { style = gb7714-2015ay } }
{ \eb_put_biblatex:n { style = \l__eb_bib_both_style_tl } }
- \tl_if_empty:NF \l__eb_bib_cite_style_tl
+ \tl_if_blank:VF \l__eb_bib_cite_style_tl
{ \eb_put_biblatex:n { citestyle = \l__eb_bib_cite_style_tl } }
\LoadPackage[backend = biber]{biblatex}
\clist_map_function:NN \l__eb_bib_datafile_clist \addbibresource
@@ -2270,7 +2271,7 @@
}
%</package>
%<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2022/02/14}{1.626}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2022/02/15}{1.628}
{Customization of tcolorbox for easybook}
\cs_set_protected:Npn \addtotcbstyle #1#2