From 2627fba9e80caf963ea4d00dcda1e1c4513ff3b0 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 19 Jun 2024 03:02:07 +0000 Subject: CTAN sync 202406190301 --- macros/latex/contrib/easybook/README.md | 2 +- macros/latex/contrib/easybook/easybook.dtx | 32 +++++++++++++++-------------- macros/latex/contrib/easybook/easybook.pdf | Bin 628000 -> 628183 bytes macros/latex/contrib/easybook/easybook.tex | 6 +++--- 4 files changed, 21 insertions(+), 19 deletions(-) (limited to 'macros/latex/contrib') diff --git a/macros/latex/contrib/easybook/README.md b/macros/latex/contrib/easybook/README.md index 5397fab4ce..7edbd169d6 100644 --- a/macros/latex/contrib/easybook/README.md +++ b/macros/latex/contrib/easybook/README.md @@ -1,5 +1,5 @@ # `easybook` document class -Easily typesetting Chinese theses or books (v2024ce) +Easily typesetting Chinese theses or books (v2024cf) ## Abstract `easybook` is a pure academic template created based on the `ctexbook` book document class. It also has the functions of `book` and `article` document class. Combined with the general framework design of the theses of many universities in China, providing multiple commands and interfaces allows users to easily customize the theses templates. Its basic macro package `easybase` can also be used with `ctex` and standard document classes. diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx index 2e60e827f9..86d3c17b32 100644 --- a/macros/latex/contrib/easybook/easybook.dtx +++ b/macros/latex/contrib/easybook/easybook.dtx @@ -14,7 +14,7 @@ % This work has the LPPL maintenance status `maintained'. %\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 @@ % %<*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 @@ } % %<*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 diff --git a/macros/latex/contrib/easybook/easybook.pdf b/macros/latex/contrib/easybook/easybook.pdf index c414414369..c97103994c 100644 Binary files a/macros/latex/contrib/easybook/easybook.pdf and b/macros/latex/contrib/easybook/easybook.pdf differ diff --git a/macros/latex/contrib/easybook/easybook.tex b/macros/latex/contrib/easybook/easybook.tex index 3e9e341a87..f44ec2ba80 100644 --- a/macros/latex/contrib/easybook/easybook.tex +++ b/macros/latex/contrib/easybook/easybook.tex @@ -23,8 +23,8 @@ name = easybook, color-scheme = blue, title = EASYBOOK使用手册, - version = v2024ce, - date = 2024/06/16, + version = v2024cf, + date = 2024/06/18, authors = 瞿毅, info = 简便地排版中文学位论文或书籍, email = toquyi@163.com, @@ -294,7 +294,7 @@ $\blacktriangleright$需要注意正确\textbf{编译索引}要增加 \code{-she \newCJKfontfamily[song]\songti{SimSun} \end{ctexexam} \keychoice{font}{noto,times,times*,ebgaramond,libertine,palatino,\fbox{auto}}\dtag - 预置的英文字体相关配置方案如\ref{table:english font} 所示。这些字体已经包含在了 \hologo{TeXLive} 发行版中,所以通常不需要再专门安装。如果您想使用其它英文字体,可以使用 \pkg*{fontspec} 宏包的相关命令进行设置。 + 预置的英文字体相关配置方案如\ref{table:english font} 所示。这些字体已经包含在了 \hologo{TeXLive} 发行版中,所以通常不需要再专门安装。如果您想使用默认的Latin Modern或其它英文字体,可以使用 \code{auto} 选项配合 \pkg*{fontspec} 宏包的相关命令进行设置。 \begin{longtblr} [ caption = 英文字体预设方案, -- cgit v1.2.3