summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook/doc/easybook.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/easybook/doc/easybook.tex')
-rw-r--r--macros/latex/contrib/easybook/doc/easybook.tex71
1 files changed, 37 insertions, 34 deletions
diff --git a/macros/latex/contrib/easybook/doc/easybook.tex b/macros/latex/contrib/easybook/doc/easybook.tex
index fee663811c..aaaab47ed8 100644
--- a/macros/latex/contrib/easybook/doc/easybook.tex
+++ b/macros/latex/contrib/easybook/doc/easybook.tex
@@ -3,7 +3,7 @@
\title{\sffamily easybook书籍文档类}
\author{瞿毅}
-\date{2021/02/10\hskip\ccwd\relax v1.23c\thanks{\url{https://gitee.com/texl3/easybook}}}
+\date{2021/02/13\hskip\ccwd\relax v1.23d\thanks{\url{https://gitee.com/texl3/easybook}}}
\begin{document}
\maketitle
@@ -100,7 +100,7 @@
\cls{easybook} 扩展了\CTeX 宏集\LaTeX 3风格键值的通用控制命令 \tn{ctexset},接口选项同样用它设置, 原有的键值列表仍然可用。
\end{function}
-\begin{function}[added = 2021-01-08]{config}
+\begin{function}[EXP,added = 2021-01-08]{config}
\begin{syntax}
config = <配置文件名>
\end{syntax}
@@ -109,7 +109,7 @@
\end{function}
\subsection{风格}
-\begin{function}[EXP,added = 2021-01-05,updated = 2021-02-08]{style/color,style/capdash,style/multoc,style/withpart,style/perpart,style/perpage,style/notomath}
+\begin{function}[EXP,added = 2021-01-05,updated = 2021-02-09]{style/color,style/capdash,style/multoc,style/withpart,style/perpart,style/perpage,style/notomath,style/rulewidth}
\begin{syntax}
color = <(none)|seaside|energy|cyberpunk>
capdash = <true|(false)>
@@ -118,9 +118,11 @@
perpart = <true|(false)>
perpage = <true|(false)>
notomath = <(true)|false>
+ rulewidth = <(0.75pt)>
\end{syntax}
\changes{v1.10}{2021/01/08}{更改颜色实现方式与选项名。}
\changes{v1.23}{2021/02/02}{noto风格的数学字体独立出来,可自定义设置。}
+\changes{v1.23b}{2021/02/09}{增加控制页面横线粗细的选项。}
\opt{style} 选项控制文章的风格。
\end{function}
@@ -139,6 +141,7 @@
\item[perpart] 使脚注跟随每一部分编号,默认不跟随。
\item[perpage] 使脚注跟随每一页编号,默认不跟随。
\item[notomath] 使用 \opt{noto} 风格的数学字体,将会加载 \pkg{newtxmath} 宏包。
+ \item[rulewidth] 调整页眉、定理盒子以及代码框线条的粗细。
\end{optdesc}
\subsection{超链接}
@@ -166,13 +169,13 @@
\end{optdesc}
\subsection{行距}
-\begin{function}[EXP,added = 2021-01-05,updated = 2021-02-09]{spread/linespread,spread/tabspread,spread/mathspread,spread/capspread,spread/fnspread}
+\begin{function}[EXP,added = 2021-01-05,updated = 2021-02-13]{spread/line,spread/table,spread/math,spread/caption,spread/footnote}
\begin{syntax}
- linespread = <(1.3)>
- tabspread = <(1.05)>
- mathspread = <(1.05)>
- capspread = <(1)>
- fnspread = <(1)>
+ line = <(1.3)>
+ table = <(1.05)>
+ math = <(1.05)>
+ caption = <(1)>
+ footnote = <(1)>
\end{syntax}
\changes{v1.21b}{2021/01/12}{增加脚注线间的距离选项。}
\changes{v1.23b}{2021/02/09}{取消使用 \pkg{zhlineskip} 宏包设置数学间距。}
@@ -180,32 +183,32 @@
\end{function}
\begin{optdesc}
- \item[linespread] 正文行距。
- \item[tabspread] 表格行距。
- \item[mathspread] 数学环境行距。
- \item[capspread] 图表代码标题行距。
- \item[fnspread] 脚注行距。
+ \item[line] 正文行距。
+ \item[table] 表格行距。
+ \item[math] 数学环境行距。
+ \item[caption] 图表代码标题行距。
+ \item[footnote] 脚注行距。
\end{optdesc}
\subsection{其它字体}
-\begin{function}[EXP,added = 2021-01-08,updated = 2021-02-08]{elfont/tabfont,elfont/figfont,elfont/lstfont,elfont/fnfont,elfont/marfont}
+\begin{function}[EXP,added = 2021-01-08,updated = 2021-02-13]{elfont/table-cap,elfont/figure-cap,elfont/listing-cap,elfont/footnote,elfont/marginpart}
\begin{syntax}
- tabfont = <\tn{sffamily}\tn{small}>
- figfont = <\tn{sffamily}\tn{small}>
- lstfont = <\tn{sffamily}\tn{small}>
- fnfont = <\tn{rmfamily}>
- marfont = <\tn{rmfamily}\tn{footnotesize}>
+ table-cap = <\tn{sffamily}\tn{small}>
+ figure-cap = <\tn{sffamily}\tn{small}>
+ listing-cap = <\tn{sffamily}\tn{small}>
+ footnote = <\tn{rmfamily}>
+ marginpart = <\tn{rmfamily}\tn{footnotesize}>
\end{syntax}
\changes{v1.10}{2021/01/08}{加入自定义非正文字体选项。}
\changes{v1.23a}{2021/02/08}{修复使用 \tn{zihao} 命令设置字体失效的问题。}
\end{function}
\begin{optdesc}
- \item[tabfont] 表格标题的字体设置。
- \item[figfont] 图片标题的字体设置。
- \item[lstfont] 代码标题的字体设置。
- \item[fnfont] 脚注的字体设置,请不要使用字号命令。
- \item[marfont] 边注的字体设置。
+ \item[table-cap] 表格标题的字体设置。
+ \item[figure-cap] 图片标题的字体设置。
+ \item[listing-cap] 代码标题的字体设置。
+ \item[footnote] 脚注的字体设置,请不要使用字号命令。
+ \item[marginpar] 边注的字体设置。
\end{optdesc}
\subsection{参考文献}
@@ -410,16 +413,16 @@
\end{function}
\subsection{习题}
-\begin{function}[added = 2021-01-05,updated = 2021-02-08]{exercise}
+\begin{function}[added = 2021-01-05,updated = 2021-02-13]{exercise}
\begin{syntax}
- \tn{begin}\marg{exercise}\oarg{颜色名}\oarg{编号}\oarg{标题}
+ \tn{begin}\marg{exercise}\oarg{颜色名|(LightYellow)}\oarg{编号|(1.)}\oarg{标题|(习题)}
\tn{item} <习题内容>
\tn{end}\marg{exercise}
\end{syntax}
\changes{v1.23a}{2021/02/08}{增加准确的习题盒子标题目录锚点。}
-习题环境 \opt{exercise} 的标题紧接上一节编号并加入目录与页眉,当使用星号环境时不进行编号。三个可选参数中颜色为自定义或 \pkg{xcolor} 包含的颜色名称(深色),正文编号格式与小节 \ref{sort list} 排序列表相同,标题名默认为摘要,参数只能\textbf{从右往左}省略。
+习题环境 \opt{exercise} 的标题紧接上一节编号并加入目录与页眉,当使用星号环境时不进行编号。三个可选参数中颜色为自定义或 \pkg{xcolor} 包含的颜色名称,正文编号格式与小节 \ref{sort list} 排序列表相同,标题名默认为摘要,参数只能\textbf{从右往左}省略。
\begin{ctexexam}
- \begin{exercise}[black][1.][习题]
+ \begin{exercise}[LightYellow][1.][习题]
\item 习题内容
\item 习题内容
\end{exercise}
@@ -445,15 +448,15 @@
\end{function}
\subsubsection{段落盒子}
-\begin{function}[added = 2021-01-05]{mybox}
+\begin{function}[added = 2021-01-05,updated = 2021-02-13]{mybox}
\begin{syntax}
- \tn{begin}\marg{mybox}\oarg{段落标题}
+ \tn{begin}\marg{mybox}\oarg{段落标题}\oarg{颜色名|(MintCream)}
<盒子内容>
\tn{end}\marg{mybox}
\end{syntax}
-环境 \opt{mybox} 创建一个段落盒子,可以添加可选参数的标题,否则无标题框。带有星号的环境会生成浅灰背景,否则是纯白背景。
+环境 \opt{mybox} 创建一个段落盒子,可以添加可选参数的标题,否则无标题框。当使用带有星号的环境时 \oarg{颜色名} 选项生效,可以自定义背景颜色,否则无背景颜色。
\begin{ctexexam}
- \begin{mybox}*[段落标题]
+ \begin{mybox}*[段落标题][MintCream]
盒子内容
\tcblower % 盒子上下部分分界线
盒子内容
@@ -467,7 +470,7 @@
\tn{concise}\oarg{颜色名}\oarg{配置}\marg{内容}
\tn{fuzzy}\oarg{颜色名}\oarg{配置}\marg{内容}
\end{syntax}
-设置了两个参数选项相同的行内盒子,盒子 \opt{concise} 可以为抄录盒子有三个参数,行内盒子内容是必选参数其他可选。盒子 \opt{fuzzy} 不是抄录盒子,具有模糊边缘类似高亮的效果。
+设置了两个参数选项相同的行内盒子,盒子 \opt{concise} 可以为抄录盒子有三个参数,行内盒子内容是必选参数其他可选。盒子 \opt{fuzzy} 不是抄录盒子,具有模糊边缘类似高亮的效果。配置的选项由 \pkg{tcolorbox} 提供支持。
\end{function}
\section{其它格式}