summaryrefslogtreecommitdiff
path: root/macros/latex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex')
-rw-r--r--macros/latex/contrib/easybook/easybook.dtx49
-rw-r--r--macros/latex/contrib/easybook/easybook.pdfbin577961 -> 577938 bytes
-rw-r--r--macros/latex/contrib/easybook/easybook.tex22
3 files changed, 31 insertions, 40 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx
index 9c1a7d09c8..cd64c2986e 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}{2021/09/08}{1.3b}
+\ProvidesExplClass{easybook}{2021/09/10}{1.3c}
{Typeset Chinese theses or books}
\bool_set_false:N \l__eb_compile_draft_bool
@@ -297,7 +297,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2021/09/08}{1.3b}
+\ProvidesExplPackage{easybase}{2021/09/10}{1.3c}
{Typeset Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1169,6 +1169,21 @@
}
}
}
+\eb_clist_map_inline:nn
+ { numsep,indent,rule }
+ {
+ \ctex_define:nn { tocset }
+ {
+ #1-all .meta:n =
+ {
+ part/#1 = ##1,
+ chapter/#1 = ##1,
+ section/#1 = ##1,
+ subsection/#1 = ##1,
+ list/#1 = ##1
+ }
+ }
+ }
\cs_set_eq:NN \ctexnumberline \CTEXnumberline
\cs_set:Npn \CTEXnumberline #1
@@ -1203,31 +1218,6 @@
hang .default:n = true,
hang .initial:n = false,
- numsep-all .meta:n =
- {
- part/numsep = #1,
- chapter/numsep = #1,
- section/numsep = #1,
- subsection/numsep = #1,
- list/numsep = #1
- },
- numsep-all .initial:n = 1em,
- indent-all .meta:n =
- {
- part/indent = #1,
- chapter/indent = #1,
- section/indent = #1,
- subsection/indent = #1,
- list/indent = #1
- },
- rule-all .meta:n =
- {
- part/rule = #1,
- chapter/rule = #1,
- section/rule = #1,
- subsection/rule = #1,
- list/rule = #1
- },
unknown .code:n = \eb_msg_unknown_option:n { tocset }
}
\ctex_set:n
@@ -1304,7 +1294,8 @@
\lstlistingname\space\thelstlisting
\notbool{eb@titletoc@hang@fix}
{\hspace{\eb@toc@lstlisting@numsep}}{}
- }
+ },
+ numsep-all = 1em
}
\prop_new:N \l__eb_list_label_name_prop
@@ -2398,7 +2389,7 @@
}
%</package>
%<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2021/09/08}{1.3b}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2021/09/10}{1.3c}
{Customization of tcolorbox for easybook}
\tl_gset:Nn \eb@tc@line@skip { 0.5\baselineskip }
diff --git a/macros/latex/contrib/easybook/easybook.pdf b/macros/latex/contrib/easybook/easybook.pdf
index aa520134ba..35245ad648 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 7438b5ed7b..98670293c1 100644
--- a/macros/latex/contrib/easybook/easybook.tex
+++ b/macros/latex/contrib/easybook/easybook.tex
@@ -12,8 +12,8 @@
name = easybook,
color-scheme = blue,
title = EASYBOOK 使用手册,
- version = v1.3b,
- date = 2021/09/08,
+ version = v1.3c,
+ date = 2021/09/10,
authors = 瞿毅,
info = 排版简体中文学位论文和书籍,
email = quee123@foxmail.com,
@@ -267,8 +267,8 @@
设置目录的栏数,仅在 \keyis-{multoc}{true} 时有效,默认为双栏。
\kvsplit{title}{中文目录标题,英文目录标题}\newline
用于更改目录的标题,标题之间用一个英文逗号分开,也可以只有一部分,表示中文目录的标题。当设置了英文目录标题时,英文目录标题将会自动加入主文档目录 \cs*{tableofcontents}\parg{} 命令。
- \keyval-{format}{目录标题格式}\Default
- 在书籍模式且 \option{chapter} 选项开启或者文章模式的情况下,\option{format} 用于设置目录标题的格式。
+ \keyval-{format}{目录标题格式}
+ 在 \cls*{book} 模式且 \option{chapter} 选项开启或者 \cls*{article} 模式的情况下,\option{format} 用于设置目录标题的格式。
\keyval-{aftertitle}{目录标题格式}\Default
目录标题文本之后插入的代码。
\keyval-{pagestyle}{标题页的页面格式}\Default{empty}
@@ -580,9 +580,9 @@
\tcolorboxenvironment{caixiang}{tc-theorem}
\end{ctexexam}
- 使用 \cs{addtcbstyle} 命令调整开启定理盒子时默认的样式,第一个参数为 \code{theorem},关于命令的介绍在小节 \ref{subsec:box}。
+ 使用 \cs{addtcbstyle} 命令调整开启定理盒子时默认的样式,第一个参数为 \code{tc-theorem},关于命令的介绍在小节 \ref{subsec:box}。
\begin{ctexexam}
- \addtcbstyle{theorem}{colback = GreenYellow}
+ \addtcbstyle{tc-theorem}{colback = GreenYellow}
\end{ctexexam}
定义一个名为 \code{mythm} 的定理样式用于 \cs{declaretheorem} 的 \option*{style} 选项:
@@ -923,10 +923,10 @@
\environment{exercise}[\sarg\parg\oarg{键值列表1}\darg{键值列表2}\oarg{键值列表3}]
习题环境的标题使用 \cs*{tcbox} 行内盒子包装样式,内容则使用 \env*{enumerate} 列表环境。它有 5 个可选参数,应当注意用法。当使用星号参数时标题不进行编号,使用 \parg{} 号参数时不使用预置标题,此时 \meta{键值列表1} 除了 \option{label} 选项失效。
- \meta{键值列表2} 包括 \pkg*{tcolorbox} 的盒子样式选项,例如 \option*{boxsep} 和 \option*{fontupper} 等,也可以使用下述 \option{tcolorbox} 选项。在这里可以使用 \cs{addtcbstyle} 命令设置标题选项 \meta{键值列表2} 的值,第一个参数为 \code{exercise}。
+ \meta{键值列表2} 包括 \pkg*{tcolorbox} 的盒子样式选项,例如 \option*{boxsep} 和 \option*{fontupper} 等,也可以使用下述 \option{tcolorbox} 选项。在这里可以使用 \cs{addtcbstyle} 命令设置标题选项 \meta{键值列表2} 的值,第一个参数为 \code{tc-exercise}。
\begin{ctexexam}
\tcphantomifname{\markright{\UseCounter{tcbcounter}{\quad 习题}}}{}
- \addtcbstyle{exercise}{boxsep = 5pt}
+ \addtcbstyle{tc-exercise}{boxsep = 5pt}
\exerprologue{习题前的一段文本}
\begin{exercise}+[color = LightSkyBlue](after skip = 2pc)[itemsep = 1ex]
\item 第一题
@@ -991,14 +991,14 @@
\subsubsection{摘要盒子}
\begin{environments}
\environment{outline}[\oarg{键值列表1}\darg{标题名称}\oarg{键值列表2}]
- 摘要盒子 \env{outline} 可用于章前摘要,它的标题是可选参数,默认标题是摘要。\meta{键值列表2} 是摘要盒子样式选项,可以使用 \cs{addtcbstyle} 命令对它进行全局设置,命令第一个参数为 \code{outline}。
+ 摘要盒子 \env{outline} 可用于章前摘要,它的标题是可选参数,默认标题是摘要。\meta{键值列表2} 是摘要盒子样式选项,可以使用 \cs{addtcbstyle} 命令对它进行全局设置,第一个参数为 \code{tc-outline}。
\end{environments}
\begin{commands}
\command{setoutlinelist}[\marg{键值列表1}]
\meta{键值列表1} 与 \pkg*{enumitem} 宏包中列表配置选项相同,可以设置摘要条目的各种距离,要对它进行全局设置可以使用 \cs{setoutlinelist} 命令。
\begin{ctexexam}
- \addtcbstyle{outline}{arc = 6pt}
+ \addtcbstyle{tc-outline}{arc = 6pt}
\begin{outline}[leftmargin = *](摘要标题)
\item 摘要内容1
\item 摘要内容2
@@ -1009,7 +1009,7 @@
\subsubsection{段落盒子}
\begin{environments}
\environment{easybox}[\sarg\oarg{颜色名}\darg{段落标题}\oarg{配置选项}]
- 环境 \env{easybox} 创建一个带有三个可选参数的扁平盒子。使用星号参数时给盒子添加边框,\meta{颜色名} 选项设置背景颜色,\meta{段落标题} 选项可以设置标题,默认无标题。如果 \meta{配置选项} 较长且希望在原有基础上更改为全局固定的样式,可以使用 \cs{addtcbstyle} 命令设置,命令第一个参数为 \code{easybox}。
+ 环境 \env{easybox} 创建一个带有三个可选参数的扁平盒子。使用星号参数时给盒子添加边框,\meta{颜色名} 选项设置背景颜色,\meta{段落标题} 选项可以设置标题,默认无标题。如果 \meta{配置选项} 较长且希望在原有基础上改为全局固定的样式,可以使用 \cs{addtcbstyle} 命令设置,第一个参数为 \code{tc-easybox}。
\begin{ctexexam}
\begin{easybox}*[DarkCyan](段落标题)
上半盒子内容