diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/spbmark/spbmark.pdf | bin | 67381 -> 67349 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/spbmark/spbmark.tex | 23 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/spbmark/spbmark.sty | 40 |
3 files changed, 30 insertions, 33 deletions
diff --git a/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf b/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf Binary files differindex 7c978d9362a..519c8b8c3be 100644 --- a/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf +++ b/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf diff --git a/Master/texmf-dist/doc/latex/spbmark/spbmark.tex b/Master/texmf-dist/doc/latex/spbmark/spbmark.tex index 967ebbd694c..5d8bebe0533 100644 --- a/Master/texmf-dist/doc/latex/spbmark/spbmark.tex +++ b/Master/texmf-dist/doc/latex/spbmark/spbmark.tex @@ -6,8 +6,8 @@ { package = spbmark, title = the spbmark package, - version = v1.1G, - date = 2021/10/30, + version = v1.1H, + date = 2021/11/06, authors = Qu Yi, info = Customize superscript and subscript, email = q1jx@foxmail.com, @@ -41,14 +41,21 @@ \section{Macro package options} \label{sec:macro package options} +The following macro package options will redefine the scripts commands of the \LaTeX{} kernel. If you do not specify the values of boolean options, they default to \code{true}. \begin{options} - \opt{ctex}\Default! - This option works with the C\TeX{} document class used by simplified Chinese users, there's actually no functional change. Adding path \module*{style} to \cs*{ctexset} command, which is equivalent to using \cs{spbset}. - \keychoice{newsupb}{text,math,foot,all}\Default - \option{newsupb} is a compound option that can select multiple values and will redefine the scripts commands of the \LaTeX{} kernel. \code{text} stands for \cs{textsuperscript} and \cs{textsubscript} are equivalent to the \cs{super} and \cs{sub} commands. \code{math} indicates that \cs{sp} and \cs{sb} are equivalent to the \cs{super} and \cs{sub} commands. \code{foot} will make the format of the footnote mark match the superscript offsets and format of the \cs{spbset} global setting. \code{all} will selects all previous three values at the same time. + \keybool{text}\Default{false} + \cs{textsuperscript} and \cs{textsubscript} are equivalent to the \cs{super} and \cs{sub} commands. + \keybool{math}\Default{false} + \cs{sp} and \cs{sb} are equivalent to the \cs{super} and \cs{sub} commands. + \keybool{foot}\Default{false} + The format of the footnote mark match the superscript offsets and format of the \cs{spbset} global setting. + \opt{both}\Default! + The values of \option{text} and \option{math} two options are \code{true} at the same time. + \opt{all}\Default! + The values of \option{text}, \option{math} and \option{foot} three options are \code{true} at the same time. \begin{example}[code-only] - \usepackage[newsupb = {text,math,foot}]{spbmark} - \usepackage[newsupb = all]{spbmark} + \usepackage[both]{spbmark} + \usepackage[text,foot = true]{spbmark} \end{example} \end{options} diff --git a/Master/texmf-dist/tex/latex/spbmark/spbmark.sty b/Master/texmf-dist/tex/latex/spbmark/spbmark.sty index 6d0fcfd2c4e..123bfb9c246 100644 --- a/Master/texmf-dist/tex/latex/spbmark/spbmark.sty +++ b/Master/texmf-dist/tex/latex/spbmark/spbmark.sty @@ -9,29 +9,25 @@ % https://creativecommons.org/licenses/by/4.0/legalcode \NeedsTeXFormat{LaTeX2e}[2018/12/31] \RequirePackage{xparse,l3keys2e} -\ProvidesExplPackage{spbmark}{2021/10/30}{1.1G} +\ProvidesExplPackage{spbmark}{2021/11/06}{1.1H} {Customize superscripts and subscripts} -\cs_new_protected:Npn \spb_define:n { \keys_define:nn { spbmark } } -\cs_new_protected:Npn \spbset { \keys_set:nn { spbmark } } -\bool_new:N \l_spb_newsupb_text_bool -\bool_new:N \l_spb_newsupb_math_bool -\bool_new:N \l_spb_newsupb_foot_bool -\bool_new:N \l_spb_newsupb_all_bool - +\cs_new_protected:Npn \spb_define:n { \keys_define:nn { ctex/style } } +\cs_new_protected:Npn \spbset { \keys_set:nn { ctex/style } } \keys_define:nn { spbmark/option } { - ctex .code:n = - { - \cs_set:Npn \spb_define:n { \keys_define:nn { ctex/style } } - \cs_set:Npn \spbset { \keys_set:nn { ctex/style } } - }, - newsupb .multichoices:nn = - { text,math,foot,all } - { \bool_set_true:c { l_spb_newsupb_#1_bool } }, - newsupb .default:n = all, - newsupb/true .meta:n = { newsupb = all }, - newsupb/false .code:n = { } + text .bool_set:N = \l_spb_newsupb_text_bool, + text .default:n = true, + math .bool_set:N = \l_spb_newsupb_math_bool, + math .default:n = true, + foot .bool_set:N = \l_spb_newsupb_foot_bool, + foot .default:n = true, + both .meta:n = { text,math }, + both .value_forbidden:n = true, + all .meta:n = { text,math,foot }, + all .value_forbidden:n = true, + ctex .code:n = { }, + newsupb .code:n = { } } \ProcessKeysOptions{spbmark/option} @@ -262,12 +258,6 @@ The~l~parameter~will~be~used~by~default. } -\bool_if:NT \l_spb_newsupb_all_bool - { - \bool_set_true:N \l_spb_newsupb_text_bool - \bool_set_true:N \l_spb_newsupb_math_bool - \bool_set_true:N \l_spb_newsupb_foot_bool - } \bool_if:NT \l_spb_newsupb_text_bool { \cs_set_eq:NN \textsuperscript \super |