diff options
author | Norbert Preining <norbert@preining.info> | 2024-01-20 03:01:12 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-01-20 03:01:12 +0000 |
commit | 2fd07558ccd8d3c8e354f8ea0b342ef7ac1e87a3 (patch) | |
tree | dfa08a4c648cc5f7b4c8e5a55fcae40546d96d7d /macros/latex/contrib/easybook/easybook.dtx | |
parent | 849336321485cc972b028c23f8276fa6bdf4818e (diff) |
CTAN sync 202401200301
Diffstat (limited to 'macros/latex/contrib/easybook/easybook.dtx')
-rw-r--r-- | macros/latex/contrib/easybook/easybook.dtx | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx index a8dad994d6..0889094f34 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}{2024/01/18}{2024K} +\ProvidesExplClass{easybook}{2024/01/19}{2024L} {Easily typesetting Chinese theses or books} \bool_set_false:N \l__eb_compile_draft_bool @@ -302,7 +302,7 @@ %<*package> \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2024/01/18}{2024K} +\ProvidesExplPackage{easybase}{2024/01/19}{2024L} {Easily typesetting Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -323,12 +323,6 @@ \seq_set_from_clist:Nn \l_tmpa_seq {#1} \seq_map_inline:Nn \l_tmpa_seq {#2} } -\cs_new_protected:Npn \eb_char_patch_cmd:Nnn #1#2#3 - { - \ExplSyntaxOn\makeatletter - \eb_patch_cmd:Nnn {#1} {#2} {#3} - \ExplSyntaxOff\makeatother - } \cs_new_protected:Npn \eb_patch_cmd:Nnn #1#2#3 { \ctex_patch_cmd_once:NnnnTF #1 { } {#2} {#3} @@ -1670,14 +1664,9 @@ {O{Appendix\space}D(){\Alph{chapter}}} { \ctex_assign_heading_name:nn { biappendix } {#1} - \int_compare:nNnTF { \c@chapter } > { 0 } + \bool_if:NTF \l__eb_class_mode_book_bool { - \eb_char_patch_cmd:Nnn \CTEX@addbitocline - { - \def\CTEX@prechapter{\CTEX@prebichapter} - \def\CTEX@thechapter{\CTEX@bichapter@number} - \def\CTEX@postchapter{\CTEX@postbichapter} - } + \eb_preto_cmd:nn { eb@before@addbitoc@hook } { \def\CTEX@prechapter{\CTEX@prebiappendix} \def\CTEX@thechapter{#2} @@ -2334,7 +2323,7 @@ } %</package> %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2024/01/18}{2024K} +\ProvidesExplFile{eb-tcolorbox.cfg}{2024/01/19}{2024L} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \addtotcbstyle #1#2 |