diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-03 21:46:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-03 21:46:12 +0000 |
commit | c0edec065c4e45697e1690cd6d2472b19d57530a (patch) | |
tree | ad4028491a44756ac11eb0b455ce861d53a7cc88 /Master/texmf-dist/tex/latex | |
parent | c80b59a9a5e2108ff4d4deeaf39d2a812e026bb5 (diff) |
easybook (3feb22)
git-svn-id: svn://tug.org/texlive/trunk@61865 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybase.sty | 29 | ||||
-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, 12 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty index cdb8cd51f63..6ba5fe1498a 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}[2020/10/01] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2022/02/02}{1.60} +\ProvidesExplPackage{easybase}{2022/02/03}{1.61} {Typeset Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -55,16 +55,10 @@ { } { \ctex_patch_failure:N ##1 } } } -\cs_new_protected:Npn \eb_preto_cmd:Nn #1#2 - { - \ctex_preto_cmd:NnnTF #1 { } {#2} - { } { \ctex_patch_failure:N #1 } - } -\cs_new_protected:Npn \eb_appto_cmd:Nn #1#2 - { - \ctex_appto_cmd:NnnTF #1 { } {#2} - { } { \ctex_patch_failure:N #1 } - } +\cs_new_protected:Npn \eb_preto_cmd:nn #1#2 + { \AddToHook{cmd/#1/before}{#2} } +\cs_new_protected:Npn \eb_appto_cmd:nn #1#2 + { \AddToHook{cmd/#1/after}{#2} } \cs_new_protected:Npn \eb_at_begin_environment:nn #1#2 { \eb_seq_map_inline:nn {#1} @@ -449,7 +443,7 @@ \geometry{showframe} } \bool_new:N \l__eb_ps_used_bool -\eb_appto_cmd:Nn \pagestyle { \bool_set_true:N \l__eb_ps_used_bool } +\eb_appto_cmd:nn { pagestyle } { \bool_set_true:N \l__eb_ps_used_bool } \ctex_at_end_preamble:n { \bool_if:NF \l__eb_ps_used_bool { \pagestyle{fancy} } @@ -1192,13 +1186,10 @@ } } } -\cs_if_exist:NT \chapter +\eb_preto_cmd:nn { @chapter } { - \eb_appto_cmd:Nn \@chapter - { - \skip_if_eq:nnF { \eb@toc@lol@skip } { \c_zero_skip } - { \addtocontents{lol}{\protect\addvspace{\skip_use:N \eb@toc@lol@skip}} } - } + \skip_if_eq:nnF { \eb@toc@lol@skip } { \c_zero_skip } + { \addtocontents{lol}{\protect\addvspace{\skip_use:N \eb@toc@lol@skip}} } } \ctex_define:nn { style } @@ -1980,7 +1971,7 @@ \cs_new_protected:Npn \eb_allow_url_break: { - \eb_appto_cmd:Nn \UrlBreaks + \eb_appto_cmd:nn { UrlBreaks } { \UrlOrds \tl_map_function:NN \c__eb_url_break_points_tl \do diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls index 689d966e5e5..5b673cc8a4c 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybook.cls +++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls @@ -20,7 +20,7 @@ %% This work has the LPPL maintenance status `maintained'. \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2022/02/02}{1.60} +\ProvidesExplClass{easybook}{2022/02/03}{1.61} {Typeset Chinese theses or books} \bool_set_false: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 eba94795fe9..33ed6fe8e21 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}{2022/02/02}{1.60} +\ProvidesExplFile{eb-tcolorbox.cfg}{2022/02/03}{1.61} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \addtotcbstyle #1#2 |