summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-02-07 21:01:51 +0000
committerKarl Berry <karl@freefriends.org>2024-02-07 21:01:51 +0000
commit884ae6847d7c4a7c5931ed290acb81a40c9e8a6c (patch)
tree28b8428a9c68d63b9127c9a8cd0a084e3a505cca
parente78c02731721a5e1cc169973e8e1f669d33ba9ad (diff)
easybook (7feb24)
git-svn-id: svn://tug.org/texlive/trunk@69736 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/easybook/easybook.pdfbin596407 -> 598005 bytes
-rw-r--r--Master/texmf-dist/doc/latex/easybook/easybook.tex20
-rw-r--r--Master/texmf-dist/source/latex/easybook/easybook.dtx36
-rw-r--r--Master/texmf-dist/tex/latex/easybook/easybase.sty30
-rw-r--r--Master/texmf-dist/tex/latex/easybook/easybook.cls4
-rw-r--r--Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg2
6 files changed, 32 insertions, 60 deletions
diff --git a/Master/texmf-dist/doc/latex/easybook/easybook.pdf b/Master/texmf-dist/doc/latex/easybook/easybook.pdf
index 990fdbea493..ccc80a9691f 100644
--- a/Master/texmf-dist/doc/latex/easybook/easybook.pdf
+++ b/Master/texmf-dist/doc/latex/easybook/easybook.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/easybook/easybook.tex b/Master/texmf-dist/doc/latex/easybook/easybook.tex
index 69a64ddd922..feaac7dcc52 100644
--- a/Master/texmf-dist/doc/latex/easybook/easybook.tex
+++ b/Master/texmf-dist/doc/latex/easybook/easybook.tex
@@ -23,8 +23,8 @@
name = easybook,
color-scheme = blue,
title = EASYBOOK使用手册,
- version = v2024u,
- date = 2024/02/05,
+ version = v2024x,
+ date = 2024/02/08,
authors = 瞿毅,
info = 简便地排版中文学位论文或书籍,
email = toquyi@163.com,
@@ -180,7 +180,7 @@
您在使用 \easybook{} 文档类编写文档前可能需要具备以下的条件:
\begin{itemize}
\item 使用 \hologo{XeLaTeX}(推荐)或 \hologo{LuaLaTeX} 两种编译方式。
- \item 由于文档类用到了一些 \LaTeX 和依赖宏包较新的功能,需要版本至少在\textbf{2020/10/01}以后的 \LaTeX 内核支持。建议您安装最新的 \TeX 发行版。
+ \item 由于文档类用到了一些 \LaTeX 和依赖宏包较新的功能,需要版本至少在\textbf{2021/11/15}以后的 \LaTeX 内核支持。建议您安装最新的 \TeX 发行版。
\item 虽然手册对基本用法做了介绍,但这并不是入门教程,所涉及到宏包的用法与命令也需要有了解。您应当具有一定的 \LaTeX 使用基础,可以在 \TeX 综合网站 \href{https://www.ctan.org/}{CTAN} 查看相关资源。
\end{itemize}
@@ -435,7 +435,7 @@
\begin{options}
\keychoice{linktype}{\fbox{edge},colors,none}
超链接类型。\code{edge} 使超链接形式为边框,\code{colors} 使超链接字体为彩色,\code{none} 关闭超链接边框与颜色,此时 \option{linkcolor} 选项无效。
- \keychoice{linkcolor}{fresh,cutepink,\fbox{DarkBlue},crimson}
+ \keychoice{linkcolor}{fresh,cutepink,\fbox{navyblue},crimson}
超链接颜色样式。预置了四种超链接颜色风格。为使相关颜色能够正确显示,选项 \option{linkcolor} 应当在 \option{linktype} 前使用。
\begin{commands}
\command{DeclareLinkColor}[\splitmarg{风格名称,颜色1,颜色2,颜色3}]
@@ -757,7 +757,9 @@
定义脚注正文标记的格式,与正文标记编号命令 \cs{theupfootnote} 配合使用。
\command{defdownfntmark}[\marg{脚注内容标记格式}]
定义脚注内容标记的格式,与内容标记编号命令 \cs{thedownfootnote} 配合使用。
- \command{notminipage}[\marg{普通页内容}\marg{迷你页内容}]\newtag[Chg]%
+ \command{deffntpara}[\marg{脚注段落文本格式}]\newtag%
+ 定义脚注段落文本的格式的命令。脚注段落文本由脚注内容标记和文本两部分组成,段落格式定义中参数 \code{\#1} 代表内容文本。
+ \command{notminipage}[\marg{普通页内容}\marg{迷你页内容}]
用于在定义脚注标记的命令中判断当前脚注是否处于迷你页而输出不同的内容。
\command{theupfootnote}
保存正文标记编号类型选项 \option{fnmark-num} 指定的正文标记。
@@ -767,6 +769,7 @@
\begin{ctexexam}
\defupfntmark{\super[vmove = 2pt]{\theupfootnote}}
\defdownfntmark{\notminipage{\textcolor{blue}{\thedownfootnote}}{}}
+ \deffntpara{\makebox[2em][r]{\thefootnote}#1}
\end{ctexexam}
\keychoice{fncustom-format}{\textcolor{SlateGray}{format code},match}
单独设定自定义脚注标记的格式,选项 \code{match} 可以匹配 \option{spcmd} 全局的值。自定义脚注内容和正文标记的命令与用法可以见下方和\ref{exam:custom footnote markers} 的介绍。
@@ -782,7 +785,7 @@
\keychoice{fnboth-format}{\textcolor{SlateGray}{format code},match}
同时设定默认脚注标记 \option{fnmarktext-format} 和自定义脚注标记 \option{fncustom-format} 的格式。两种脚注标记匹配上标格式 \option{spcmd} 的值是独立的,使用 \code{match} 则可以同时匹配。标记格式选项含有字体命令会覆盖 \option{footnote} 的设置,最后一个格式命令可以带有一个参数接受脚注标记。
\keyval{fnpara-format}{格式代码}
- 脚注内容的格式。在此设置字体命令会覆盖 \option{footnote} 的设置,最后一个格式命令可以带有一个参数接受脚注内容。
+ 脚注内容文本的格式。在此设置字体命令会覆盖 \option{footnote} 的设置,最后一个格式命令可以带有一个参数接受脚注内容文本。
\kvsplit{fntext-code}{前代码,后代码}
可以用 \meta{前代码} 与 \meta{后代码} 额外增加脚注内容标记前后的代码。也可以只有前部分,\meta{前代码} 中最后一个格式命令可以带有一个参数接受脚注内容标记。由于脚注标记处于水平模式,可以配合盒子命令设置脚注内容标记的对齐方式,或在标记与脚注首行间插入一点距离。
\begin{ctexexam}
@@ -977,7 +980,7 @@
作用于局部范围的英文目录标题条目钩子,代码在标题加入目录前执行,可以插入条目标题定义命令临时改变英文目录中条目的格式,带有星号参数的命令会重置之前的代码。这个命令设置英文目录条目的标题格式具有最高优先级,放置在导言区或 \cs{bichapter} 等双语标题命令前生效。举一个在英文目录节标题条目编号前添加 \code{Section} 字符串的例子:
\begin{ctexexam}
\BeforeAddBitoc{\ctexset{section/name = Section\space}}
- \bisection{zhtitle}{entitle}
+ \bisection{中文标题}{English title}
\end{ctexexam}
\end{commands}
@@ -1351,11 +1354,12 @@
\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 = 2024u,date = 2024/02/05,simple]
+ \begin{version}[v = 2024x,date = 2024/02/08,simple]
\item 核对依赖宏包的更新改动,优化使用手册的内容细节。
\item 修复图表等浮动环境题注目录中条目标签编号的计数器值显示错误问题。
\item 修复附录命令 \cs{appendix} 的可选参数设置英文目录中条目名字和编号失效的问题。
\item 新增目录风格定义命令 \cs{SetTocStyle} 和使用命令 \cs{UseTocStyle}。
+ \item 新增脚注段落文本格式定义命令 \cs{deffntpara}。
\end{version}
\end{changelog}
\nocite{*}
diff --git a/Master/texmf-dist/source/latex/easybook/easybook.dtx b/Master/texmf-dist/source/latex/easybook/easybook.dtx
index 238572988d7..944bc72ec44 100644
--- a/Master/texmf-dist/source/latex/easybook/easybook.dtx
+++ b/Master/texmf-dist/source/latex/easybook/easybook.dtx
@@ -13,9 +13,9 @@
%
% This work has the LPPL maintenance status `maintained'.
%<*class>
-\NeedsTeXFormat{LaTeX2e}[2020/10/01]
+\NeedsTeXFormat{LaTeX2e}[2021/11/15]
\RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2024/02/05}{2024u}
+\ProvidesExplClass{easybook}{2024/02/08}{2024x}
{Easily typesetting Chinese theses or books}
\bool_set_false:N \l__eb_compile_draft_bool
@@ -295,9 +295,9 @@
}
%</class>
%<*package>
-\NeedsTeXFormat{LaTeX2e}[2020/10/01]
+\NeedsTeXFormat{LaTeX2e}[2021/11/15]
\RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2024/02/05}{2024u}
+\ProvidesExplPackage{easybase}{2024/02/08}{2024x}
{Easily typesetting Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -507,18 +507,6 @@
if~you~continue~compiling. \\\\
Please~update~your~macro~package~from~CTAN.
}
-\eb_seq_map_inline:nn
- {
- { expl3 } { 2020/10/27 },
- { xparse } { 2020/10/27 },
- { l3keys2e } { 2020/10/27 },
- { caption } { 2020/08/24 },
- { fancyhdr } { 2021/01/28 },
- { siunitx } { 2021/06/22 },
- { tabularray } { 2021/07/01 },
- { spbmark } { 2021/12/15 }
- }
- { \eb_package_date_check:nn #1 }
\NewDocumentCommand{\eb_assign_tag_brackets:n}
{>{\SplitArgument{1}{,}}m}
@@ -864,7 +852,7 @@
fnafterindent .initial:n = 2em,
fnparskip .skip_set:N = \fnparskip,
fnparskip .initial:n = 0ex plus .1ex,
- fnpara-formatat .tl_set:N = \l__eb_fnpara_format_tl,
+ fnpara-format .tl_set:N = \l__eb_fnpara_format_tl,
fntext-pos .tl_set:N = \l__eb_fntext_position_tl,
fntext-pos .initial:n = super,
fntext-code .code:n = \eb_assign_fntext_code:n {#1},
@@ -1005,9 +993,10 @@
}
}
}
-\cs_set:Npn \@makefntext #1
+\cs_new_protected:Npn \deffntpara #1
+ { \cs_set:Npn \@makefntext ##1 {#1} }
+\deffntpara
{
- \group_begin:
\str_case:Vn \l__eb_footnote_value_tl
{
{ hang } { \use_i:nn }
@@ -1019,7 +1008,6 @@
\dim_set:NV \parindent \fnafterindent
\l__eb_fnpara_format_tl{#1}
\tl_if_eq:NnT \l__eb_footnote_value_tl { hang } { \par }
- \group_end:
}
\eb_seq_map_inline:nn { \@footnotetext,\@mpfootnotetext }
{
@@ -1925,7 +1913,6 @@
\bool_if:NT \l__eb_theorem_support_bool
{
\RequirePackage{amsthm,thmtools}
- \eb_package_date_check:nn { thmtools } { 2020/08/01 }
\cs_set_eq:NN \eb@declaretheoremsyle@save \declaretheoremstyle
\RenewDocumentCommand{\declaretheoremstyle}{O{}mO{}}
{\eb@declaretheoremsyle@save[#1,#3]{#2}}
@@ -1997,10 +1984,7 @@
\ctex_at_end_package:nn { unicode-math }
{ \msg_redirect_module:nnn { unicode-math } { warning } { info } }
\ctex_at_end_package:nn { tcolorbox }
- {
- \eb_package_date_check:nn { tcolorbox } { 2020/10/09 }
- \file_if_exist_input:n { eb-tcolorbox.cfg }
- }
+ { \file_if_exist_input:n { eb-tcolorbox.cfg } }
\bool_set_true:N \l__eb_backend_bibtex_bool
\ctex_define:nn { bibset }
@@ -2320,7 +2304,7 @@
}
%</package>
%<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2024/02/05}{2024u}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/02/08}{2024x}
{Customization of tcolorbox for easybook}
\cs_set_protected:Npn \addtotcbstyle #1#2
diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty
index 276847cd5af..12dc894080b 100644
--- a/Master/texmf-dist/tex/latex/easybook/easybase.sty
+++ b/Master/texmf-dist/tex/latex/easybook/easybase.sty
@@ -18,9 +18,9 @@
%% LaTeX version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
-\NeedsTeXFormat{LaTeX2e}[2020/10/01]
+\NeedsTeXFormat{LaTeX2e}[2021/11/15]
\RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2024/02/05}{2024u}
+\ProvidesExplPackage{easybase}{2024/02/08}{2024x}
{Easily typesetting Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -230,18 +230,6 @@
if~you~continue~compiling. \\\\
Please~update~your~macro~package~from~CTAN.
}
-\eb_seq_map_inline:nn
- {
- { expl3 } { 2020/10/27 },
- { xparse } { 2020/10/27 },
- { l3keys2e } { 2020/10/27 },
- { caption } { 2020/08/24 },
- { fancyhdr } { 2021/01/28 },
- { siunitx } { 2021/06/22 },
- { tabularray } { 2021/07/01 },
- { spbmark } { 2021/12/15 }
- }
- { \eb_package_date_check:nn #1 }
\NewDocumentCommand{\eb_assign_tag_brackets:n}
{>{\SplitArgument{1}{,}}m}
@@ -587,7 +575,7 @@
fnafterindent .initial:n = 2em,
fnparskip .skip_set:N = \fnparskip,
fnparskip .initial:n = 0ex plus .1ex,
- fnpara-formatat .tl_set:N = \l__eb_fnpara_format_tl,
+ fnpara-format .tl_set:N = \l__eb_fnpara_format_tl,
fntext-pos .tl_set:N = \l__eb_fntext_position_tl,
fntext-pos .initial:n = super,
fntext-code .code:n = \eb_assign_fntext_code:n {#1},
@@ -728,9 +716,10 @@
}
}
}
-\cs_set:Npn \@makefntext #1
+\cs_new_protected:Npn \deffntpara #1
+ { \cs_set:Npn \@makefntext ##1 {#1} }
+\deffntpara
{
- \group_begin:
\str_case:Vn \l__eb_footnote_value_tl
{
{ hang } { \use_i:nn }
@@ -742,7 +731,6 @@
\dim_set:NV \parindent \fnafterindent
\l__eb_fnpara_format_tl{#1}
\tl_if_eq:NnT \l__eb_footnote_value_tl { hang } { \par }
- \group_end:
}
\eb_seq_map_inline:nn { \@footnotetext,\@mpfootnotetext }
{
@@ -1648,7 +1636,6 @@
\bool_if:NT \l__eb_theorem_support_bool
{
\RequirePackage{amsthm,thmtools}
- \eb_package_date_check:nn { thmtools } { 2020/08/01 }
\cs_set_eq:NN \eb@declaretheoremsyle@save \declaretheoremstyle
\RenewDocumentCommand{\declaretheoremstyle}{O{}mO{}}
{\eb@declaretheoremsyle@save[#1,#3]{#2}}
@@ -1720,10 +1707,7 @@
\ctex_at_end_package:nn { unicode-math }
{ \msg_redirect_module:nnn { unicode-math } { warning } { info } }
\ctex_at_end_package:nn { tcolorbox }
- {
- \eb_package_date_check:nn { tcolorbox } { 2020/10/09 }
- \file_if_exist_input:n { eb-tcolorbox.cfg }
- }
+ { \file_if_exist_input:n { eb-tcolorbox.cfg } }
\bool_set_true:N \l__eb_backend_bibtex_bool
\ctex_define:nn { bibset }
diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls
index d72452ea934..da4b3942d7c 100644
--- a/Master/texmf-dist/tex/latex/easybook/easybook.cls
+++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls
@@ -18,9 +18,9 @@
%% LaTeX version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
-\NeedsTeXFormat{LaTeX2e}[2020/10/01]
+\NeedsTeXFormat{LaTeX2e}[2021/11/15]
\RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2024/02/05}{2024u}
+\ProvidesExplClass{easybook}{2024/02/08}{2024x}
{Easily typesetting Chinese theses or books}
\bool_set_false:N \l__eb_compile_draft_bool
diff --git a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
index 0257e8669bd..afe01875047 100644
--- a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
+++ b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
@@ -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/05}{2024u}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/02/08}{2024x}
{Customization of tcolorbox for easybook}
\cs_set_protected:Npn \addtotcbstyle #1#2