diff options
Diffstat (limited to 'macros/latex/contrib/easybook/easybook.dtx')
-rw-r--r-- | macros/latex/contrib/easybook/easybook.dtx | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx index 94cecae2dc..47c8f1d4f2 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/16}{2024I} +\ProvidesExplClass{easybook}{2024/01/18}{2024J} {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/16}{2024I} +\ProvidesExplPackage{easybase}{2024/01/18}{2024J} {Easily typesetting Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -1371,7 +1371,6 @@ { \tl_clear:N \eb@bitoc@title } { \tl_set:Nn \eb@bitoc@title {#2} } } -\prop_new:N \l__eb_toc_float_label_prop \cs_new_protected:Npn \eb_toc_start_multi_column_ext:n #1 { \int_compare:nNnTF { \l__eb_toc_columns_int } > { 1 } @@ -1424,34 +1423,21 @@ #1 .meta:nn = { ctex/#1 } {##1}, #1/between .tl_set:c = l__eb_toc_#1_between_hook_tl, #1/tocline .cs_set:cp = { eb@tocline@#1 } ##1##2, - #1/tocline .initial:n = \listnumberline{#1}##2 + #1/tocline .initial:n = \listnumberline{##1}##2 } - \prop_put_from_keyval:Nn \l__eb_toc_float_label_prop - { #1 = \use:c { eb@tocline@#1 } } } \DeclareFloatList{table}{lot} \DeclareFloatList{figure}{lof} \DeclareFloatList{lstlisting}{lol} \cs_gset:Npn \caption@@@addcontentsline #1#2#3#4 { - \exp_args:Nnnx \addcontentsline{#1}{#2} { - \prop_if_in:NnTF \l__eb_toc_float_label_prop {#2} - { \prop_item:Nn \l__eb_toc_float_label_prop {#2} } - { \protect\numberline } - {#3}{#4} + \cs_if_exist_use:cTF { eb@tocline@#2 } + { {#2}{#4} } + { \protect\numberline{#3}{#4} } } } -\ctex_patch_cmd:Nnn \lst@MakeCaption - { - \addcontentsline{lol}{lstlisting} - {\protect\numberline{\thelstlisting}\lst@@caption} - } - { - \addcontentsline{lol}{lstlisting} - {\eb@tocline@lstlisting{\thelstlisting}{\lst@@caption}} - } \ctex_define:n { bicontentsname .tl_set:N = \bicontentsname, @@ -2348,7 +2334,7 @@ } %</package> %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2024/01/16}{2024I} +\ProvidesExplFile{eb-tcolorbox.cfg}{2024/01/18}{2024J} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \addtotcbstyle #1#2 |