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.sty9
1 files changed, 8 insertions, 1 deletions
diff --git a/macros/latex/contrib/spbmark/spbmark.sty b/macros/latex/contrib/spbmark/spbmark.sty
index 10defa9e25..3bc3a3dd01 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/20}{1.2E}
+\ProvidesExplPackage{spbmark}{2021/12/21}{1.2F}
{Customize superscripts and subscripts}
\cs_generate_variant:Nn \dim_max:nn { VV }
@@ -53,6 +53,11 @@
{ supersub } {#4}
}
}
+\cs_new_protected:Npn \defspbstyle #1#2
+ {
+ \spb_define:n
+ { style/#1 .code:n = \keys_set:nn { ctex/style } {#2} }
+ }
\spb_define:n
{
spvmove .tl_set:N = \l__spb_super_vmove_tl,
@@ -105,6 +110,8 @@
vsep .initial:n = 0.6ex,
halign .tl_set:N = \l__spb_supersub_halign_tl,
halign .initial:n = l,
+ style .choice:,
+ style .value_required:n = true,
mode .tl_set:N = \l__spb_mode_value_tl,
mode .initial:n = match
}