texlive[69930] branches/branch2023.final/Master/texmf-dist: easybook

commits+karl at tug.org commits+karl at tug.org
Fri Feb 16 22:19:27 CET 2024


Revision: 69930
          https://tug.org/svn/texlive?view=revision&revision=69930
Author:   karl
Date:     2024-02-16 22:19:27 +0100 (Fri, 16 Feb 2024)
Log Message:
-----------
easybook (branch) (15feb24)

Modified Paths:
--------------
    branches/branch2023.final/Master/texmf-dist/doc/latex/easybook/easybook.pdf
    branches/branch2023.final/Master/texmf-dist/doc/latex/easybook/easybook.tex
    branches/branch2023.final/Master/texmf-dist/source/latex/easybook/easybook.dtx
    branches/branch2023.final/Master/texmf-dist/tex/latex/easybook/easybase.sty
    branches/branch2023.final/Master/texmf-dist/tex/latex/easybook/easybook.cls
    branches/branch2023.final/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg

Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/easybook/easybook.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2023.final/Master/texmf-dist/doc/latex/easybook/easybook.tex
===================================================================
--- branches/branch2023.final/Master/texmf-dist/doc/latex/easybook/easybook.tex	2024-02-16 21:19:03 UTC (rev 69929)
+++ branches/branch2023.final/Master/texmf-dist/doc/latex/easybook/easybook.tex	2024-02-16 21:19:27 UTC (rev 69930)
@@ -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 at 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{*}

Modified: branches/branch2023.final/Master/texmf-dist/source/latex/easybook/easybook.dtx
===================================================================
--- branches/branch2023.final/Master/texmf-dist/source/latex/easybook/easybook.dtx	2024-02-16 21:19:03 UTC (rev 69929)
+++ branches/branch2023.final/Master/texmf-dist/source/latex/easybook/easybook.dtx	2024-02-16 21:19:27 UTC (rev 69930)
@@ -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,6 +1831,7 @@
 \everymath{\displaystyle}
 \DeclareGraphicsExtensions{.pdf,.png,.jpg,.eps,.tif}
 
+\dim_new:N \hangwd
 \cs_set_protected:Npn \hangpara #1#2
   {
     \dim_set:Nn \hangindent {#1}
@@ -1837,6 +1838,16 @@
     \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

Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/easybook/easybase.sty
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/easybook/easybase.sty	2024-02-16 21:19:03 UTC (rev 69929)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/easybook/easybase.sty	2024-02-16 21:19:27 UTC (rev 69930)
@@ -20,7 +20,7 @@
 %% This work has the LPPL maintenance status `maintained'.
 \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 }
@@ -1554,6 +1554,7 @@
 \everymath{\displaystyle}
 \DeclareGraphicsExtensions{.pdf,.png,.jpg,.eps,.tif}
 
+\dim_new:N \hangwd
 \cs_set_protected:Npn \hangpara #1#2
   {
     \dim_set:Nn \hangindent {#1}
@@ -1560,6 +1561,16 @@
     \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

Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/easybook/easybook.cls
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/easybook/easybook.cls	2024-02-16 21:19:03 UTC (rev 69929)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/easybook/easybook.cls	2024-02-16 21:19:27 UTC (rev 69930)
@@ -20,7 +20,7 @@
 %% This work has the LPPL maintenance status `maintained'.
 \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

Modified: branches/branch2023.final/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
===================================================================
--- branches/branch2023.final/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg	2024-02-16 21:19:03 UTC (rev 69929)
+++ branches/branch2023.final/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg	2024-02-16 21:19:27 UTC (rev 69930)
@@ -18,7 +18,7 @@
 %% LaTeX version 2005/12/01 or later.
 %% 
 %% This work has the LPPL maintenance status `maintained'.
-\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



More information about the tex-live-commits mailing list.