summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/spbmark/spbmark.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/spbmark/spbmark.tex')
-rw-r--r--macros/latex/contrib/spbmark/spbmark.tex24
1 files changed, 15 insertions, 9 deletions
diff --git a/macros/latex/contrib/spbmark/spbmark.tex b/macros/latex/contrib/spbmark/spbmark.tex
index f4d22c3cfc..727ee086a7 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.45,
- date = 2024/02/04,
+ version = v1.46,
+ date = 2024/02/05,
authors = Qu Yi,
info = Customize superscript and subscript,
email = toquyi@163.com,
@@ -19,7 +19,7 @@
color-scheme = blue,
title-format = \huge\bfseries\scshape,
listings-options = {numbers = none,gobble = 2,lineskip = 1pt},
- pre-output = {\parindent = 0em \setstretch{1.3}},
+ pre-output = {\parindent = 0em\setstretch{1.3}},
before-skip = \smallskipamount,
after-skip = \smallskipamount
}
@@ -40,6 +40,7 @@
\newsplitarg{\splitdarg}{(}{)}
\newnote{\newtag}[1][New]{\textcolor{red}{\ding{73}\ #1}}
\renewcommand{\emph}[1]{\textcolor{red}{#1}}
+\renewcommand{\cnltx@write@lastname}{}
\makeatother
\begin{document}
@@ -47,12 +48,17 @@
\label{sec:macro package options}
The following macro package options will redefine the script commands of the \LaTeX{} kernel. If you do not specify the values of boolean options, they default to \code{true}. These options can also be changed in the preamble area and main body using the global control command \cs{sbpset}.
\begin{options}
- \keychoice{text}{true,\fbox{false}}
- \cs{textsuperscript} and \cs{textsubscript} are equivalent to the \cs{super} and \cs{sub} commands.
- \keychoice{math}{true,\fbox{false}}
- \cs{sp} and \cs{sb} are equivalent to the \cs{super} and \cs{sub} commands.
- \keychoice{foot}{true,\fbox{false}}
- The format of the footnote mark match the superscript global move and format settings.
+ \keychoice{text}{true,\fbox{false}}\newtag[Changed]%
+ \cs{textsuperscript} and \cs{textsubscript} are equivalent to the \cs{super} and \cs{sub} commands. At this point, you can use the \cs{defspbstyle} command to define the style \code{textsp} and \code{textsb} to change the format of the text superscript and subscript.
+ \keychoice{math}{true,\fbox{false}}\newtag[Changed]%
+ \cs{sp} and \cs{sb} are equivalent to the \cs{super} and \cs{sub} commands. At this point, you can use the \cs{defspbstyle} command to define the style \code{mathsp} and \code{mathsb} to change the format of the math superscript and subscript.
+ \keychoice{foot}{true,\fbox{false}}\newtag[Changed]%
+ The format of the footnote mark match the superscript global move and format settings. At this point, you can use the \cs{defspbstyle} command to define the superscript style \code{fnmark} to change the format of the footnote mark.
+ \begin{example}[code-only]
+ \defspbstyle{textsp}{vmove=-1pt,cmd=\bfseries}
+ \defspbstyle{mathsb}{hmove=0.5em}
+ \defspbstyle{fnmark}{cmd=\small\color{red}}
+ \end{example}
\keychoice{both}{true,\fbox{false}}
The values of \option{text} and \option{math} two options are \code{true} or \code{false} at the same time.
\keychoice{all}{true,\fbox{false}}