diff options
author | Norbert Preining <norbert@preining.info> | 2024-02-17 03:01:13 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-02-17 03:01:13 +0000 |
commit | 8886ad587a305595ce543a74b0fc779f0732a6e9 (patch) | |
tree | 25f6e576a52343cad4a3b56b2f669e09432211b8 /macros/latex/contrib/easybook | |
parent | a6e02d45ad0d10cfc3256fc91abe80d6228325a4 (diff) |
CTAN sync 202402170301
Diffstat (limited to 'macros/latex/contrib/easybook')
-rw-r--r-- | macros/latex/contrib/easybook/easybook.dtx | 17 | ||||
-rw-r--r-- | macros/latex/contrib/easybook/easybook.pdf | bin | 594429 -> 598997 bytes | |||
-rw-r--r-- | macros/latex/contrib/easybook/easybook.tex | 13 |
3 files changed, 24 insertions, 6 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx index 16f5b792c0..a69d7de48b 100644 --- a/macros/latex/contrib/easybook/easybook.dtx +++ b/macros/latex/contrib/easybook/easybook.dtx @@ -15,7 +15,7 @@ %<*class> \NeedsTeXFormat{LaTeX2e}[2021/11/15] \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2024/02/12}{2024ac} +\ProvidesExplClass{easybook}{2024/02/16}{2024ad} {Easily typesetting Chinese theses or books} \bool_set_false:N \l__eb_compile_draft_bool @@ -297,7 +297,7 @@ %<*package> \NeedsTeXFormat{LaTeX2e}[2021/11/15] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2024/02/12}{2024ac} +\ProvidesExplPackage{easybase}{2024/02/16}{2024ad} {Easily typesetting Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -1831,12 +1831,23 @@ \everymath{\displaystyle} \DeclareGraphicsExtensions{.pdf,.png,.jpg,.eps,.tif} +\dim_new:N \hangwd \cs_set_protected:Npn \hangpara #1#2 { \dim_set:Nn \hangindent {#1} \int_set:Nn \hangafter {#2} \noindent\ignorespaces } +\NewDocumentCommand{\hangfrom}{sO{\hangwd}mO{1}} + { + \hbox_set:Nn \l_tmpa_box {#3} + \dim_set:Nn \hangwd { \box_wd:N \l_tmpa_box } + \hangpara{#2}{#4} + \IfBooleanTF{#1} + {\hbox_to_wd:nn {#2} { }} + {\box_use_drop:N \l_tmpa_box} + \ignorespaces + } \DeclareDocumentEnvironment{hangparas}{mm+b} { \dim_zero:N \parindent @@ -2341,7 +2352,7 @@ } %</package> %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2024/02/12}{2024ac} +\ProvidesExplFile{eb-tcolorbox.cfg}{2024/02/16}{2024ad} {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 Binary files differindex 1cb2868c87..dbddf2a96c 100644 --- a/macros/latex/contrib/easybook/easybook.pdf +++ b/macros/latex/contrib/easybook/easybook.pdf diff --git a/macros/latex/contrib/easybook/easybook.tex b/macros/latex/contrib/easybook/easybook.tex index a1ddad3ca6..3a725ee03c 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 = v2024ac, - date = 2024/02/12, + version = v2024ad, + date = 2024/02/16, authors = 瞿毅, info = 简便地排版中文学位论文或书籍, email = toquyi@163.com, @@ -1083,6 +1083,12 @@ \begin{commands} \command{hangpara}[\marg{缩进长度}\marg{缩进开始行数}] 悬挂缩进命令 \cs{hangpara} 使其后的一个段落保持悬挂缩进。参数与 \env{hangparas} 环境相同,不过只有一个段落。\meta{缩进长度} 可以是带单位的数值或由文本长度测定命令 \cs{widthof} 提供。 + \command{hangfrom}[\sarg\oarg{缩进长度}\marg{悬挂内容}\oarg{缩进开始行数}]\newtag% + 指定首行的 \meta{悬挂内容},其后一个段落保持悬挂缩进。\meta{缩进长度} 默认为 \meta{悬挂内容} 文本长度 \cs{hangwd} 的值,支持数学表达式。\meta{缩进开始行数} 默认为 \code{1}。如果是带有星号参数的命令,则首行不输出 \meta{悬挂内容},以等于 \meta{缩进长度} 长度的空白代替。 + \begin{ctexexam} + \hangfrom[\hangwd + 1em]{悬挂标签\hspace{0.5em}}[1] + \hangfrom*[3em]{} + \end{ctexexam} \end{commands} \begin{environments} @@ -1352,12 +1358,13 @@ \shortversion{v = 1.638,date = 2022/03/04,changes = 增加目录条目样式选项注册命令 \cs{RegisterTocName}。} \shortversion{v = 1.644,date = 2022/03/10,changes = 增加浮动环境目录声明命令 \cs{DeclareFloatList} 配合 \pkg*{caption} 宏包。} \shortversion{v = 1.682,date = 2022/05/01,changes = 将迷你页判断命令 \cs{notminipage} 改为被保护命令兼容 \pkg*{circledtext} 宏包。} - \begin{version}[v = 2024ac,date = 2024/02/12,simple] + \begin{version}[v = 2024ad,date = 2024/02/16,simple] \item 核对依赖宏包的更新改动,优化使用手册的内容细节。 \item 修复图表等浮动环境题注目录中条目标签编号的计数器值显示错误问题。 \item 修复附录命令 \cs{appendix} 的可选参数设置英文目录中条目名字和编号失效的问题。 \item 新增目录风格定义命令 \cs{SetTocStyle} 和使用命令 \cs{UseTocStyle}。 \item 新增脚注段落文本格式定义命令 \cs{deffntpara} 和脚注间距离选项 \option{footnotesep}。 + \item 新增悬挂缩进命令 \cs{hangfrom}。 \end{version} \end{changelog} \nocite{*} |