summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-11-07 21:27:40 +0000
committerKarl Berry <karl@freefriends.org>2021-11-07 21:27:40 +0000
commit4515fa2482931c7a82579ed40e52d15cfcedcd16 (patch)
treeacee73260d30ed30c3c59a13e7fb269200048899
parent0f893e6ee10f3bf2950880f0eab645e4fe951988 (diff)
spbmark (7nov21)
git-svn-id: svn://tug.org/texlive/trunk@60989 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/spbmark/spbmark.pdfbin67381 -> 67349 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spbmark/spbmark.tex23
-rw-r--r--Master/texmf-dist/tex/latex/spbmark/spbmark.sty40
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
index 7c978d9362a..519c8b8c3be 100644
--- a/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf
+++ b/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf
Binary files differ
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