summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-06-26 03:00:56 +0000
committerNorbert Preining <norbert@preining.info>2021-06-26 03:00:56 +0000
commit3d1055e1e00548f29b9d4ba0a79c717b9b6b2ae3 (patch)
tree81d89c6859163c396aa9344ddb05c271e9ab760c /macros/latex/contrib/easybook
parent644c44d0c55a2960e53623b0c19448c1b8015d1e (diff)
CTAN sync 202106260300
Diffstat (limited to 'macros/latex/contrib/easybook')
-rw-r--r--macros/latex/contrib/easybook/easybook.dtx78
-rw-r--r--macros/latex/contrib/easybook/easybook.pdfbin530358 -> 530458 bytes
2 files changed, 39 insertions, 39 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx
index 57707bba37..769e0b6abe 100644
--- a/macros/latex/contrib/easybook/easybook.dtx
+++ b/macros/latex/contrib/easybook/easybook.dtx
@@ -28,7 +28,7 @@
%
% \title{\sffamily easybook 文档类手册}
% \author{瞿毅}
-% \date{2021/06/23\hskip\ccwd\relax v1.26h\thanks{\url{https://gitee.com/texl3/easybook}}}
+% \date{2021/06/25\hskip\ccwd\relax v1.26j\thanks{\url{https://gitee.com/texl3/easybook}}}
%
% \maketitle
% \begin{abstract}
@@ -157,7 +157,7 @@
% floatpage = <true|(false)>
% \end{syntax}
% 开启这个选项后浮动环境 \env{table} 和 \env{figure} 的比例参数会使用默认值,关闭它则尽可能避免出现浮动页,使图表环境与正文段落更加紧凑,减少多余的空白版面。
-% \changes{v1.26h}{2021/06/15}{增加浮动环境比例参数选项 \opt{floatpage}。}
+% \changes{v1.26j}{2021/06/15}{增加浮动环境比例参数选项 \opt{floatpage}。}
% \end{function}
%
% \subsection{article 模式}
@@ -239,7 +239,7 @@
% \tn{EBeforeAddBitoc*}\marg{加入目录英文标题前的代码}
% \end{syntax}
% \tn{appendix} 命令后的章节标题变为附录形式。英文目录中附录标题的格式用可选参数修改,英文附录目录前名字默认为 Appendix\tn{space},后名字默认为空,名字之间用一个半角逗号分开,也可以只有一部分,表示英文附录目录前名字。英文附录目录数字输出命令默认为 \tn{Alph}\{chapter\}。
-% \changes{v1.26h}{2021/06/13}{增加调整英文目录格式的钩子 \tn{EBeforeAddBitoc}。}
+% \changes{v1.26j}{2021/06/13}{增加调整英文目录格式的钩子 \tn{EBeforeAddBitoc}。}
% \end{function}
%
% \tn{EBeforeAddBitoc} 是一个作用于局部范围的英文目录钩子,可以插入标题或目录设置的命令改变英文目录中标题的显示格式,也可以覆盖上述的目录前后名字和编号等设置,带有星号的命令会重置之前的代码,放置在导言区或 \tn{bichapter} 等命令前生效。
@@ -387,11 +387,11 @@
% \end{function}
%
% \begin{optdesc}
-% \item[table-cap] 表格标题的字体设置,包括字体族、字体系列和字体形状命令。
-% \item[figure-cap] 图片标题的字体设置,包括字体族、字体系列和字体形状命令。
-% \item[listing-cap] 代码标题的字体设置,包括字体族、字体系列和字体形状命令。
-% \item[footnote] 设置脚注标记与内容的字体,包括字体族、字体系列和字体形状命令。
-% \item[marginpar] 边注的字体设置,包括字体族、字体系列和字体形状命令。
+% \item[table-cap] 表格标题的字体设置,包括字体族、字体系列、字体尺寸和字体形状命令。
+% \item[figure-cap] 图片标题的字体设置,包括字体族、字体系列、字体尺寸和字体形状命令。
+% \item[listing-cap] 代码标题的字体设置,包括字体族、字体系列、字体尺寸和字体形状命令。
+% \item[footnote] 设置脚注标记与内容的字体,包括字体族、字体系列、字体尺寸和字体形状命令。
+% \item[marginpar] 边注的字体设置,包括字体族、字体系列、字体尺寸和字体形状命令。
% \item[math] 选择合适的数学字体,将会加载 \pkg{newtxmath} 和 \pkg{bm} 宏包。使用选项 \opt{none} 时可以使用 \pkg{unicode-math} 等其它数学字体宏包定义字体。
% \end{optdesc}
%
@@ -415,7 +415,7 @@
% \item[backend] 参考文献处理后端,默认用传统的 \hologo{BibTeX} 处理参考文献。
% \item[bib-style] 参考文献格式为中国的参考文献推荐标准GB/T 7714-2015,有顺序编码制和著者-出版年制两种风格,理工科类一般使用顺序编码制,文科类一般使用著者-出版年制。若使用其它格式,使用 \hologo{BibTeX} 处理时需确保正确的 \opt{bst} 文件,使用 \hologo{biber} 处理可使用 \pkg{biblatex} 宏包支持的参考文献风格名称。
% \item[cite-style] 标注参考文献的风格,\opt{backend = bibtex} 选项下可使用 \opt{super}(数字上标标注,默认)或 \opt{numbers}(数字标注)等 \pkg{natbib} 宏包带有的标注风格,\opt{backend = biblatex} 选项下可使用 \pkg{biblatex} 宏包支持的标注风格名称。
-% \item[datafile] 参考文献数据库的文件名,可以是单个文件也可以是以括号包裹并以英文逗号分隔的文件列表,使用 \hologo{biber} 处理时要带有 \opt{bib} 后缀,若不在当前文件夹名称需要包含路径。只有设置数据库的文件名才会载入 \pkg{natbib} 或 \pkg{biblatex} 宏包,之后才可使用相关配置命令,否则需要自行配置参考文献。
+% \item[datafile] 参考文献数据库的文件名,可以是单个文件也可以是以括号包裹并以英文逗号分隔的文件列表,使用 \hologo{biber} 处理时要带有 \opt{bib} 后缀,若不在当前文件夹名称需要包含路径。只有设置数据库的文件名才会载入 \pkg{natbib} 或 \pkg{biblatex} 宏包,之后才可使用相关配置命令,否则需要手动载入相关宏包配置参考文献。
% \end{optdesc}
%
% \begin{function}[added = 2021-01-11,updated = 2021-04-09]{\printbibliography,\EBibtexSet,\EBiblatexPreset,\EBiblatexPostset}
@@ -482,7 +482,7 @@
% 文档类已预置8个定理环境,环境名及对应的定理标题名见小节 \ref{subsec:theorem},如果需要新的定理标题名或定理样式可使用这两个命令,由 \pkg{thmtools} 提供支持,用法与它的同名命令一致。
% \changes{v1.23}{2021/03/12}{重新定义了新定理环境命令 \tn{newtheorem}。}
% \changes{v1.24}{2021/04/25}{增加定义定理环境命令 \tn{EBNewTheorem}。}
-% \changes{v1.26h}{2021/06/15}{定义新定理环境的命令调整为 \tn{declaretheorem}。}
+% \changes{v1.26j}{2021/06/15}{定义新定理环境的命令调整为 \tn{declaretheorem}。}
% \end{function}
%
% \begin{optdesc}
@@ -588,7 +588,7 @@
% \tn{markrule}\oarg{长度|(\tn{textwidth})}\parg{颜色名}\marg{线宽|(0.75pt)}[<上间距>+<下间距>]
% \end{syntax}
% 命令 \tn{easyhead} 和 \tn{easyfoot} 的使用方法与 \tn{fancyhead} 和 \tn{fancyfoot} 完全相同,它们需要在 \opt{head-foot} 选项中使用,设置的是一个名为 \opt{fancy} 的页面风格。\pkg{fancyhdr} 将页眉页脚分成了左中右和奇数页(odd)、偶数页(even)共12个部分,可选参数中E、O代表偶数、奇数,L、C、R代表左、中、右部分。单面打印时,含有偶数的选项无效。
-% \changes{v1.26h}{2021/06/14}{增加页眉页脚的横线绘制命令 \tn{markrule}。}
+% \changes{v1.26j}{2021/06/14}{增加页眉页脚的横线绘制命令 \tn{markrule}。}
% \end{function}
%
% 命令 \tn{markrule} 用于绘制页眉页脚横线,长度默认为页面文本区的宽度,上下间距为横线与上下方部件的间距,带有长度单位,间距长度之间用+号分开,若只有一部分则表示上间距,这个命令也可以在正文中绘制横线。下面举一个设置页眉内容的例子:
@@ -928,12 +928,12 @@
% \end{function}
%
% \subsubsection{索引}
-% \begin{function}[added = 2021-05-01]{\index,\printindex}
+% \begin{function}[added = 2021-05-01,updated = 2021-06-25]{\index,\printindex}
% \begin{syntax}
-% \tn{index}\marg{标签}
-% \tn{printindex*+}\parg{索引名}\oarg{键值列表}
+% \tn{index}\oarg{索引名}\marg{标签}
+% \tn{printindex*+}\oarg{键值列表}\parg{索引名}
% \end{syntax}
-% \pkg{imakeidx} 宏包可使用索引的功能,重新定义了它的 \tn{printindex} 命令用于生成索引目录,\meta{键值列表} 及选项与小节 \ref{subsec:document command} 相同,但 \opt{multoc} 选项和 \pkg{imakeidx} 原本的接口命令 \tn{indexsetup} 部分选项失效。仅做了简单的设置如将索引设为双栏并加入目录,其他选项可另外配置。
+% \pkg{imakeidx} 宏包可使用索引的功能,重新定义了它的 \tn{printindex} 命令用于生成索引目录,\meta{键值列表} 及选项与小节 \ref{subsec:document command} 相同,但 \opt{multoc} 选项和 \pkg{imakeidx} 原本的接口命令 \tn{indexsetup} 部分选项失效。输出不同的索引目录时使用 \meta{索引名} 选项。
% \changes{v1.24}{2021/05/01}{重新定义 \tn{printindex} 命令与文档适配。}
% \end{function}
%
@@ -1081,7 +1081,7 @@
%<*class>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/06/23}{1.26h}{beta}
+\ProvidesExplClass{easybook}{2021/06/25}{1.26j}{beta}
\bool_set_false:N \l__eb_compile_draft_bool
\bool_set_false:N \l__eb_title_newline_bool
@@ -1328,7 +1328,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2021/06/23}{1.26h}{beta}
+\ProvidesExplPackage{easybase}{2021/06/25}{1.26j}{beta}
\cs_generate_variant:Nn \eb_ctex_define:nn { nx }
\cs_generate_variant:Nn \int_to_arabic:n { v }
@@ -1612,8 +1612,8 @@
\cs_new:cpn { eb_mark_#1_number_bool:n } ##1
{
\tl_if_in:nnTF {##1} { [ }
- { \use:c { eb@mark@#1@label@layout } ##1 }
- { \use:c { eb@mark@#1@label@layout } {##1} }
+ { \use:c { eb@mark@#1@label@layout }##1 }
+ { \use:c { eb@mark@#1@label@layout }{##1} }
}
}
@@ -1918,10 +1918,13 @@
{
lolskip .skip_set:N = \l__eb_toc_lolskip_skip,
lolskip .initial:n = 0.8pc,
-
belowoffset .dim_set:N = \l__eb_toc_offset_dim,
belowoffset .initial:n =
{ \bool_if:NTF \l__eb_class_book_bool { -1pc } { -0.35pc } },
+ line-align .bool_set:N = \l__eb_toc_line_align_bool,
+ line-align .default:n = true,
+ line-align .initial:n = true,
+
tocline-fig .cs_set:Np = \eb@labelname@lof #1,
tocline-fig .initial:n =
{
@@ -1943,12 +1946,9 @@
\notbool{eb@titletoc@hang@fix}
{\hspace{\eb@toc@lstlisting@numsep}}{}
},
- line-align .bool_set:N = \l__eb_toc_line_align_bool,
- line-align .default:n = true,
- line-align .initial:n = true,
hang .choice:,
- hang/true .code:n =
+ hang/true .code:n =
{
\booltrue{eb@titletoc@hang@fix}
\ctex_set:n
@@ -1958,7 +1958,7 @@
subsection/tocline = \CTEXnumberline{##1}##2
}
},
- hang/false .code:n =
+ hang/false .code:n =
{
\ctex_set:n
{
@@ -1967,8 +1967,8 @@
subsection/tocline = \EBNumberLine{##1}##2
}
},
- hang .default:n = true,
- hang .initial:n = false,
+ hang .default:n = true,
+ hang .initial:n = false,
numsep-all .meta:n =
{
@@ -2013,18 +2013,18 @@
}
\ctex_set:nn { tocset }
{
- part/format = \addvspace{1pc}\sffamily\large,
- part/indent = 0\ccwd,
- part/rule = \tocrule{}[\bfseries],
+ part/format = \addvspace{1pc}\sffamily\large,
+ part/indent = 0\ccwd,
+ part/rule = \tocrule{}[\bfseries],
- chapter/format = \addvspace{1pc}\sffamily\large,
- chapter/indent = 0\ccwd,
- chapter/rule = \tocrule{$\cdot$}[\bfseries],
+ chapter/format = \addvspace{1pc}\sffamily\large,
+ chapter/indent = 0\ccwd,
+ chapter/rule = \tocrule{$\cdot$}[\bfseries],
- section/format = \addvspace{0.35pc},
- section/indent =
+ section/format = \addvspace{0.35pc},
+ section/indent =
{ \bool_if:NTF \l__eb_class_book_bool { 1.5\ccwd } { 0\ccwd } },
- section/rule = \tocrule{$\cdot$},
+ section/rule = \tocrule{$\cdot$},
subsection/format = \addvspace{0.35pc},
subsection/indent =
@@ -2290,20 +2290,20 @@
columns = 2,
columnsep = 2\ccwd
]
- \RenewDocumentCommand{\printindex}{st+D(){\imki@jobname}o}
+ \RenewDocumentCommand{\printindex}{st+oD(){\imki@jobname}}
{
\group_begin:
\tl_set_eq:NN \eb@toc@title \indexname
\cs_set_eq:NN \imki@indexlevel \use_none:n
\setkeys{imkiindex}{noclearpage}
- \IfValueT{#4}{\keys_set:nn { eb/listoc } {#4}}
+ \IfValueT{#3}{\keys_set:nn { eb/listoc } {#3}}
\tl_set:Nn \imki@indexheaders
{
\eb_title_number_intoc_bool:nn {#2} {#1}
\cs_set_eq:NN \thispagestyle \use_none:n
\cs_undefine:N \imki@firstpagestyle
}
- \imki@putindex{#3}
+ \imki@putindex{#4}
\group_end:
}
}
diff --git a/macros/latex/contrib/easybook/easybook.pdf b/macros/latex/contrib/easybook/easybook.pdf
index 32f553a6bb..cdf7ede0d4 100644
--- a/macros/latex/contrib/easybook/easybook.pdf
+++ b/macros/latex/contrib/easybook/easybook.pdf
Binary files differ