summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/spbmark/spbmark.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/spbmark/spbmark.sty')
-rw-r--r--macros/latex/contrib/spbmark/spbmark.sty40
1 files changed, 15 insertions, 25 deletions
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