diff options
author | Karl Berry <karl@freefriends.org> | 2024-06-11 20:14:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-06-11 20:14:36 +0000 |
commit | cca9cbe0af6359c8c7ab060f81bc9c60a2e6e1ef (patch) | |
tree | 3b24ac59afdd79ca3645bf3fa8208d14ac6981bc /Master/texmf-dist/source | |
parent | f46e0d0a265a4398f47a930fe6368ac6c3ec8bc8 (diff) |
easybook (11jun24)
git-svn-id: svn://tug.org/texlive/trunk@71484 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/easybook/easybook.dtx | 61 |
1 files changed, 35 insertions, 26 deletions
diff --git a/Master/texmf-dist/source/latex/easybook/easybook.dtx b/Master/texmf-dist/source/latex/easybook/easybook.dtx index 788bb2fa32a..54a42b1c635 100644 --- a/Master/texmf-dist/source/latex/easybook/easybook.dtx +++ b/Master/texmf-dist/source/latex/easybook/easybook.dtx @@ -14,7 +14,7 @@ % This work has the LPPL maintenance status `maintained'. %<*class> \NeedsTeXFormat{LaTeX2e}[2021/11/15] -\ProvidesExplClass{easybook}{2024/06/10}{2024bz} +\ProvidesExplClass{easybook}{2024/06/11}{2024ca} {Easily typesetting Chinese theses or books} \bool_new:N \l__eb_compile_draft_bool @@ -301,7 +301,7 @@ %<*package> \NeedsTeXFormat{LaTeX2e}[2021/11/15] \RequirePackage{etoolbox} -\ProvidesExplPackage{easybase}{2024/06/10}{2024bz} +\ProvidesExplPackage{easybase}{2024/06/11}{2024ca} {Easily typesetting Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -443,7 +443,7 @@ \seq_set_from_clist:Nn \l__eb_module_paths_seq { - tools,font,spread, + tools,font,space, bib,thmt,toc, hdr,float,ref,geo } @@ -1947,14 +1947,14 @@ } \cs_set_eq:NN \addtosubfont \ebaddtofont -\ctex_define:nn { spread } +\ctex_define:nn { space } { - line .code:n = \setspread{#1}, - table .fp_set:N = \l__eb_spread_table_fp, - table .initial:n = 1.2, - math .tl_set:N = \eb@spread@math, - math .initial:n = 1.2, - footnote .code:n = + linespread .code:n = \setspread{#1}, + tabspread .fp_set:N = \l__eb_spread_table_fp, + tabspread .initial:n = 1.2, + mathspread .tl_set:N = \eb@spread@math, + mathspread .initial:n = 1.2, + fntspread .code:n = { \tl_set:Nn \eb@spread@footnote {#1} \group_begin: @@ -1963,20 +1963,20 @@ \exp_args:NNNo \group_end: \dim_set:Nn \footnotesep { \dim_use:N \box_ht:N \strutbox } }, - footnote .initial:n = 1.2, - caption-table .fp_set:N = \l__eb_spread_caption_table_fp, - caption-figure .fp_set:N = \l__eb_spread_caption_figure_fp, - caption-listing .fp_set:N = \l__eb_spread_caption_listing_fp, - caption-every .meta:n = - { - caption-table = {#1},caption-figure = {#1}, - caption-listing = {#1} + fntspread .initial:n = 1.2, + captab-spread .fp_set:N = \l__eb_spread_caption_table_fp, + capfig-spread .fp_set:N = \l__eb_spread_caption_figure_fp, + caplst-spread .fp_set:N = \l__eb_spread_caption_listing_fp, + caption-spread .meta:n = + { + captab-spread = {#1},capfig-spread = {#1}, + caplst-spread = {#1} }, - caption-every .initial:n = 1.2, - every .meta:n = + caption-spread .initial:n = 1.2, + everyspread .meta:n = { - line = {#1},table = {#1},math = {#1}, - caption-every = {#1},footnote = {#1} + linespread = {#1},tabspread = {#1},mathspread = {#1}, + caption-spread = {#1},fntspread = {#1} }, abovedisplayskip .code:n = { \AfterPreamble{\skip_set:Nn \abovedisplayskip {#1}} }, @@ -1990,13 +1990,19 @@ } }, belowdisplayskip .initial:n = 0.5ex plus .1ex minus .1ex, - unknown .code:n = \eb_msg_deprecated_option:n { spread } + unknown .code:n = \eb_msg_deprecated_option:n { space } } \tl_if_eq:NnT \l__ctex_scheme_tl { chinese } { \fp_compare:nNnTF { \l__ctex_line_spread_fp } = { 1.3 } - { \ctex_set:nn { spread } { line = 1.354,table = 1.354 } } - { \ctex_set:nn { spread } { line = \fp_use:N \l__ctex_line_spread_fp } } + { + \ctex_set:nn { space } + { linespread = 1.354,tabspread = 1.354 } + } + { + \ctex_set:nn { space } + { linespread = \fp_use:N \l__ctex_line_spread_fp } + } } \AfterPreamble{\skip_set:Nn \abovedisplayshortskip { 0ex plus .1ex }} @@ -2368,6 +2374,9 @@ \tl_gset:Nn \blx@default@theheading { bibintoc } \defbibheading{bibintoc}[\bibname]{\eb_biber_toc_title:n {##1}} \skip_zero:N \bibitemsep + \setcounter{biburlucpenalty}{1} + \setcounter{biburllcpenalty}{1} + \setcounter{biburlnumpenalty}{1} } \eb_at_end_preamble:n { @@ -2596,7 +2605,7 @@ } %</package> %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2024/06/10}{2024bz} +\ProvidesExplFile{eb-tcolorbox.cfg}{2024/06/11}{2024ca} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \addtotcbstyle #1#2 |