summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/easybook
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-05-17 22:14:39 +0000
committerKarl Berry <karl@freefriends.org>2024-05-17 22:14:39 +0000
commitb12002169e858123f447f31adbf94be95320da9e (patch)
treebb52e5a6a1d2e8cc973fbd7298bf8926e47a9979 /Master/texmf-dist/tex/latex/easybook
parent07c053721b7b247a9ed28f76d275d89d10d1d301 (diff)
easybook (18may24)
git-svn-id: svn://tug.org/texlive/trunk@71280 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/easybook')
-rw-r--r--Master/texmf-dist/tex/latex/easybook/easybase.sty31
-rw-r--r--Master/texmf-dist/tex/latex/easybook/easybook.cls2
-rw-r--r--Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg2
3 files changed, 30 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty
index 27ca556a77e..4cb59fbc3ef 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}[2021/11/15]
\RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2024/05/15}{2024bq}
+\ProvidesExplPackage{easybase}{2024/05/16}{2024br}
{Easily typesetting Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1175,8 +1175,11 @@
{\addtocontents{toc}{\booltrue{bitoc}}}
}
{
- \RemoveFromHook{cmd/CTEX@addtocline/before}[bitoc]
- \RemoveFromHook{cmd/CTEX@addbitocline/before}[bitoc]
+ \IfHookEmptyTF{cmd/CTEX@addtocline/before}{}
+ {
+ \RemoveFromHook{cmd/CTEX@addtocline/before}[bitoc]
+ \RemoveFromHook{cmd/CTEX@addbitocline/before}[bitoc]
+ }
}
},
name .tl_set:N = \l__eb_print_index_name_tl,
@@ -1490,6 +1493,28 @@
}
\AllotPartialExt{lol}{pll}
+\cs_new_protected:Npn \RegisterTitleIfname #1
+ {
+ \clist_map_function:nN {#1}
+ \eb@register@title@ifname
+ }
+\cs_new_protected:Npn \eb@register@title@ifname #1
+ {
+ \AddToHookWithArguments{cmd/addcontentsline/before}[title/ifname/#1]
+ {
+ \str_if_eq:nnT {##1} {#1}
+ {
+ \addtocontents{##1}
+ {\CTEXifname{\CTEX@ifnametrue}{\CTEX@ifnamefalse}}
+ }
+ }
+ \AddToHook{file/\jobname.#1/before}
+ {\cs_set_eq:NN \eb@title@ifname@resume \CTEXifname}
+ \AddToHook{file/\jobname.#1/after}
+ {\cs_set_eq:NN \CTEXifname \eb@title@ifname@resume}
+ }
+\RegisterTitleIfname{toc}
+
\cs_set_eq:NN \eb@ctexsetii \ctex_set:nn
\cs_new_protected:Npn \SetTocStyle #1#2#3
{
diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls
index 5a6abc89ed1..01c8d8d889b 100644
--- a/Master/texmf-dist/tex/latex/easybook/easybook.cls
+++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls
@@ -19,7 +19,7 @@
%%
%% This work has the LPPL maintenance status `maintained'.
\NeedsTeXFormat{LaTeX2e}[2021/11/15]
-\ProvidesExplClass{easybook}{2024/05/15}{2024bq}
+\ProvidesExplClass{easybook}{2024/05/16}{2024br}
{Easily typesetting Chinese theses or books}
\bool_new:N \l__eb_compile_draft_bool
diff --git a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
index 6a0962e704e..d50a264a14e 100644
--- a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
+++ b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
@@ -18,7 +18,7 @@
%% LaTeX version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
-\ProvidesExplFile{eb-tcolorbox.cfg}{2024/05/15}{2024bq}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/05/16}{2024br}
{Customization of tcolorbox for easybook}
\cs_set_protected:Npn \addtotcbstyle #1#2