From 5f692b0c97fc156abcb2eb1bb22cb7d3b5e17ed5 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 18 Dec 2021 20:56:36 +0000 Subject: easybook (18dec21) git-svn-id: svn://tug.org/texlive/trunk@61341 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/easybook/easybook.pdf | Bin 593310 -> 593597 bytes Master/texmf-dist/doc/latex/easybook/easybook.tex | 42 ++++++++++----------- .../texmf-dist/source/latex/easybook/easybook.dtx | 33 ++++++++-------- Master/texmf-dist/tex/latex/easybook/easybase.sty | 29 +++++++------- Master/texmf-dist/tex/latex/easybook/easybook.cls | 2 +- .../texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg | 2 +- 6 files changed, 55 insertions(+), 53 deletions(-) diff --git a/Master/texmf-dist/doc/latex/easybook/easybook.pdf b/Master/texmf-dist/doc/latex/easybook/easybook.pdf index b29e98d230e..1b725c2fc3b 100644 Binary files a/Master/texmf-dist/doc/latex/easybook/easybook.pdf and b/Master/texmf-dist/doc/latex/easybook/easybook.pdf differ diff --git a/Master/texmf-dist/doc/latex/easybook/easybook.tex b/Master/texmf-dist/doc/latex/easybook/easybook.tex index 3c36ea7846b..6aaee09c142 100644 --- a/Master/texmf-dist/doc/latex/easybook/easybook.tex +++ b/Master/texmf-dist/doc/latex/easybook/easybook.tex @@ -20,8 +20,8 @@ name = easybook, color-scheme = blue, title = EASYBOOK 使用手册, - version = v1.41X, - date = 2021/12/16, + version = v1.41Z, + date = 2021/12/18, authors = 瞿毅, info = 排版简体中文学位论文和书籍, email = q1jx@foxmail.com, @@ -366,11 +366,11 @@ 同时输出上标和下标的命令,与简短命令 \cs{spb} 等效。 \end{commands} -关于这三个命令键值列表中共同的选项如下所示。如果 \option{vshift}、\option{hshift} 和 \option{cmd} 选项用于 \module*{style} 模块的全局设置,它们将根据前面最近一个命令的类型设定相应值。 +关于这三个命令键值列表中共同的选项如下所示。如果 \option{vmove}、\option{hmove} 和 \option{cmd} 选项用于 \module*{style} 模块的全局设置,它们将根据前面最近一个命令的类型设定相应值。 \begin{options} - \keyval-{vshift}{刚性长度}\Default{0pt} + \keyval-{vmove}{刚性长度}\Default{0pt} 上标或下标的垂直偏移。如果是上下标命令使用则代表上标和上标间的垂直距离 \option{vsep}。 - \keyval-{hshift}{刚性长度}\Default{0pt} + \keyval-{hmove}{刚性长度}\Default{0pt} 上标或下标的水平偏移。如果是上下标命令使用则代表上标和上标的共同偏移。 \keyval-{cmd}{格式命令}\Default 上标或下标的格式命令选项。最后一个命令可以带有一个参数,这个参数用于接受上标或下标。 @@ -459,27 +459,27 @@ \subsubsection{上下标全局设置} \label{subsubsec:super-sub-script} \begin{options} - \keyval-{spvshift}{刚性长度}\Default{0pt} + \keyval-{spvmove}{刚性长度}\Default{0pt} 上标命令 \cs{super} 对应的上标垂直偏移量。 - \keyval-{sphshift}{刚性长度}\Default{0pt} + \keyval-{sphmove}{刚性长度}\Default{0pt} 上标命令 \cs{super} 对应的上标水平偏移量。 - \keyval-{sbvshift}{刚性长度}\Default{0pt} + \keyval-{sbvmove}{刚性长度}\Default{0pt} 下标命令 \cs{sub} 对应的下标垂直偏移量。 - \keyval-{sbhshift}{刚性长度}\Default{0pt} + \keyval-{sbhmove}{刚性长度}\Default{0pt} 下标命令 \cs{sub} 对应的下标水平偏移量。 - \opt{nohshift}\Default! - 同时取消上标和下标的 \meta{水平偏移},与 \keyis-{sphshift}{0pt} 和 \keyis-{sbhshift}{0pt} 等效。 - \opt{novshift}\Default! - 同时取消上标和下标的 \meta{垂直偏移},与 \keyis-{spvshift}{0pt} 和 \keyis-{sbvshift}{0pt} 等效。 + \opt{nohmove}\Default! + 同时取消上标和下标的 \meta{水平偏移},与 \keyis-{sphmove}{0pt} 和 \keyis-{sbhmove}{0pt} 等效。 + \opt{novmove}\Default! + 同时取消上标和下标的 \meta{垂直偏移},与 \keyis-{spvmove}{0pt} 和 \keyis-{sbvmove}{0pt} 等效。 \keyval-{spcmd}{格式命令}\Default 上标命令 \cs{super} 对应的上标的格式命令。 \keyval-{sbcmd}{格式命令}\Default 下标命令 \cs{sub} 对应的下标的格式命令。 - \keyval-{spbhshift}{刚性长度}\Default{0pt} + \keyval-{spbhmove}{刚性长度}\Default{0pt} 上下标命令 \cs{supersub} 对应的上下标共同水平偏移量。 \kvsplit{spbcmd}{上标格式,下标格式}\Default 上下标命令 \cs{supersub} 对应的上下标格式命令。以英文逗号分隔为前后两个部分分别设置上下标格式,也可以只有前部分,表示上标的格式。 - \keyval-{vsep}{刚性长度}\Default{0.3ex} + \keyval-{vsep}{刚性长度}\Default{0.6ex} 上下标命令 \cs{supersub} 对应的上下标垂直距离。 \keychoice{halign}{l,c,r}\Default{l} 上下标命令 \cs{supersub} 对应的上下标水平对齐方式,有左 \code{l}、居中 \code{c} 和右 \code{r} 三种对齐方式。 @@ -792,12 +792,12 @@ 脚注内容标记编号的类型,用法与 \option{fnmark-num} 一样,所以脚注内容与正文标记编号类型\textbf{可以不同}。 \keychoice{fnmate-num}{plain,pifont,pifont*,pisans,pisans*,short num}\Default{plain} 同时设定脚注正文标记编号 \option{fnmark-num} 与脚注内容标记编号 \option{fntext-num} 的类型。目前脚注编号类型选项对于迷你页环境 \env*{minipage} 无效,其中的脚注保持默认英文字母的编号类型。 - \keychoice{fnmark-vshift}{fixed length,match}\Default{0pt} - 脚注正文标记的垂直偏移,可以设为刚性长度,或用 \code{match} 匹配 \option*{spvshift} 全局的值。 - \keychoice{fnmark-hshift}{fixed length,match}\Default{0pt} - 脚注正文标记的水平偏移,可以设为刚性长度,或用 \code{match} 匹配 \option*{sphshift} 全局的值。 - \keychoice{fntext-vshift}{fixed length,match}\Default{0pt} - 脚注内容标记的垂直偏移,可以设为刚性长度,或用 \code{match} 匹配 \option*{spvshift} 全局的值。 + \keychoice{fnmark-vmove}{fixed length,match}\Default{0pt} + 脚注正文标记的垂直偏移,可以设为刚性长度,或用 \code{match} 匹配 \option*{spvmove} 全局的值。 + \keychoice{fnmark-hmove}{fixed length,match}\Default{0pt} + 脚注正文标记的水平偏移,可以设为刚性长度,或用 \code{match} 匹配 \option*{sphmove} 全局的值。 + \keychoice{fntext-vmove}{fixed length,match}\Default{0pt} + 脚注内容标记的垂直偏移,可以设为刚性长度,或用 \code{match} 匹配 \option*{spvmove} 全局的值。 \keychoice{fnmate-form}{format code,match}\Default 默认脚注标记的格式,选项 \code{match} 可以匹配 \option*{spcmd} 全局的值。一般与 \keyis-{fnmate-num}{plain} 原生编号形式使用,例如用 \pkg*{circledsteps} 宏包的带圈符号命令 \cs*{Circled} 给脚注标记添加圆圈: \begin{ctexexam} diff --git a/Master/texmf-dist/source/latex/easybook/easybook.dtx b/Master/texmf-dist/source/latex/easybook/easybook.dtx index 752a7341c4d..11a4f89bb13 100644 --- a/Master/texmf-dist/source/latex/easybook/easybook.dtx +++ b/Master/texmf-dist/source/latex/easybook/easybook.dtx @@ -15,7 +15,7 @@ %<*class> \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2021/12/16}{1.41X} +\ProvidesExplClass{easybook}{2021/12/18}{1.41Z} {Typeset Chinese theses or books} \bool_set_false:N \l__eb_compile_draft_bool @@ -307,7 +307,7 @@ %<*package> \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2021/12/16}{1.41X} +\ProvidesExplPackage{easybase}{2021/12/18}{1.41Z} {Typeset Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -476,6 +476,7 @@ \cs_if_exist:NF \chapter { \newcounter{chapter} + \providebool{@mainmatter} \bool_set_false:N \l__eb_class_mode_book_bool \ctex_define:n { chapter/tocline .code:n = { } } } @@ -835,14 +836,14 @@ { \tl_set:Nn \l__eb_footnote_value_tl {#1} } } } -\cs_new_protected:Npn \eb_fnmate_shift_set:nnn #1#2#3 +\cs_new_protected:Npn \eb_fnmate_move_set:nnn #1#2#3 { \str_if_eq:nnTF {#1} { match } { - \tl_set:cv { l__eb_fn#2_#3shift_tl } - { l__spb_super_#3shift_dim } + \tl_set:cv { l__eb_fn#2_#3move_tl } + { l__spb_super_#3move_dim } } - { \tl_set:cn { l__eb_fn#2_#3shift_tl } {#1} } + { \tl_set:cn { l__eb_fn#2_#3move_tl } {#1} } } \cs_new_protected:Npn \eb_fnboth_format_set:nn #1#2 { @@ -882,12 +883,12 @@ footnotetype .value_required:n = true, footnotetype .initial:n = hang, - fnmark-vshift .code:n = \eb_fnmate_shift_set:nnn {#1} { mark } { v }, - fnmark-hshift .code:n = \eb_fnmate_shift_set:nnn {#1} { mark } { h }, - fntext-vshift .code:n = \eb_fnmate_shift_set:nnn {#1} { text } { v }, - fnmark-vshift .initial:n = 0pt, - fnmark-hshift .initial:n = 0pt, - fntext-vshift .initial:n = 0pt, + fnmark-vmove .code:n = \eb_fnmate_move_set:nnn {#1} { mark } { v }, + fnmark-hmove .code:n = \eb_fnmate_move_set:nnn {#1} { mark } { h }, + fntext-vmove .code:n = \eb_fnmate_move_set:nnn {#1} { text } { v }, + fnmark-vmove .initial:n = 0pt, + fnmark-hmove .initial:n = 0pt, + fntext-vmove .initial:n = 0pt, fnmark-num .choices:nn = { plain,pifont,pifont*,pifont-sans,pifont-sans* } @@ -1084,11 +1085,11 @@ \NewDocumentCommand{\eb@fnmate@super}{sm} { \IfBooleanTF{#1} - {\super{#2}[vshift = \l__eb_fntext_vshift_tl,nohshift]} + {\super{#2}[vmove = \l__eb_fntext_vmove_tl,nohmove]} { \super{\l__eb_fnmate_format_tl{#2}}[ - vshift = \l__eb_fnmark_vshift_tl, - hshift = \l__eb_fnmark_hshift_tl + vmove = \l__eb_fnmark_vmove_tl, + hmove = \l__eb_fnmark_hmove_tl ] } } @@ -2429,7 +2430,7 @@ } % %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2021/12/16}{1.41X} +\ProvidesExplFile{eb-tcolorbox.cfg}{2021/12/18}{1.41Z} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \setexercise #1 diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty index a4f54cb3a65..96c8971ed17 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybase.sty +++ b/Master/texmf-dist/tex/latex/easybook/easybase.sty @@ -20,7 +20,7 @@ %% This work has the LPPL maintenance status `maintained'. \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2021/12/16}{1.41X} +\ProvidesExplPackage{easybase}{2021/12/18}{1.41Z} {Typeset Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -189,6 +189,7 @@ \cs_if_exist:NF \chapter { \newcounter{chapter} + \providebool{@mainmatter} \bool_set_false:N \l__eb_class_mode_book_bool \ctex_define:n { chapter/tocline .code:n = { } } } @@ -548,14 +549,14 @@ { \tl_set:Nn \l__eb_footnote_value_tl {#1} } } } -\cs_new_protected:Npn \eb_fnmate_shift_set:nnn #1#2#3 +\cs_new_protected:Npn \eb_fnmate_move_set:nnn #1#2#3 { \str_if_eq:nnTF {#1} { match } { - \tl_set:cv { l__eb_fn#2_#3shift_tl } - { l__spb_super_#3shift_dim } + \tl_set:cv { l__eb_fn#2_#3move_tl } + { l__spb_super_#3move_dim } } - { \tl_set:cn { l__eb_fn#2_#3shift_tl } {#1} } + { \tl_set:cn { l__eb_fn#2_#3move_tl } {#1} } } \cs_new_protected:Npn \eb_fnboth_format_set:nn #1#2 { @@ -595,12 +596,12 @@ footnotetype .value_required:n = true, footnotetype .initial:n = hang, - fnmark-vshift .code:n = \eb_fnmate_shift_set:nnn {#1} { mark } { v }, - fnmark-hshift .code:n = \eb_fnmate_shift_set:nnn {#1} { mark } { h }, - fntext-vshift .code:n = \eb_fnmate_shift_set:nnn {#1} { text } { v }, - fnmark-vshift .initial:n = 0pt, - fnmark-hshift .initial:n = 0pt, - fntext-vshift .initial:n = 0pt, + fnmark-vmove .code:n = \eb_fnmate_move_set:nnn {#1} { mark } { v }, + fnmark-hmove .code:n = \eb_fnmate_move_set:nnn {#1} { mark } { h }, + fntext-vmove .code:n = \eb_fnmate_move_set:nnn {#1} { text } { v }, + fnmark-vmove .initial:n = 0pt, + fnmark-hmove .initial:n = 0pt, + fntext-vmove .initial:n = 0pt, fnmark-num .choices:nn = { plain,pifont,pifont*,pifont-sans,pifont-sans* } @@ -797,11 +798,11 @@ \NewDocumentCommand{\eb@fnmate@super}{sm} { \IfBooleanTF{#1} - {\super{#2}[vshift = \l__eb_fntext_vshift_tl,nohshift]} + {\super{#2}[vmove = \l__eb_fntext_vmove_tl,nohmove]} { \super{\l__eb_fnmate_format_tl{#2}}[ - vshift = \l__eb_fnmark_vshift_tl, - hshift = \l__eb_fnmark_hshift_tl + vmove = \l__eb_fnmark_vmove_tl, + hmove = \l__eb_fnmark_hmove_tl ] } } diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls index d2c4b24aff1..9a5ba4874cf 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybook.cls +++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls @@ -20,7 +20,7 @@ %% This work has the LPPL maintenance status `maintained'. \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2021/12/16}{1.41X} +\ProvidesExplClass{easybook}{2021/12/18}{1.41Z} {Typeset 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 dd93ef15ab8..b3a3497e42e 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}{2021/12/16}{1.41X} +\ProvidesExplFile{eb-tcolorbox.cfg}{2021/12/18}{1.41Z} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \setexercise #1 -- cgit v1.2.3