summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook/easybook.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-11-05 03:01:24 +0000
committerNorbert Preining <norbert@preining.info>2022-11-05 03:01:24 +0000
commit5a47812f51f3d10a580db0c74aa20d73f5ed2ae4 (patch)
treecc3522fb0d9ee5fad1b71c34210b81532fc5fb48 /macros/latex/contrib/easybook/easybook.tex
parentbe4efcdb2f47821698dc8dbde89722b4f0c2e4b0 (diff)
CTAN sync 202211050301
Diffstat (limited to 'macros/latex/contrib/easybook/easybook.tex')
-rw-r--r--macros/latex/contrib/easybook/easybook.tex52
1 files changed, 28 insertions, 24 deletions
diff --git a/macros/latex/contrib/easybook/easybook.tex b/macros/latex/contrib/easybook/easybook.tex
index 07bb597e6e..086515d7ee 100644
--- a/macros/latex/contrib/easybook/easybook.tex
+++ b/macros/latex/contrib/easybook/easybook.tex
@@ -21,8 +21,8 @@
name = easybook,
color-scheme = blue,
title = EASYBOOK使用手册,
- version = v1.71B,
- date = 2022/11/03,
+ version = v1.71C,
+ date = 2022/11/04,
authors = 瞿毅,
info = 简便地排版中文学位论文或书籍,
email = toquyi@163.com,
@@ -51,7 +51,10 @@
\setlist[1]{labelindent = \parindent}
\setlist[itemize,1]{label = smallbullet,leftmargin = *}
\setcounter{tocdepth}{2}
-\SetTblrInner{hline{1,Z} = {0.8pt,blue}}
+\SetTblrInner[talltblr]{hline{1,Z} = {0.8pt,blue}}
+\SetTblrTemplate{caption}{empty}
+\DefTblrTemplate{remark-sep}{default}{\space}
+\SetTblrStyle{remark}{font = \normalfont}
\ExplSyntaxOn\makeatletter
% * Do not add entries to the index
@@ -108,12 +111,12 @@
% Use a separate module margin marker to prevent overlap
\newcommand{\smodule}[1]{\cnltx@module@text*{\normalsize #1}}
\newcommand{\noitemsep}{\setlength{\itemsep}{0ex}}
-\newcommand{\insertblr}[2]
+\newcommand{\insertalltblr}[3][]
{
\begin{center}
- \begin{tblr}{#1}
- #2
- \end{tblr}
+ \begin{talltblr}[#1]{#2}
+ #3
+ \end{talltblr}
\end{center}
}
\renewcommand{\cnltx@package@abstract@width}{0.85\linewidth}
@@ -223,7 +226,7 @@
\subsection{依赖宏包}
以下为 \pkg*{easybase} 直接调用的关键宏包清单,通常情况下它们是常用且稳定的。棕色背景的宏包表示修改了或依赖它们的内部命令。绿色背景的宏包表示并未调用它们,但做了一些预配置,可在导言区手动载入以实现相关的功能。
-\insertblr
+\insertalltblr
{
colspec = @{}*{5}{c}@{},
cells = {cmd = \pkg*},
@@ -283,21 +286,22 @@
\begin{options}
\keychoice{font}{noto,times,times*,ebgaramond,libertine,palatino,auto}\dtag\Default{auto}
预置的英文字体相关配置方案如下表所示。这些字体已经包含在了 \TeX Live 发行版中,所以通常不需要再专门安装。如果您想使用其它英文字体,可以使用 \pkg*{fontspec} 宏包的相关命令进行设置。
- \insertblr
- {
- colspec = @{}*{4}{c}@{},
- hline{2} = {0.5pt,blue},
- row{1} = {font = \sffamily},
- column{1} = {cmd = \code}
- }{
- & 正文字体 & 无衬线字体 & 等宽字体 \\
- noto & Noto Serif & Noto Sans & Noto Sans Mono \\
- times & XITS & TG Heros & TG Cursor \\
- times* & Times New Roman & Arial & Courier New \\
- ebgaramond & EB Garamond & Libertinus Sans & LM Mono \\
- palatino & TG Pagella & Libertinus Sans & LM Mono \\
- libertine & Libertinus Serif & Libertinus Sans & LM Mono
- }
+ \insertalltblr[
+ remark{\ding{72}} = \code{times*} 方案为 \textsf{windows} 系统的预置字体。
+ ]{
+ colspec = @{}*{4}{c}@{},
+ hline{2} = {0.5pt,blue},
+ row{1} = {font = \sffamily},
+ column{1} = {cmd = \code}
+ }{
+ & 正文字体 & 无衬线字体 & 等宽字体 \\
+ noto & Noto Serif & Noto Sans & Noto Sans Mono \\
+ times & XITS & TG Heros & TG Cursor \\
+ times* & Times New Roman & Arial & Courier New \\
+ ebgaramond & EB Garamond & Libertinus Sans & LM Mono \\
+ palatino & TG Pagella & Libertinus Sans & LM Mono \\
+ libertine & Libertinus Serif & Libertinus Sans & LM Mono
+ }
\end{options}
\begin{options}
@@ -320,7 +324,7 @@
\begin{commands}
\command*{ctexset}[\marg{键值列表}]
\cls*{easybook} 扩展了 \CTeX 宏集 \hologo{LaTeX3} 风格键值的通用控制命令 \cs*{ctexset},接口选项同样可用它设置,原有的 \meta{键值列表} 仍然可用。本文档类目前有9个模块用于实现常规的排版功能,如下表所示。模块名也是统一接口 \cs*{ctexset} 的路径,不同模块单独接口的命令名\textbf{加上前缀} \code{eb}:
- \insertblr
+ \insertalltblr
{
colspec = @{}*{5}{c}@{},
hline{3} = {0.5pt,blue},