diff options
author | Karl Berry <karl@freefriends.org> | 2021-09-10 21:02:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-09-10 21:02:58 +0000 |
commit | 4fb1439822812931cd8727b02790f8ddcf3e3e1d (patch) | |
tree | bac86fcebb995e508eff826e1170a71f14f86a54 /Master/texmf-dist/source | |
parent | 5d6fff8fbf92d4ec1185bef63a353cefb80762e9 (diff) |
easybook (10sep21)
git-svn-id: svn://tug.org/texlive/trunk@60467 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/easybook/easybook.dtx | 50 |
1 files changed, 21 insertions, 29 deletions
diff --git a/Master/texmf-dist/source/latex/easybook/easybook.dtx b/Master/texmf-dist/source/latex/easybook/easybook.dtx index ee291bcbb18..cd64c2986e6 100644 --- a/Master/texmf-dist/source/latex/easybook/easybook.dtx +++ b/Master/texmf-dist/source/latex/easybook/easybook.dtx @@ -15,7 +15,7 @@ %<*class> \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2021/09/08}{1.3a} +\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.3a} +\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,7 @@ 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 { @@ -1303,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 @@ -2397,7 +2389,7 @@ } %</package> %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2021/09/08}{1.3a} +\ProvidesExplFile{eb-tcolorbox.cfg}{2021/09/10}{1.3c} {Customization of tcolorbox for easybook} \tl_gset:Nn \eb@tc@line@skip { 0.5\baselineskip } |