summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-01-18 03:01:29 +0000
committerNorbert Preining <norbert@preining.info>2024-01-18 03:01:29 +0000
commitc4dbe7c982d00abf62e9a8927ecdef11521773a8 (patch)
tree58b814095058ab06b7b49e3ef819293f1e0f9922 /macros/latex/contrib/easybook
parent4fd81a66c82a2ba8787c6ca78bfcc14820e4017c (diff)
CTAN sync 202401180301
Diffstat (limited to 'macros/latex/contrib/easybook')
-rw-r--r--macros/latex/contrib/easybook/easybook.dtx28
-rw-r--r--macros/latex/contrib/easybook/easybook.pdfbin601383 -> 599045 bytes
-rw-r--r--macros/latex/contrib/easybook/easybook.tex18
3 files changed, 16 insertions, 30 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx
index 94cecae2dc..47c8f1d4f2 100644
--- a/macros/latex/contrib/easybook/easybook.dtx
+++ b/macros/latex/contrib/easybook/easybook.dtx
@@ -15,7 +15,7 @@
%<*class>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2024/01/16}{2024I}
+\ProvidesExplClass{easybook}{2024/01/18}{2024J}
{Easily typesetting Chinese theses or books}
\bool_set_false:N \l__eb_compile_draft_bool
@@ -302,7 +302,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2024/01/16}{2024I}
+\ProvidesExplPackage{easybase}{2024/01/18}{2024J}
{Easily typesetting Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1371,7 +1371,6 @@
{ \tl_clear:N \eb@bitoc@title }
{ \tl_set:Nn \eb@bitoc@title {#2} }
}
-\prop_new:N \l__eb_toc_float_label_prop
\cs_new_protected:Npn \eb_toc_start_multi_column_ext:n #1
{
\int_compare:nNnTF { \l__eb_toc_columns_int } > { 1 }
@@ -1424,34 +1423,21 @@
#1 .meta:nn = { ctex/#1 } {##1},
#1/between .tl_set:c = l__eb_toc_#1_between_hook_tl,
#1/tocline .cs_set:cp = { eb@tocline@#1 } ##1##2,
- #1/tocline .initial:n = \listnumberline{#1}##2
+ #1/tocline .initial:n = \listnumberline{##1}##2
}
- \prop_put_from_keyval:Nn \l__eb_toc_float_label_prop
- { #1 = \use:c { eb@tocline@#1 } }
}
\DeclareFloatList{table}{lot}
\DeclareFloatList{figure}{lof}
\DeclareFloatList{lstlisting}{lol}
\cs_gset:Npn \caption@@@addcontentsline #1#2#3#4
{
- \exp_args:Nnnx
\addcontentsline{#1}{#2}
{
- \prop_if_in:NnTF \l__eb_toc_float_label_prop {#2}
- { \prop_item:Nn \l__eb_toc_float_label_prop {#2} }
- { \protect\numberline }
- {#3}{#4}
+ \cs_if_exist_use:cTF { eb@tocline@#2 }
+ { {#2}{#4} }
+ { \protect\numberline{#3}{#4} }
}
}
-\ctex_patch_cmd:Nnn \lst@MakeCaption
- {
- \addcontentsline{lol}{lstlisting}
- {\protect\numberline{\thelstlisting}\lst@@caption}
- }
- {
- \addcontentsline{lol}{lstlisting}
- {\eb@tocline@lstlisting{\thelstlisting}{\lst@@caption}}
- }
\ctex_define:n
{
bicontentsname .tl_set:N = \bicontentsname,
@@ -2348,7 +2334,7 @@
}
%</package>
%<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2024/01/16}{2024I}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/01/18}{2024J}
{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 a0fea3d113..f6999524ac 100644
--- a/macros/latex/contrib/easybook/easybook.pdf
+++ b/macros/latex/contrib/easybook/easybook.pdf
Binary files differ
diff --git a/macros/latex/contrib/easybook/easybook.tex b/macros/latex/contrib/easybook/easybook.tex
index d0df41762e..80069337fe 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 = v2024I,
- date = 2024/01/16,
+ version = v2024J,
+ date = 2024/01/18,
authors = 瞿毅,
info = 简便地排版中文学位论文或书籍,
email = toquyi@163.com,
@@ -813,7 +813,7 @@
\keyval{tocbelow}{距离命令}\dtag
在目录条目下方执行的代码,可以插入垂直距离等命令。
\keyval{tocline}{条目定义}\dtag[\textcolor{red}{\ding{73}}]
- 这个选项在章节标题基础上扩展了浮动环境的题注标题在目录文件中的定义。由于设计的原因,章节标题选项中参数 \code{\#1} 代表标题编号 \cs*{the}\meta{计数器} 对应的计数器名称,而题注标题选项中参数 \code{\#1} 代表标题编号 \cs*{the}\meta{计数器} 的值,章节和题注标题中参数 \code{\#2} 均代表相应标题内容。
+ 这个选项在章节标题基础上扩展了浮动环境的题注标题在目录文件中的定义。章节和题注标题选项中参数 \code{\#1} 代表标题编号 \cs*{the}\meta{计数器} 对应的计数器名称,参数 \code{\#2} 则代表相应标题内容。
\begin{ctexexam}
\ctexset
{
@@ -854,13 +854,13 @@
\SetTocStyle{chapter}{fancy}{tocformat = \color{red}\zihao{3}}
\UseTocStyle{chapter}{fancy}{toc}
\end{ctexexam}
- \command{listnumberline}[\marg{条目名}]
- 在图表等浮动环境的题注目录中插入条目标签,默认标签的名字可以由格式命令 \cs{labelformat} 设置。注意其中 \meta{条目名} 需要用对应名称\textbf{显式指定}。
+ \command{listnumberline}[\marg{计数器名}]
+ 在图表等浮动环境的题注目录中插入条目标签,默认标签的名字可以由格式命令 \cs{labelformat} 设置。其中 \meta{计数器名} 一般与 \meta{条目名} 相同,可以用参数 \code{\#1} 指定或用对应计数器名称显式指定。
\begin{ctexexam}
\ctexset
{
- figure/tocline = \listnumberline{figure}#2,
- lstlisting/tocline = \protect\numberline{代码#1\hspace{1em}}#2
+ lstlisting/tocline = \listnumberline{#1}#2,
+ figure/tocline = \protect\numberline{图\thefigure\hspace{1em}}#2
}
\end{ctexexam}
\command{contentsmargin}[\marg{右边距}]
@@ -1350,9 +1350,9 @@
\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 = 2024I,date = 2024/01/16,simple]
+ \begin{version}[v = 2024J,date = 2024/01/18,simple]
\item 核对依赖宏包的更新改动,优化使用手册的内容细节。
- \item 修复图表题注目录中条目标签编号的计数器值显示错误问题。
+ \item 修复图表等浮动环境题注目录中条目标签编号的计数器值显示错误问题。
\item 新增目录风格定义命令 \cs{SetTocStyle} 和使用命令 \cs{UseTocStyle}。
\end{version}
\end{changelog}