diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybase.sty | 40 | ||||
-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, 20 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty index b6669fcfb7b..2dae33aa53b 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/09}{2024bm} +\ProvidesExplPackage{easybase}{2024/05/10}{2024bn} {Easily typesetting Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -164,7 +164,7 @@ { tools,font,spread, bib,thmt,toc, - hdr,ref,geo,float + hdr,float,ref,geo } \seq_map_inline:Nn \l__eb_module_paths_seq { @@ -178,7 +178,7 @@ {\ctex_set:n {#2}} } \bool_until_do:nn - { \int_compare_p:nNn { \seq_count:N \l__eb_module_paths_seq } < { 8 } } + { \int_compare_p:nNn { \seq_count:N \l__eb_module_paths_seq } < { 9 } } { \seq_pop_right:NN \l__eb_module_paths_seq \l_tmpa_tl } \seq_map_inline:Nn \l__eb_module_paths_seq { @@ -1358,6 +1358,14 @@ tocend = . } } +\seq_new:N \l__eb_toc_every_include_name_seq +\cs_new_protected:Npn \ExcludeEveryTocName #1 + { \seq_remove_all:Nn \l__eb_toc_every_include_name_seq {#1} } +\cs_new_protected:Npn \IncludeEveryTocName #1 + { + \seq_put_right:Nn \l__eb_toc_every_include_name_seq {#1} + \seq_remove_duplicates:N \l__eb_toc_every_include_name_seq + } \NewDocumentCommand{\RegisterTocName}{sm} { \IfBooleanT{#1} @@ -1370,6 +1378,7 @@ [\tl_use:c { l__eb_toc_#2_end_tl }] } } + \IncludeEveryTocName{#2} \eb_toc_format_define:n {#2} \eb_toc_format_initial:nn {#1} {#2} \tl_clear:N \l__eb_toc_tmpa_tl @@ -1377,34 +1386,21 @@ } \seq_map_function:NN \c__ctex_headings_seq \RegisterTocName -\eb_seq_map_inline:nn - { - tocformat,tocformat+,tocformat~+,tocformat*, - toclabel,tocindent,tocrule,tocline,tocafter,between, - tocbelow,tocbegin,tocsep,tocend - } - { - \ctex_define:n - { - float/#1 .meta:n = - { - figure/#1 = {##1},table/#1 = {##1}, - lstlisting/#1 = {##1} - } - } - } -\eb_seq_map_inline:nn - { tocafter,tocindent,tocrule } +\ctex_define:n { float/unknown .code:n = \eb_msg_deprecated_option:n { float } } +\cs_new_protected:Npn \RegisterEveryTocOption #1 { \ctex_define:nn { toc } { #1-every .code:n = { - \seq_map_inline:Nn \c__ctex_headings_seq + \seq_map_inline:Nn \l__eb_toc_every_include_name_seq { \ctex_set:n { ####1/#1 = {##1} } } } } } +\clist_map_function:nN + { tocafter,tocindent,tocrule } + \RegisterEveryTocOption \NewDocumentCommand{\tocrule}{st-O{0.7pc}d()mO{}} { \normalsize\normalfont diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls index 3487f2d1bf8..d19d6926cc9 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/09}{2024bm} +\ProvidesExplClass{easybook}{2024/05/10}{2024bn} {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 21a085d94be..f324dad2a02 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/09}{2024bm} +\ProvidesExplFile{eb-tcolorbox.cfg}{2024/05/10}{2024bn} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \addtotcbstyle #1#2 |