diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/easybook/easybook.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/easybook/easybook.dtx | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/Master/texmf-dist/source/latex/easybook/easybook.dtx b/Master/texmf-dist/source/latex/easybook/easybook.dtx index 14c53c66084..2e023285a00 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/11/12}{1.40P} +\ProvidesExplClass{easybook}{2021/11/16}{1.40Q} {Typeset Chinese theses or books} \bool_set_false:N \l__eb_compile_draft_bool @@ -325,7 +325,7 @@ %<*package> \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2021/11/12}{1.40P} +\ProvidesExplPackage{easybase}{2021/11/16}{1.40Q} {Typeset Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -923,8 +923,7 @@ { \group_begin: \footnotesize - \exp_args:Nx - \setspread{ \fp_use:N \l__eb_spread_footnote_fp } + \setspread{\fp_use:N \l__eb_spread_footnote_fp} \exp_args:NNNo \group_end: \dim_set:Nn \footnotesep { \dim_use:N \box_ht:N \strutbox } \bool_if:NT \l__eb_chap_counter_withpart_bool @@ -1279,7 +1278,7 @@ lolskip .skip_set:N = \eb@toc@lolskip, lolskip .initial:n = 10pt, main-voffset .skip_set:N = \l__eb_toc_main_voffset_skip, - main-voffset .initial:n = \bool_if:NTF \l__eb_class_book_bool { 1pc } { 0.35pc }, + main-voffset .initial:n = \bool_if:NTF \l__eb_class_book_bool { 1pc } { 0.2pc }, line-align .bool_set:N = \l__eb_toc_line_align_bool, line-align .default:n = true, line-align .initial:n = true, @@ -1332,7 +1331,7 @@ chapter/tocindent = 0em, chapter/tocrule = \tocrule{$\cdot$}[\bfseries], chapter/tocline = \CTEXnumberline{#1}#2, - section/tocformat = \addvspace{0.35pc}\bool_if:NF \l__eb_class_book_bool { \sffamily }, + section/tocformat = \addvspace{0.2pc}\bool_if:NF \l__eb_class_book_bool { \sffamily }, section/tocindent = \bool_if:NTF \l__eb_class_book_bool { 1.5em } { 0em }, section/tocrule = { @@ -1341,7 +1340,7 @@ { \tocrule{$\cdot$}[\bfseries] } }, section/tocline = \CTEXnumberline{#1}#2, - subsection/tocformat = \addvspace{0.35pc}, + subsection/tocformat = \addvspace{0.2pc}, subsection/tocindent = \bool_if:NTF \l__eb_class_book_bool { 3.8em } { 1.4em }, subsection/tocrule = \tocrule{$\cdot$}, subsection/tocline = \CTEXnumberline{#1}#2, @@ -1467,10 +1466,7 @@ \eb_appto_cmd:Nn \@chapter { \skip_if_eq:nnF { \eb@toc@lolskip } { \c_zero_skip } - { - \addtocontents{lol} - {\protect\addvspace{\skip_use:N \eb@toc@lolskip}} - } + { \addtocontents{lol}{\protect\addvspace{\skip_use:N \eb@toc@lolskip}} } } } @@ -1721,7 +1717,7 @@ \ctex_define:nn { spread } { line .code:n = \AfterPreamble{\setspread{#1}}, - line .initial:n = 1.3, + line .initial:n = 1.354, table .fp_set:N = \l__eb_spread_table_fp, table .initial:n = 1.2, math .fp_set:N = \l__eb_spread_math_fp, @@ -1769,10 +1765,7 @@ \SetTblrInner{stretch = \fp_use:N \l__eb_spread_table_fp} }{} \eb_at_begin_environment:nn { tabular,tabularx } - { - \exp_args:Nx - \setspread { \fp_use:N \l__eb_spread_table_fp } - } + { \setspread{\fp_use:N \l__eb_spread_table_fp} } \bool_if:NF \l__eb_float_page_bool { @@ -1799,9 +1792,9 @@ \tl_gset:Nn \ULthickness { \l__eb_rule_width_dim } \DeclareGraphicsExtensions{.pdf,.png,.jpg,.eps,.tif} -\cs_new_protected:Npn \hangpara #1#2 +\cs_set_protected:Npn \hangpara #1#2 { \hangindent #1\hangafter #2\noindent\ignorespaces } -\NewDocumentEnvironment{hangparas}{mm+b} +\DeclareDocumentEnvironment{hangparas}{mm+b} { \dim_zero:N \parindent \everypar{\hangpara{#1}{#2}}#3\par @@ -1984,8 +1977,8 @@ } \ctex_set:nn { thmset } { - spaceabove = 0.75ex plus .1ex, - spacebelow = 0.75ex plus .1ex, + spaceabove = 0ex plus .1ex, + spacebelow = 0ex plus .1ex, headindent = 0em, headfont = \color{ctex@emph}\sffamily, postheadspace = 1em, @@ -2401,7 +2394,7 @@ } %</package> %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2021/11/12}{1.40P} +\ProvidesExplFile{eb-tcolorbox.cfg}{2021/11/16}{1.40Q} {Customization of tcolorbox for easybook} \tl_gset:Nn \eb@tc@line@skip { 0.5\baselineskip } |