summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/spbmark
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-11-08 03:02:49 +0000
committerNorbert Preining <norbert@preining.info>2021-11-08 03:02:49 +0000
commitf3bd7117b5dfa4a51d51c4e416c8a656651f1ce2 (patch)
tree5053c95dab175775cc85badf7990ffa535676f23 /macros/latex/contrib/spbmark
parent8389f0bb8e6af2c5dcbfe3cdad746a9c170d1157 (diff)
CTAN sync 202111080302
Diffstat (limited to 'macros/latex/contrib/spbmark')
-rw-r--r--macros/latex/contrib/spbmark/spbmark.pdfbin67381 -> 67349 bytes
-rw-r--r--macros/latex/contrib/spbmark/spbmark.sty40
-rw-r--r--macros/latex/contrib/spbmark/spbmark.tex23
3 files changed, 30 insertions, 33 deletions
diff --git a/macros/latex/contrib/spbmark/spbmark.pdf b/macros/latex/contrib/spbmark/spbmark.pdf
index 7c978d9362..519c8b8c3b 100644
--- a/macros/latex/contrib/spbmark/spbmark.pdf
+++ b/macros/latex/contrib/spbmark/spbmark.pdf
Binary files differ
diff --git a/macros/latex/contrib/spbmark/spbmark.sty b/macros/latex/contrib/spbmark/spbmark.sty
index 6d0fcfd2c4..123bfb9c24 100644
--- a/macros/latex/contrib/spbmark/spbmark.sty
+++ b/macros/latex/contrib/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
diff --git a/macros/latex/contrib/spbmark/spbmark.tex b/macros/latex/contrib/spbmark/spbmark.tex
index 967ebbd694..5d8bebe053 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.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}