From bbb409a0db8bab4e45fd1fa3e7f269a855296bbc Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 11 Sep 2021 03:02:10 +0000 Subject: CTAN sync 202109110302 --- macros/latex/contrib/easybook/easybook.dtx | 49 ++++++++++++------------------ 1 file changed, 20 insertions(+), 29 deletions(-) (limited to 'macros/latex/contrib/easybook/easybook.dtx') diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx index 9c1a7d09c8..cd64c2986e 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}{2021/09/08}{1.3b} +\ProvidesExplClass{easybook}{2021/09/10}{1.3c} {Typeset Chinese theses or books} \bool_set_false:N \l__eb_compile_draft_bool @@ -297,7 +297,7 @@ %<*package> \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2021/09/08}{1.3b} +\ProvidesExplPackage{easybase}{2021/09/10}{1.3c} {Typeset Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -1169,6 +1169,21 @@ } } } +\eb_clist_map_inline:nn + { numsep,indent,rule } + { + \ctex_define:nn { tocset } + { + #1-all .meta:n = + { + part/#1 = ##1, + chapter/#1 = ##1, + section/#1 = ##1, + subsection/#1 = ##1, + list/#1 = ##1 + } + } + } \cs_set_eq:NN \ctexnumberline \CTEXnumberline \cs_set:Npn \CTEXnumberline #1 @@ -1203,31 +1218,6 @@ hang .default:n = true, hang .initial:n = false, - numsep-all .meta:n = - { - part/numsep = #1, - chapter/numsep = #1, - section/numsep = #1, - subsection/numsep = #1, - list/numsep = #1 - }, - numsep-all .initial:n = 1em, - indent-all .meta:n = - { - part/indent = #1, - chapter/indent = #1, - section/indent = #1, - subsection/indent = #1, - list/indent = #1 - }, - rule-all .meta:n = - { - part/rule = #1, - chapter/rule = #1, - section/rule = #1, - subsection/rule = #1, - list/rule = #1 - }, unknown .code:n = \eb_msg_unknown_option:n { tocset } } \ctex_set:n @@ -1304,7 +1294,8 @@ \lstlistingname\space\thelstlisting \notbool{eb@titletoc@hang@fix} {\hspace{\eb@toc@lstlisting@numsep}}{} - } + }, + numsep-all = 1em } \prop_new:N \l__eb_list_label_name_prop @@ -2398,7 +2389,7 @@ } % %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2021/09/08}{1.3b} +\ProvidesExplFile{eb-tcolorbox.cfg}{2021/09/10}{1.3c} {Customization of tcolorbox for easybook} \tl_gset:Nn \eb@tc@line@skip { 0.5\baselineskip } -- cgit v1.2.3