diff options
author | Karl Berry <karl@freefriends.org> | 2024-06-19 19:38:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-06-19 19:38:18 +0000 |
commit | 3f7abd3bfc039f52d503b59dc21aa024abc53cc4 (patch) | |
tree | b99392d5f92003f42112b1319080497ef941fe9c /Master/texmf-dist/source | |
parent | 521d3c7087db50cb2cf6ce67745755522f000a39 (diff) |
easybook (19jun24)
git-svn-id: svn://tug.org/texlive/trunk@71566 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/easybook/easybook.dtx | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/Master/texmf-dist/source/latex/easybook/easybook.dtx b/Master/texmf-dist/source/latex/easybook/easybook.dtx index 2e60e827f9f..86d3c17b322 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|package>\NeedsTeXFormat{LaTeX2e}[2021/11/15] %<*class> -\ProvidesExplClass{easybook}{2024/06/16}{2024ce} +\ProvidesExplClass{easybook}{2024/06/18}{2024cf} {Easily typesetting Chinese theses or books} \bool_new:N \l__eb_compile_draft_bool @@ -89,13 +89,13 @@ { main,sans,mono,CJKmain,CJKsans,CJKmono } { \exp_args:Nc \RenewDocumentCommand { set#1font }{O{}mO{}} - {\use:c { eb_set#1font:nn } {##2} {##1,##3}} + {\use:c { eb_set#1font:nn } {##2} { ##1,##3 }} } \RenewDocumentCommand{\newCJKfontfamily}{omO{}mO{}} { \tl_set:Nx \l_tmpa_tl { \tl_if_novalue:nTF {#1} { \cs_to_str:N #2 } {#1} } \cs_new_protected:Npx #2 { \eb_switch_family:n { \l_tmpa_tl } } - \eb_set_family:xnn { \l_tmpa_tl } {#3,#5} {#4} + \eb_set_family:xnn { \l_tmpa_tl } { #3,#5 } {#4} } \cs_new_protected:Npn \eb@font@load@noto @@ -261,8 +261,8 @@ { \par\nobreak\vskip 1.5pc } { \hspace{1em} } }, - beforeskip = -1.5ex, - afterskip = 4ex + beforeskip = 0pt, + afterskip = 25pt }, section = { @@ -300,7 +300,7 @@ %</class> %<*package> \RequirePackage{etoolbox} -\ProvidesExplPackage{easybase}{2024/06/16}{2024ce} +\ProvidesExplPackage{easybase}{2024/06/18}{2024cf} {Easily typesetting Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -375,7 +375,7 @@ \cs_new_protected:Npn \ebloadpackage #1 { \int_compare:nTF { \clist_count:n {#1} <= 1 } - { \RequirePackage } + { \RequirePackage{#1} } { \clist_map_inline:nn {#1} { \eb_match_load_package:n {##1} } @@ -558,7 +558,15 @@ tagform .code:n = \eb_assign_tagform:n {#1}, tagform .initial:n = { (,) }, brackets .meta:n = { tagform = {#1} }, - figurepath .tl_set:N = \l_eb_graphics_path_tl + figurepath .code:n = + { + \tl_if_blank:nF {#1} + { + \regex_match:nnTF { \cB. } {#1} + { \graphicspath{#1} } + { \graphicspath{{#1}} } + } + } } \includepdfset{fitpaper = true} @@ -728,12 +736,6 @@ \ctex_at_end_preamble:n { \bool_if:NF \l__eb_ps_used_bool { \pagestyle{fancy} } - \tl_if_blank:VF \l_eb_graphics_path_tl - { - \regex_match:nVTF { \cB. } \l_eb_graphics_path_tl - { \exp_args:NV \graphicspath \l_eb_graphics_path_tl } - { \exp_args:Nx \graphicspath { {\l_eb_graphics_path_tl} } } - } \providecommand{\kaishu}{\itshape} } @@ -2623,7 +2625,7 @@ } %</package> %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2024/06/16}{2024ce} +\ProvidesExplFile{eb-tcolorbox.cfg}{2024/06/18}{2024cf} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \addtotcbstyle #1#2 |