diff options
author | Karl Berry <karl@freefriends.org> | 2024-12-14 21:19:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-12-14 21:19:30 +0000 |
commit | 4a96a48a03ab39767af03fd17799d1b2d6d905f0 (patch) | |
tree | 1ba6c60b6f74914ee9f61ca1ffc511f92b3173c8 /Master/texmf-dist/tex/latex/easybook | |
parent | 683c1d0e7052646d72d80acab71d1b1c925ad50d (diff) |
easybook (14dec24)
git-svn-id: svn://tug.org/texlive/trunk@73125 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/easybook')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybase.sty | 20 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybook.cls | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg | 2 |
3 files changed, 14 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty index 30c330fd4e6..69ce1396708 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/12/12}{2024ht} +\ProvidesExplPackage{easybase}{2024/12/14}{2024hu} {Easily typesetting Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -2148,9 +2148,13 @@ } \eb@declaretheorem@save[style = default,##1,##3]{##2} \tl_gset:cV { g__eb_thmt_##2_parent_tl } \thmt@parent + \providebool{thmt@isstarred@##2} + \ifbool{thmt@isstarred} + {\booltrue{thmt@isstarred@##2}} + {\boolfalse{thmt@isstarred@##2}} \settheoremtocline{##2} { - \listnumberline{##2} + \thmtifname{\listnumberline{##2}}{} \thmtname\thmtifnote{~(\thmtnote)}{} } \cs_gset:cpn { thmt@contentsline@##2 } @@ -2193,7 +2197,7 @@ \def\thmtenvname{\thmt@envname} \def\thmtnote{\thmt@shortoptarg} \def\thmtformatoptarg ##1 {##1} - \def\thmtifname ##1##2 {\ifbool{thmt@isstarred}{##2}{##1}} + \def\thmtifname ##1##2 {\ifbool{thmt@isstarred@\thmt@envname}{##2}{##1}} \def\thmtifnote ##1##2 { \tl_if_empty:NTF \thmt@shortoptarg @@ -2437,7 +2441,7 @@ \lstset{style = lst-latex} \lstloadlanguages{C,C++,Java,Python,Matlab} -\clist_new:N \l__eb_hyperref_clist +\clist_new:N \l__eb_hyperref_options_clist \cs_new_protected:Npn \eb_set_hyperref:n #1 { \IfPackageLoadedTF{hyperref} @@ -2445,7 +2449,7 @@ {\eb_put_hyperref:n}{#1} } \cs_new_protected:Npn \eb_put_hyperref:n #1 - { \clist_put_right:Nn \l__eb_hyperref_clist {#1} } + { \clist_put_right:Nn \l__eb_hyperref_options_clist {#1} } \cs_new_protected:Npn \eb_define_link_color:nnn #1#2#3 { \definecolorset{HTML}{ctex@}{}{link,#1;url,#2;cite,#3} } \cs_new_protected:Npn \eb_define_theme_color:nnn #1#2#3 @@ -2520,7 +2524,7 @@ } \cs_new_protected:Npn \eb_link_colors_set: { \eb_set_hyperref:n { colorlinks } } -\cs_new_protected:Npn \eb_link_toc_put:n #1 +\cs_new_protected:Npn \eb_link_toc_set:n #1 { \eb_set_hyperref:n { linktoc = #1 } } \ctex_define:nn { ref } { @@ -2533,7 +2537,7 @@ linktype .initial:n = edge, linktoc .choice:, linktoc .value_required:n = true, - linktoc/unknown .code:n = \eb_link_toc_put:n {#1}, + linktoc/unknown .code:n = \eb_link_toc_set:n {#1}, linktoc .initial:n = all, unknown .code:n = \eb_set_hyperref:x { \eb_unknown_kv_handle: }, unknown .default:V = \c_novalue_tl @@ -2565,7 +2569,7 @@ citecolor = ctex@cite,citebordercolor = ctex@cite } \hypersetup{bookmarksnumbered = true} - \exp_args:NV \hypersetup \l__eb_hyperref_clist + \exp_args:NV \hypersetup \l__eb_hyperref_options_clist } \cs_set_eq:NN \eb@labelformat@save \labelformat diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls index 736678e5bcb..275787f03ce 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/12/12}{2024ht} +\ProvidesExplClass{easybook}{2024/12/14}{2024hu} {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 44da9958ea5..bf6c90bafed 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/12/12}{2024ht} +\ProvidesExplFile{eb-tcolorbox.cfg}{2024/12/14}{2024hu} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \addtotcbstyle #1#2 |