diff options
author | Norbert Preining <norbert@preining.info> | 2021-12-18 03:01:04 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-12-18 03:01:04 +0000 |
commit | 0b26b7204c72706e2a9bb06b8f52ebbe454b3325 (patch) | |
tree | cf803ed180425a7bb671474a7e5ca23f8c6e2c56 /macros/latex/contrib | |
parent | 6827f87d3315fc677ae89a9260d455a312a90864 (diff) |
CTAN sync 202112180301
Diffstat (limited to 'macros/latex/contrib')
-rw-r--r-- | macros/latex/contrib/colorist/colorart.cls | 6 | ||||
-rw-r--r-- | macros/latex/contrib/colorist/colorbook.cls | 6 | ||||
-rw-r--r-- | macros/latex/contrib/colorist/colorist-doc.pdf | bin | 94591 -> 104178 bytes | |||
-rw-r--r-- | macros/latex/contrib/colorist/colorist-doc.tex | 12 | ||||
-rw-r--r-- | macros/latex/contrib/colorist/colorist.sty | 10 | ||||
-rw-r--r-- | macros/latex/contrib/easybook/easybook.dtx | 22 | ||||
-rw-r--r-- | macros/latex/contrib/easybook/easybook.pdf | bin | 593346 -> 593310 bytes | |||
-rw-r--r-- | macros/latex/contrib/easybook/easybook.tex | 34 | ||||
-rw-r--r-- | macros/latex/contrib/spbmark/spbmark.pdf | bin | 68292 -> 68315 bytes | |||
-rw-r--r-- | macros/latex/contrib/spbmark/spbmark.sty | 54 | ||||
-rw-r--r-- | macros/latex/contrib/spbmark/spbmark.tex | 8 |
11 files changed, 71 insertions, 81 deletions
diff --git a/macros/latex/contrib/colorist/colorart.cls b/macros/latex/contrib/colorist/colorart.cls index 96a8857d97..abd20901e2 100644 --- a/macros/latex/contrib/colorist/colorart.cls +++ b/macros/latex/contrib/colorist/colorart.cls @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesClass{colorart} - [2021/11/09 A colorful article style] + [2021/12/16 A colorful article style] \def\colorclass@baseclass{article} \RequirePackage{kvoptions} \RequirePackage{etoolbox} @@ -208,10 +208,6 @@ \PassOptionsToPackage{verbose=silent}{microtype} \RequirePackage{microtype} -\AtEndPreamble{\AtBeginDocument{\microtypesetup{deactivate}{\scshape}\microtypesetup{reactivate}}} -\AtEndPreamble{\AtBeginDocument{\microtypesetup{deactivate}{\bfseries\scshape}\microtypesetup{reactivate}}} -\AtEndPreamble{\AtBeginDocument{\microtypesetup{deactivate}{\sffamily\scshape}\microtypesetup{reactivate}}} -\AtEndPreamble{\AtBeginDocument{\microtypesetup{deactivate}{\ttfamily\scshape}\microtypesetup{reactivate}}} \PassOptionsToPackage{all}{nowidow} \RequirePackage{nowidow} \RequirePackage{embrac} diff --git a/macros/latex/contrib/colorist/colorbook.cls b/macros/latex/contrib/colorist/colorbook.cls index 6ef66a3be8..a2ee22f3de 100644 --- a/macros/latex/contrib/colorist/colorbook.cls +++ b/macros/latex/contrib/colorist/colorbook.cls @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesClass{colorbook} - [2021/11/09 A colorful book style] + [2021/12/16 A colorful book style] \def\colorclass@baseclass{book} \RequirePackage{kvoptions} \RequirePackage{etoolbox} @@ -208,10 +208,6 @@ \PassOptionsToPackage{verbose=silent}{microtype} \RequirePackage{microtype} -\AtEndPreamble{\AtBeginDocument{\microtypesetup{deactivate}{\scshape}\microtypesetup{reactivate}}} -\AtEndPreamble{\AtBeginDocument{\microtypesetup{deactivate}{\bfseries\scshape}\microtypesetup{reactivate}}} -\AtEndPreamble{\AtBeginDocument{\microtypesetup{deactivate}{\sffamily\scshape}\microtypesetup{reactivate}}} -\AtEndPreamble{\AtBeginDocument{\microtypesetup{deactivate}{\ttfamily\scshape}\microtypesetup{reactivate}}} \PassOptionsToPackage{all}{nowidow} \RequirePackage{nowidow} \RequirePackage{embrac} diff --git a/macros/latex/contrib/colorist/colorist-doc.pdf b/macros/latex/contrib/colorist/colorist-doc.pdf Binary files differindex 7fea6a76f9..4059849823 100644 --- a/macros/latex/contrib/colorist/colorist-doc.pdf +++ b/macros/latex/contrib/colorist/colorist-doc.pdf diff --git a/macros/latex/contrib/colorist/colorist-doc.tex b/macros/latex/contrib/colorist/colorist-doc.tex index 273f82b896..560dcb2796 100644 --- a/macros/latex/contrib/colorist/colorist-doc.tex +++ b/macros/latex/contrib/colorist/colorist-doc.tex @@ -1,5 +1,13 @@ \documentclass[English,Chinese,French,allowbf]{colorart} +\setsansfont{texgyreheros}[ + Scale=MatchLowercase, + UprightFont=*-regular, + BoldFont=*-bold, + ItalicFont=*-italic, + BoldItalicFont=*-bolditalic, +] + %%================================ %% Import toolkit %%================================ @@ -93,9 +101,9 @@ \title{{\normalfont\bfseries\color{maintext}\colorist{}}\\write your articles or books in a colorful way} \author{Jinwen XU} -\thanks{Corresponding to: \texttt{\colorist{} 2021/11/09}} +\thanks{Corresponding to: \texttt{\colorist{} 2021/12/16}} \email{\href{mailto:ProjLib@outlook.com}{ProjLib@outlook.com}} -\date{November 2021, in Paris} +\date{December 2021, in Paris} \maketitle diff --git a/macros/latex/contrib/colorist/colorist.sty b/macros/latex/contrib/colorist/colorist.sty index a147b3bf41..fa30bf3aa0 100644 --- a/macros/latex/contrib/colorist/colorist.sty +++ b/macros/latex/contrib/colorist/colorist.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{colorist} - [2021/11/09 A colorful style for articles and books] + [2021/12/16 A colorful style for articles and books] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \SetupKeyvalOptions{% @@ -400,10 +400,10 @@ \setlist[description]{font=\normalfont\conditionalbfseries} \setlist[itemize]{leftmargin=*} -\gappto{\PJLlang@langconfig@common}{\setlist[itemize,1]{label=\textcolor{maintext!25}{$\bullet$}}} -\gappto{\PJLlang@langconfig@FR}{\setlist[itemize,1]{label=\textcolor{maintext!50}{---}}} -\setlist[itemize,2]{label=\textcolor{maintext!27}{--}} -\setlist[itemize,3]{label=\textcolor{maintext!27}{\texttt{*}}} +\gappto{\PJLlang@langconfig@common}{\setlist[itemize,1]{label=\colorlet{currentcolor}{.}\textcolor{currentcolor!27!paper}{$\bullet$}}} +\gappto{\PJLlang@langconfig@FR}{\setlist[itemize,1]{label=\colorlet{currentcolor}{.}\textcolor{currentcolor!50!paper}{---}}} +\setlist[itemize,2]{label=\colorlet{currentcolor}{.}\textcolor{currentcolor!27!paper}{--}} +\setlist[itemize,3]{label=\colorlet{currentcolor}{.}\textcolor{currentcolor!27!paper}{\texttt{*}}} %%================================ %% Blank page diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx index 655d567ae0..752a7341c4 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/12/15}{1.41V} +\ProvidesExplClass{easybook}{2021/12/16}{1.41X} {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/15}{1.41V} +\ProvidesExplPackage{easybase}{2021/12/16}{1.41X} {Typeset Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -1086,10 +1086,9 @@ \IfBooleanTF{#1} {\super{#2}[vshift = \l__eb_fntext_vshift_tl,nohshift]} { - \super{#2}[ - cmd = \l__eb_fnmate_format_tl, - vshift = \l__eb_fnmark_vshift_tl, - hshift = \l__eb_fnmark_hshift_tl + \super{\l__eb_fnmate_format_tl{#2}}[ + vshift = \l__eb_fnmark_vshift_tl, + hshift = \l__eb_fnmark_hshift_tl ] } } @@ -1393,8 +1392,8 @@ { \tl_set:Nx \@currentlabel { - \use:c { p@#1 } - \tl_use:c { the#1 } + \exp_args:Nnv + \use:c { p@#1 } { the#1 } } } \NewDocumentCommand{\counteruse}{soD(){arabic}mO{.}d()} @@ -2391,6 +2390,7 @@ \labelformat{chapter}{\CTEXthechapter} \labelformat{figure}{\figurename~#1} \labelformat{table}{\tablename~#1} +\labelformat{exercise}{\exercisename~#1} \providecommand{\bibname}{\refname} \ctex_define:n { @@ -2429,7 +2429,7 @@ } %</package> %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2021/12/15}{1.41V} +\ProvidesExplFile{eb-tcolorbox.cfg}{2021/12/16}{1.41X} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \setexercise #1 @@ -2565,7 +2565,7 @@ }{} \cs_new:Npn \eb_exercise_label_noempty_use: { - \eb_current_label:n { eb@exercise } + \eb_current_label:n { exercise } \tl_if_empty:NF \eb@tc@exercise@label { \exp_args:NV \label \eb@tc@exercise@label } } @@ -2604,7 +2604,7 @@ \IfBooleanF{#1} { \eb_tcb_toc_counter_numsep:n { exercise } - \tl_set_eq:NN \theeb@exercise \thetcbcounter + \cs_set_eq:NN \theexercise \thetcbcounter \eb_exercise_label_noempty_use: } \eb@tc@exercise@title diff --git a/macros/latex/contrib/easybook/easybook.pdf b/macros/latex/contrib/easybook/easybook.pdf Binary files differindex 1369c58630..b29e98d230 100644 --- a/macros/latex/contrib/easybook/easybook.pdf +++ b/macros/latex/contrib/easybook/easybook.pdf diff --git a/macros/latex/contrib/easybook/easybook.tex b/macros/latex/contrib/easybook/easybook.tex index 9773c1cd4a..3c36ea7846 100644 --- a/macros/latex/contrib/easybook/easybook.tex +++ b/macros/latex/contrib/easybook/easybook.tex @@ -20,8 +20,8 @@ name = easybook, color-scheme = blue, title = EASYBOOK 使用手册, - version = v1.41V, - date = 2021/12/15, + version = v1.41X, + date = 2021/12/16, authors = 瞿毅, info = 排版简体中文学位论文和书籍, email = q1jx@foxmail.com, @@ -410,7 +410,7 @@ \ebstyle{connect-figure = {-}} \end{ctexexam} - 文档类有三种选项:布尔型 \boolkey*{key},选项的值为 \code{true} 或 \code{false},如果不指定默认为真。键值型 \key*-{key}{value} 需要为选项指定值,后面 \code{=} 号不能省略。选择型 \choicekey*{key}{one,\default{two},three} 根据提供的可选值进行设定。 + 文档类有三种选项:布尔型 \boolkey*{key},选项的值为真 \code{true} 或假 \code{false},如果不指定默认为真。键值型 \key*-{key}{value} 需要为选项指定值,后面 \code{=} 号不能省略。选择型 \choicekey*{key}{one,\default{two},three} 根据提供的可选值进行设定。 \end{commands} \subsection{风格} @@ -420,7 +420,7 @@ 预置了四种颜色主题,默认主题 \code{none} 为黑白页面,颜色主题不包括超链接。 \begin{commands} \command{DeclareThemeColor}[\splitmarg{风格名称,ctex@frame,ctex@emph,ctex@verb}] - 声明新的颜色主题命令。它的参数以英文逗号分隔,第一部分为颜色风格名称,后面三部分为 \code{HTML} 颜色代码,构成颜色主题。类似地更改超链接颜色见\ref{subsec:hyperlinks}。 + 声明新的颜色主题命令。它的参数以英文逗号分隔,第一部分为颜色风格名称,后面三部分为 \code{HTML} 颜色代码,构成主题颜色列表。类似地更改超链接颜色见\ref{subsec:hyperlinks}。 \end{commands} \keyval-{color-every}{HTML颜色代码}\Default 统一设置主题的各部分颜色,参数是 6 个十六进制数字组成的 \code{HTML} 颜色代码,任意颜色的代码可以在常见的图片处理工具拾色器中查看。 @@ -495,7 +495,7 @@ 超链接颜色样式,预置了四种超链接颜色风格。为使相关颜色能够正确显示,\option{linkcolor} 选项应当在 \option{linktype} 前使用。 \begin{commands} \command{DeclareLinkColor}[\splitmarg{风格名称,ctex@link,ctex@url,ctex@cite}] - 声明新的超链接颜色样式命令。它的参数以英文逗号分隔,第一部分为颜色风格名称,后面三部分为 \code{HTML} 颜色代码,构成超链接颜色。 + 声明新的超链接颜色样式命令。它的参数以英文逗号分隔,第一部分为颜色风格名称,后面三部分为 \code{HTML} 颜色代码,构成超链接颜色列表。 \end{commands} \keyval-{linkcolor-every}{HTML颜色代码}\Default 统一设置超链接的各部分颜色,参数是 6 个十六进制数字组成的 \code{HTML} 颜色代码,任意颜色的代码可以在常见的图片处理工具拾色器中查看。 @@ -535,17 +535,17 @@ \label{subsec:other font} \begin{options} \keyval-{caption-table}{字体命令}\Module{subfont}\Default{\cs*{sffamily}\cs*{small}} - 表格题注的字体设置,包括字体族、字体系列、字体尺寸和字体形状命令。 + 设置表格题注的字体,包括字体族、字体系列、字体尺寸和字体形状命令。 \keyval-{caption-figure}{字体命令}\Default{\cs*{sffamily}\cs*{small}} - 图片题注的字体设置,包括字体族、字体系列、字体尺寸和字体形状命令。 + 设置图片题注的字体,包括字体族、字体系列、字体尺寸和字体形状命令。 \keyval-{caption-listing}{字体命令}\Default{\cs*{sffamily}\cs*{small}} - 代码题注的字体设置,包括字体族、字体系列、字体尺寸和字体形状命令。 + 设置代码题注的字体,包括字体族、字体系列、字体尺寸和字体形状命令。 \keyval-{caption-every}{字体命令}\Default{\cs*{sffamily}\cs*{small}} 同时设置图片、表格和代码题注的字体命令。 \keyval-{footnote}{字体命令}\Default - 设置脚注标记与内容的字体,包括字体族、字体系列、字体尺寸和字体形状命令。 + 设置脚注标记与内容的字体,包括字体族、字体系列和字体形状命令。 \keyval-{marginpar}{字体命令}\Default{\cs*{footnotesize}} - 边注的字体设置,包括字体族、字体系列、字体尺寸和字体形状命令。 + 设置边注的字体,包括字体族、字体系列、字体尺寸和字体形状命令。 \end{options} \begin{commands} @@ -793,13 +793,13 @@ \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*{super-vshift} 全局的值。 + 脚注正文标记的垂直偏移,可以设为刚性长度,或用 \code{match} 匹配 \option*{spvshift} 全局的值。 \keychoice{fnmark-hshift}{fixed length,match}\Default{0pt} - 脚注正文标记的水平偏移,可以设为刚性长度,或用 \code{match} 匹配 \option*{super-hshift} 全局的值。 + 脚注正文标记的水平偏移,可以设为刚性长度,或用 \code{match} 匹配 \option*{sphshift} 全局的值。 \keychoice{fntext-vshift}{fixed length,match}\Default{0pt} - 脚注内容标记的垂直偏移,可以设为刚性长度,或用 \code{match} 匹配 \option*{super-vshift} 全局的值。 + 脚注内容标记的垂直偏移,可以设为刚性长度,或用 \code{match} 匹配 \option*{spvshift} 全局的值。 \keychoice{fnmate-form}{format code,match}\Default - 默认脚注标记的格式,\code{match} 可以匹配 \option*{super-format} 全局的值。一般配合选项 \keyis-{fnmate-num}{plain} 使用,例如配合 \pkg*{circledsteps} 宏包的带圈符号命令 \cs*{Circled} 给脚注标记添加圆圈: + 默认脚注标记的格式,选项 \code{match} 可以匹配 \option*{spcmd} 全局的值。一般与 \keyis-{fnmate-num}{plain} 原生编号形式使用,例如用 \pkg*{circledsteps} 宏包的带圈符号命令 \cs*{Circled} 给脚注标记添加圆圈: \begin{ctexexam} \usepackage{circledsteps} \ebhdrset @@ -809,9 +809,9 @@ } \end{ctexexam} \keychoice{fncust-form}{format code,match}\Default - 单独设定自定义脚注标记的格式,\code{match} 可以匹配 \option*{super-format} 全局的值。自定义脚注的命令与用法见\ref{subsubsec:custom footnotes}。 + 单独设定自定义脚注标记的格式,选项 \code{match} 可以匹配 \option*{spcmd} 全局的值。自定义脚注的命令与用法可以见\ref{subsubsec:custom footnotes}。 \keychoice{fnboth-form}{format code,match}\Default - 同时设定默认脚注标记 \option{fnmate-form} 和自定义脚注标记 \option{fncust-form} 的格式。两种脚注标记匹配上标格式 \option*{super-format} 的值是独立的,使用 \code{match} 则可以同时匹配。标记格式选项含有字体命令会覆盖 \option{footnote} 的设置,最后一个格式命令可以带有一个参数接受脚注标记。 + 同时设定默认脚注标记 \option{fnmate-form} 和自定义脚注标记 \option{fncust-form} 的格式。两种脚注标记匹配上标格式 \option*{spcmd} 的值是独立的,使用 \code{match} 则可以同时匹配。标记格式选项含有字体命令会覆盖 \option{footnote} 的设置,最后一个格式命令可以带有一个参数接受脚注标记。 \keyval-{fnpara-form}{格式代码}\Default 脚注内容的格式,在此设置字体命令会覆盖 \option{footnote} 的设置,最后一个格式命令可以带有一个参数接受脚注内容。 \kvsplit{fntext-code}{前代码,后代码}\newline @@ -1064,7 +1064,7 @@ \keyval-{enumitem}{键值列表3} 局部传递 \pkg*{enumitem} 宏包的格式选项给习题条目列表。 \keyval-{label}{标签内容} - 设置习题环境的引用标签,它与标签格式命令 \cs{labelformat} 对应的计数器是 \code{eb@exercise}。 + 设置习题环境的引用标签,它与标签格式命令 \cs{labelformat} 对应的计数器是 \code{exercise}。 \end{options} \command{setexerlist}[\marg{键值列表3}] 命令 \cs{setexerlist} 用于全局设置习题条目选项 \meta{键值列表3} 的值。\meta{键值列表3} 的选项与 \pkg*{enumitem} 的排序列表相同,也可以使用下述 \option{enumitem} 选项,不过第一个选项无法是短编号形式,这被 \option{number} 选项代替。 diff --git a/macros/latex/contrib/spbmark/spbmark.pdf b/macros/latex/contrib/spbmark/spbmark.pdf Binary files differindex a7d8f24997..0ba9784d34 100644 --- a/macros/latex/contrib/spbmark/spbmark.pdf +++ b/macros/latex/contrib/spbmark/spbmark.pdf diff --git a/macros/latex/contrib/spbmark/spbmark.sty b/macros/latex/contrib/spbmark/spbmark.sty index 37be59700c..72c6240a5f 100644 --- a/macros/latex/contrib/spbmark/spbmark.sty +++ b/macros/latex/contrib/spbmark/spbmark.sty @@ -9,7 +9,7 @@ % https://creativecommons.org/licenses/by/4.0/legalcode \NeedsTeXFormat{LaTeX2e}[2018/12/31] \RequirePackage{xparse,l3keys2e} -\ProvidesExplPackage{spbmark}{2021/12/15}{1.2A} +\ProvidesExplPackage{spbmark}{2021/12/16}{1.2B} {Customize superscripts and subscripts} \cs_generate_variant:Nn \dim_max:nn { VV } @@ -130,50 +130,40 @@ } \cs_set_eq:NN \spb@textsuperscript@save \textsuperscript \cs_set_eq:NN \spb@textsubscript@save \textsubscript -\cs_set_eq:NN \spb@sp@save \sp -\cs_set_eq:NN \spb@sb@save \sb -\cs_new:Npn \spb_math:nn #1 - { - \str_case:nn {#1} - { - { super } { \spb@sp@save } - { sub } { \spb@sb@save } - } - } +\cs_set_eq:NN \spb@math@super@save \sp +\cs_set_eq:NN \spb@math@sub@save \sb \cs_new:Npn \spb_math_print_store_i:nn #1#2 { \hbox_set:Nn \l_tmpa_box - { \ensuremath{\tl_use:c { l__spb_#1_cmd_i_tl }{\spb_math:nn {#1} {#2}}} } + { + \ensuremath + { + \use:c { spb@math@#1@save } + { \tl_use:c { l__spb_#1_cmd_i_tl }{#2} } + } + } } \cs_new:Npn \spb_text_print_store_i:nn #1#2 { \hbox_set:Nn \l_tmpa_box - { \tl_use:c { l__spb_#1_cmd_i_tl }{\use:c { spb@text#1script@save }{#2}} } + { + \use:c { spb@text#1script@save } + { \tl_use:c { l__spb_#1_cmd_i_tl }{#2} } + } } \cs_new:Npn \spb_math_print_store_ii:nn #1#2 { - \hbox_set:Nn \l_tmpa_box - { \ensuremath{\l__spb_super_cmd_ii_tl{\spb@sp@save{#1}}} } + \hbox_set:Nn \l_tmpa_box + { \ensuremath{\spb@math@super@save{\l__spb_super_cmd_ii_tl{#1}}} } \hbox_set:Nn \l_tmpb_box - { - \ensuremath - { - \tl_if_novalue:VF \l__spb_sub_cmd_ii_tl - { \l__spb_sub_cmd_ii_tl } - { \spb@sb@save{#2} } - } - } + { \ensuremath{\spb@math@sub@save{\l__spb_sub_cmd_ii_tl{#2}}} } } \cs_new:Npn \spb_text_print_store_ii:nn #1#2 { \hbox_set:Nn \l_tmpa_box - { \l__spb_super_cmd_ii_tl{\spb@textsuperscript@save{#1}} } + { \spb@textsuperscript@save{\l__spb_super_cmd_ii_tl{#1}} } \hbox_set:Nn \l_tmpb_box - { - \tl_if_novalue:VF \l__spb_sub_cmd_ii_tl - { \l__spb_sub_cmd_ii_tl } - { \spb@textsubscript@save{#2} } - } + { \spb@textsubscript@save{\l__spb_sub_cmd_ii_tl{#2}} } } \cs_new_protected:Npn \spb_box_ht_dp_assign:nn #1#2 { @@ -199,7 +189,7 @@ { match } {#3} } } -\cs_new_protected:Npn \spb_local_value_init:n #1 +\cs_new_protected:Npn \spb_global_value_init:n #1 { \tl_gset:Nn \g__spb_hshift_init_tl {#1} \tl_gset:Nn \g__spb_vshift_init_tl {#1} @@ -212,7 +202,7 @@ {O{}>{\SplitArgument{1}{,}}O{}mO{}} { \group_begin: - \spb_local_value_init:n {#1} + \spb_global_value_init:n {#1} \keys_set:nn { ctex/style } {##1,##4} \spb_mode_switch:nnn { \spb_math_print_store_i:nn {#1} {##3} } @@ -261,7 +251,7 @@ \NewDocumentCommand{\supersub}{O{}mmO{}} { \group_begin: - \spb_local_value_init:n { supersub } + \spb_global_value_init:n { supersub } \keys_set:nn { ctex/style } {#1,#4} \spb_mode_switch:nnn { \spb_math_print_store_ii:nn {#2} {#3} } diff --git a/macros/latex/contrib/spbmark/spbmark.tex b/macros/latex/contrib/spbmark/spbmark.tex index 8a4e5d9a92..a8f74d041b 100644 --- a/macros/latex/contrib/spbmark/spbmark.tex +++ b/macros/latex/contrib/spbmark/spbmark.tex @@ -6,8 +6,8 @@ { package = spbmark, title = the spbmark package, - version = v1.2A, - date = 2021/12/15, + version = v1.2B, + date = 2021/12/16, authors = Qu Yi, info = Customize superscript and subscript, email = q1jx@foxmail.com, @@ -150,9 +150,9 @@ If you need to use the original definitions of \cs{textsuperscript}, \cs{textsub Save the original definition of the \cs{textsuperscript} command, output superscript in the text mode. \command{spb@textsubscript@save}[\marg{content}] Save the original definition of the \cs{textsubscript} command, output subscript in the text mode. - \command{spb@sp@save}[\marg{content}] + \command{spb@math@super@save}[\marg{content}] Save the original definition of the \cs{sp} command, output superscript in the math mode. - \command{spb@sb@save}[\marg{content}] + \command{spb@math@sub@save}[\marg{content}] Save the original definition of the \cs{sb} command, output subscript in the math mode. \end{commands} |