summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-03-21 03:01:00 +0000
committerNorbert Preining <norbert@preining.info>2021-03-21 03:01:00 +0000
commit86a0e007d01f87228d2363faf90a2a3b65cf758f (patch)
tree50ff3b4e1bfbe05e95441645de9d55048feb01bc /macros/latex/contrib/easybook
parentd3b06b2254431c03e127876a07ae654091314c72 (diff)
CTAN sync 202103210300
Diffstat (limited to 'macros/latex/contrib/easybook')
-rw-r--r--macros/latex/contrib/easybook/doc/easybook-demo.pdfbin262611 -> 262612 bytes
-rw-r--r--macros/latex/contrib/easybook/doc/easybook-demo.tex2
-rw-r--r--macros/latex/contrib/easybook/doc/easybook.pdfbin258261 -> 258368 bytes
-rw-r--r--macros/latex/contrib/easybook/easybook.dtx77
4 files changed, 52 insertions, 27 deletions
diff --git a/macros/latex/contrib/easybook/doc/easybook-demo.pdf b/macros/latex/contrib/easybook/doc/easybook-demo.pdf
index 1be2e7f933..dbdc0289d9 100644
--- a/macros/latex/contrib/easybook/doc/easybook-demo.pdf
+++ b/macros/latex/contrib/easybook/doc/easybook-demo.pdf
Binary files differ
diff --git a/macros/latex/contrib/easybook/doc/easybook-demo.tex b/macros/latex/contrib/easybook/doc/easybook-demo.tex
index 867240ca0c..2b05fc211b 100644
--- a/macros/latex/contrib/easybook/doc/easybook-demo.tex
+++ b/macros/latex/contrib/easybook/doc/easybook-demo.tex
@@ -99,7 +99,7 @@
\url{https://latexstudio.net} \\
\url{https://gitee.com/texl3/easybook}\thanks{Gitee为项目的主要发布地址。}
}
-\date{2021/03/19\hskip\ccwd\relax v1.23v}
+\date{2021/03/20\hskip\ccwd\relax v1.23w}
\frontmatter[roman]
\maketitle
diff --git a/macros/latex/contrib/easybook/doc/easybook.pdf b/macros/latex/contrib/easybook/doc/easybook.pdf
index dc22bed42d..c09c55862e 100644
--- a/macros/latex/contrib/easybook/doc/easybook.pdf
+++ b/macros/latex/contrib/easybook/doc/easybook.pdf
Binary files differ
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx
index 7269f8bcd5..9280386740 100644
--- a/macros/latex/contrib/easybook/easybook.dtx
+++ b/macros/latex/contrib/easybook/easybook.dtx
@@ -51,7 +51,7 @@ The latest version of this license is in
%
% \changes{v1.20}{2021/01/09}{修改和完善用户文档。}
% \changes{v1.20}{2021/01/09}{模板更改为使用 CC-BY 许可协议。}
-% \changes{v1.23v}{2021/03/19}{修复在 \pkg{ctex} v2.5.6 更新后 \cls{easybook} 与 \pkg{hyperref} 冲突问题。}
+% \changes{v1.23w}{2021/03/19}{修复在 \pkg{ctex} v2.5.6 更新后 \cls{easybook} 与 \pkg{hyperref} 冲突问题。}
%
% \CheckSum{0}
%
@@ -73,7 +73,7 @@ The latest version of this license is in
%
% \title{\sffamily easybook书籍文档类}
% \author{瞿毅}
-% \date{2021/03/19\hskip\ccwd\relax v1.23v\thanks{\url{https://gitee.com/texl3/easybook}}}
+% \date{2021/03/20\hskip\ccwd\relax v1.23w\thanks{\url{https://gitee.com/texl3/easybook}}}
% \maketitle
% \begin{abstract}
% \cls{easybook} 是基于 \cls{ctexbook} 书籍文档类创建以极简为风格的模板,可以看作对 \cls{ctexbook} 的进一步包装。虽然\CTeX 文档类提供了较好的中文支持,但想实现个性化功能一般需要在其基础上载入更多宏包来定制。\cls{easybook} 考虑了一些细节并载入一些常用宏包实现一般的排版需求,它适用于排版中英文书籍或笔记,甚至可稍加调整成为学位论文模板。
@@ -164,7 +164,7 @@ The latest version of this license is in
% class = <(book)|article>
% \end{syntax}
% 设置文类风格,默认为 \opt{book} 文档类。选用 \opt{article} 使文档编号、结构等与 \cls{article} 文档类的特性相似,可用于短篇幅的文章,不要再使用 \tn{chapter} 命令,此时设置双栏目录的 \opt{style/multoc} 选项、小节 \ref{subsec:document command} 中打印目录命令的 \opt{multoc} 及 \opt{book} 选项均会失效,会以 \opt{section} 标题级别输出目录。
-% \changes{v1.23v}{2021/03/16}{增加 article 文章模式,可用于短篇幅的文章。}
+% \changes{v1.23w}{2021/03/16}{增加 article 文章模式,可用于短篇幅的文章。}
% \end{function}
%
% \subsection{文档命令}
@@ -180,7 +180,7 @@ The latest version of this license is in
% \tn{listoflistings*}\oarg{键值列表}
% \end{syntax}
% \tn{frontmatter} 为前言区命令,章标题不编号,页码可设置为例如 \opt{roman}、\opt{Alph} 等格式,带有星号的命令 \tn{frontmatter*} 不使用 \tn{cleardoublepage}。\tn{mainmatter} 为主文区命令,章标题正常编号且页码为从1开始计数的阿拉伯数字,\tn{mainmatter*} 命令不使用 \tn{cleardoublepage}。\tn{backmatter} 为后记区命令,页码格式与编号保持不变,章标题不编号。\tn{listoffigures} 命令输出图片目录,\tn{listoftables} 命令输出表格目录,\tn{listoflistings} 命令输出代码目录。带有星号的目录命令不会添加进主文档目录中,目录的键值列表选项如下
-% \changes{v1.23v}{2021/02/20}{重新定义文档结构划分命令。}
+% \changes{v1.23w}{2021/02/20}{重新定义文档结构划分命令。}
% \end{function}
%
% \begin{function}{multoc,book,article}
@@ -188,7 +188,7 @@ The latest version of this license is in
% multoc = <true|(false)>
% \end{syntax}
% \opt{multoc} 与 \opt{style/multoc} 选项具有相同的效果,但是具有优先性且可单独设置不同目录是否双栏排版。\opt{book} 选项使目录标题按照 \opt{chapter} 级别输出,\opt{article} 选项使目录标题按照 \opt{article} 级别输出,默认为 \opt{chapter} 级别。
-% \changes{v1.23v}{2021/03/15}{为几个目录增加键值列表的选项,可设置标题输出级别以及是否加入主目录。}
+% \changes{v1.23w}{2021/03/15}{为几个目录增加键值列表的选项,可设置标题输出级别以及是否加入主目录。}
% \end{function}
%
% \section{接口选项}
@@ -225,9 +225,9 @@ The latest version of this license is in
% \end{syntax}
% \ding{229} 以上选项路径为 \opt{style/...}
% \changes{v1.10}{2021/01/08}{更改颜色实现方式与选项名。}
-% \changes{v1.23v}{2021/02/02}{noto风格的数学字体独立出来,可自定义设置。}
-% \changes{v1.23v}{2021/02/09}{增加控制页面横线粗细的选项。}
-% \changes{v1.23v}{2021/03/15}{增加控制编号连接符的选项。}
+% \changes{v1.23w}{2021/02/02}{noto风格的数学字体独立出来,可自定义设置。}
+% \changes{v1.23w}{2021/02/09}{增加控制页面横线粗细的选项。}
+% \changes{v1.23w}{2021/03/15}{增加控制编号连接符的选项。}
% \end{function}
%
% \begin{optdesc}
@@ -289,7 +289,7 @@ The latest version of this license is in
% \ding{229} 以上选项路径为 \opt{spread/...} \\
% 行距因子用于设置各种行距倍数,只能是浮点数,不能带有长度单位。\tn{ctexset} 原有的行距选项 \opt{linespread} 失效。各行距既可在导言区全局设置也可正文中设置对后面生效,行距的意义为
% \changes{v1.21}{2021/01/12}{增加脚注线间的距离选项。}
-% \changes{v1.23v}{2021/02/09}{取消使用 \pkg{zhlineskip} 宏包设置数学间距。}
+% \changes{v1.23w}{2021/02/09}{取消使用 \pkg{zhlineskip} 宏包设置数学间距。}
% \end{function}
%
% \begin{optdesc}
@@ -311,7 +311,7 @@ The latest version of this license is in
% \end{syntax}
% \ding{229} 以上选项路径为 \opt{elsefont/...}
% \changes{v1.10}{2021/01/08}{加入自定义非正文字体选项。}
-% \changes{v1.23v}{2021/02/08}{修复使用 \tn{zihao} 命令设置字体失效的问题。}
+% \changes{v1.23w}{2021/02/08}{修复使用 \tn{zihao} 命令设置字体失效的问题。}
% \end{function}
%
% \begin{optdesc}
@@ -332,7 +332,7 @@ The latest version of this license is in
% \end{syntax}
% \ding{229} 以上选项路径为 \opt{bibset/...}
% \changes{v1.21}{2021/01/11}{增加 \opt{bibset} 选项,可以使用 \hologo{BibTeX} 或 \hologo{biber} 编译参考文献。}
-% \changes{v1.23v}{2021/02/23}{使用 \opt{bibset} 选项时可设置标注风格。}
+% \changes{v1.23w}{2021/02/23}{使用 \opt{bibset} 选项时可设置标注风格。}
% \end{function}
%
% \begin{optdesc}
@@ -394,7 +394,7 @@ The latest version of this license is in
% \tn{declaretheoremstyle}\oarg{键值列表}\marg{定理样式名}
% \end{syntax}
% 文档类已预置8个定理环境,环境名及对应的定理标题名见小节 \ref{subsec:theorem},如果需要新的定理标题名或定理样式可使用这两个命令。
-% \changes{v1.23v}{2021/03/12}{重新定义了新定理环境命令 \tn{newtheorem}。}
+% \changes{v1.23w}{2021/03/12}{重新定义了新定理环境命令 \tn{newtheorem}。}
% \end{function}
%
% \begin{optdesc}
@@ -462,8 +462,8 @@ The latest version of this license is in
% \opt{hdrset} 设置的命令由 \pkg{fancyhdr} 宏包提供支持,\opt{headrule}、\opt{footrule} 和 \opt{footnoterule} 三个横线选项一般可以使用 \tn{hrule} width \meta{长度} height \meta{高度} 命令来绘制,脚注横线默认为空。当然,手动绘制横线时线条粗细选项 \opt{style/rulewidth} 会失效。
% \changes{v1.21}{2021/01/11}{修复单面文档时页眉横线消失的问题。}
% \changes{v1.21}{2021/01/13}{增加配置页眉页脚的选项。}
-% \changes{v1.23v}{2021/03/08}{优化页眉页脚设置,增加 \opt{chap-mark} 和 \opt{sec-mark} 选项。}
-% \changes{v1.23v}{2021/03/14}{可以手动绘制页眉、页脚和脚注的横线。}
+% \changes{v1.23w}{2021/03/08}{优化页眉页脚设置,增加 \opt{chap-mark} 和 \opt{sec-mark} 选项。}
+% \changes{v1.23w}{2021/03/14}{可以手动绘制页眉、页脚和脚注的横线。}
% \end{function}
%
% \begin{function}[added = 2021-01-13,updated = 2021-03-14]{,\easyhead,\easyfoot}
@@ -540,7 +540,7 @@ The latest version of this license is in
% \begin{function}[added = 2021-01-05]{equation,multline,gather,align}
% \begin{syntax}
% \tn{begin}\marg{环境名}
-% \tn{item} <行间公式>
+% <行间公式>
% \tn{end}\marg{环境名}
% \end{syntax}
% \pkg{amsmath} 宏包提供了一系列数学环境,它们可以排布各种对齐或不对齐的公式组。\env{multline} 环境用于一行无法放下的长公式,\env{gather} 环境用于每行居中的公式组,\env{align} 环境用于多列对齐的公式组。
@@ -599,7 +599,7 @@ The latest version of this license is in
% \begin{center}
% \begin{tabular}{*{8}{c}}
% \toprule
-% theorem & definition & lemma & corollary & proposition & example & remark & prooof \\
+% theorem & definition & lemma & corollary & proposition & example & remark & proof \\
% 定理 & 定义 & 引理 & 推论& 性质 & 例 & 注 & 证明 \\
% \bottomrule
% \end{tabular}
@@ -621,7 +621,7 @@ The latest version of this license is in
% \item 习题内容
% \end{exercise}
% \end{ctexexam}
-% \changes{v1.23v}{2021/02/08}{增加准确的习题盒子标题目录锚点。}
+% \changes{v1.23w}{2021/02/08}{增加准确的习题盒子标题目录锚点。}
% \end{function}
%
% \subsection{盒子}
@@ -780,7 +780,7 @@ The latest version of this license is in
%<*class>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/03/19}{1.23v}{}
+\ProvidesExplClass{easybook}{2021/03/20}{1.23w}{beta}
\cs_generate_variant:Nn \keys_define:nn {nx}
\cs_generate_variant:Nn \int_to_arabic:n {v}
@@ -901,14 +901,6 @@ The latest version of this license is in
withpart .bool_set:N = \l__chap_withpart_bool,
withpart .default:n = true,
withpart .initial:n = false,
- footwith .choice:,
- footwith .value_required:n = true,
- footwith/part .code:n =
- {\tl_set:Nn \l__foot_numberwith_tl{#1}},
- footwith/page .code:n =
- {\tl_set:Nn \l__foot_numberwith_tl{#1}},
- footwith/chapter .code:n = {},
- footwith .initial:n = chapter,
notomath .bool_set:N = \l__notomath_bool,
notomath .default:n = true,
notomath .initial:n = true,
@@ -917,6 +909,16 @@ The latest version of this license is in
uppercase .bool_set:N = \l__uppercase_bool,
uppercase .default:n = true,
uppercase .initial:n = true,
+
+ footwith .choice:,
+ footwith .value_required:n = true,
+ footwith/part .code:n =
+ {\tl_set:Nn \l__foot_numberwith_tl{#1}},
+ footwith/page .code:n =
+ {\tl_set:Nn \l__foot_numberwith_tl{#1}},
+ footwith/chapter .code:n = {},
+ footwith .initial:n = chapter,
+
figure-sep .tl_set:N = \l__figure_separator_tl,
table-sep .tl_set:N = \l__table_separator_tl,
listing-sep .tl_set:N = \l__lstlisting_separator_tl,
@@ -951,6 +953,28 @@ The latest version of this license is in
\tl_if_empty:NF \g__config_tl{\file_input:n {\g__config_tl}}
}
+\cs_new_protected:Npn \__ifpackage_later:nn #1#2
+ {
+ \@ifpackagelater{#1}{#2}
+ {}{\msg_warning:nnn {easybook}{package-old}{#1}}
+ }
+\msg_new:nnn {easybook}{package-old}
+ {
+ Package~#1~has~been~out~of~date. \\
+ Some~problems~or~errors~may~occur \\
+ if~you~continue~compiling. \\\\
+ Please~update~your~macro~package~from~CTAN.
+ }
+\clist_map_inline:nn
+ {
+ {expl3}{2020/10/27},
+ {xparse}{2020/10/27},
+ {l3keys2e}{2020/10/27},
+ {ctex}{2020/10/19},
+ {thmtools}{2020/08/01},
+ {caption-light}{2020/08/24}
+ }{\__ifpackage_later:nn #1}
+
\sys_if_engine_xetex:TF
{
\cs_new_eq:NN \__set_family:nnn \xeCJK_set_family:nnn
@@ -1756,6 +1780,7 @@ The latest version of this license is in
\ctex_at_end_package:nn {tcolorbox}
{
+ \__ifpackage_later:nn {tcolorbox}{2020/10/09}
\tcbset
{
thmsty/.style =