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/source/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/source/latex/easybook')
-rw-r--r-- | Master/texmf-dist/source/latex/easybook/easybook.dtx | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/latex/easybook/easybook.dtx b/Master/texmf-dist/source/latex/easybook/easybook.dtx index b204b5ad2ea..3d591c5d48c 100644 --- a/Master/texmf-dist/source/latex/easybook/easybook.dtx +++ b/Master/texmf-dist/source/latex/easybook/easybook.dtx @@ -14,7 +14,7 @@ % This work has the LPPL maintenance status `maintained'. %<class|package>\NeedsTeXFormat{LaTeX2e}[2021/11/15] %<*class> -\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 @@ -302,7 +302,7 @@ %</class> %<*package> \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 } @@ -2430,9 +2430,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 } @@ -2475,7 +2479,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 @@ -2719,7 +2723,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} @@ -2727,7 +2731,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 @@ -2802,7 +2806,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 } { @@ -2815,7 +2819,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 @@ -2847,7 +2851,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 @@ -2996,7 +3000,7 @@ } %</package> %<*tcolorbox> -\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 |