texlive[61325] Master/texmf-dist: spbmark (16dec21)
commits+karl at tug.org
commits+karl at tug.org
Thu Dec 16 22:19:01 CET 2021
Revision: 61325
http://tug.org/svn/texlive?view=revision&revision=61325
Author: karl
Date: 2021-12-16 22:19:00 +0100 (Thu, 16 Dec 2021)
Log Message:
-----------
spbmark (16dec21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf
trunk/Master/texmf-dist/doc/latex/spbmark/spbmark.tex
trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty
Modified: trunk/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/spbmark/spbmark.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/spbmark/spbmark.tex 2021-12-16 21:18:48 UTC (rev 61324)
+++ trunk/Master/texmf-dist/doc/latex/spbmark/spbmark.tex 2021-12-16 21:19:00 UTC (rev 61325)
@@ -6,7 +6,7 @@
{
package = spbmark,
title = the spbmark package,
- version = v1.2,
+ version = v1.2A,
date = 2021/12/15,
authors = Qu Yi,
info = Customize superscript and subscript,
@@ -104,9 +104,9 @@
Cancel the horizontal offset of superscript and subscript at the same time.
\opt{novshift}\Default!
Cancel the vertical offset of superscript and subscript at the same time.
- \keyval{spcmd}{format code}\Default
+ \keyval{spcmd}{format cmds}\Default
Control the format of superscript, the last command in the code can take an argument, which is a superscript.
- \keyval{sbcmd}{format code}\Default
+ \keyval{sbcmd}{format cmds}\Default
Control the format of subscript, the last command in the code can take an argument, which is a subscript.
\end{options}
@@ -116,8 +116,8 @@
\begin{options}
\keyval{spbhshift}{fixed length}\Default{0pt}
Extra vertical shift of the superscript and the subscript.
- \kvsplit{spbcmd}{super code}{sub code}\Default
- Control the format of superscript or subscript. The first part is in superscript format, and the latter part is in subscript format. The two are separated by commas, or only the first part exists.
+ \kvsplit{spbcmd}{super cmds}{sub cmds}\Default
+ Control the format of superscript or subscript. The first part is in superscript format, and the latter part is in subscript format. They are separated by commas, or only the first part exists.
\keyval{vsep}{fixed length}\Default{0.3ex}
The distance between superscript and subscript, its default value is \code{0.3ex}.
\keychoice{halign}{l,c,r}\Default{l}
@@ -147,9 +147,9 @@
If you need to use the original definitions of \cs{textsuperscript}, \cs{textsubscript}, \cs{sp} and \cs{sb} after using the \option{text} or \option{math} option, then you can use the following commands:
\begin{commands}
\command{spb at textsuperscript@save}[\marg{content}]
- Save the original definition of the \cs{textsuperscript} command, output superscript in the text.
+ Save the original definition of the \cs{textsuperscript} command, output superscript in the text mode.
\command{spb at textsubscript@save}[\marg{content}]
- Save the original definition of the \cs{textsubscript} command, output subscript in the text.
+ Save the original definition of the \cs{textsubscript} command, output subscript in the text mode.
\command{spb at sp@save}[\marg{content}]
Save the original definition of the \cs{sp} command, output superscript in the math mode.
\command{spb at sb@save}[\marg{content}]
Modified: trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty 2021-12-16 21:18:48 UTC (rev 61324)
+++ trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty 2021-12-16 21:19:00 UTC (rev 61325)
@@ -9,7 +9,7 @@
% https://creativecommons.org/licenses/by/4.0/legalcode
\NeedsTeXFormat{LaTeX2e}[2018/12/31]
\RequirePackage{xparse,l3keys2e}
-\ProvidesExplPackage{spbmark}{2021/12/15}{1.2}
+\ProvidesExplPackage{spbmark}{2021/12/15}{1.2A}
{Customize superscripts and subscripts}
\cs_generate_variant:Nn \dim_max:nn { VV }
@@ -128,6 +128,18 @@
\use:c { hbox_overlap_#1:n }
{ \spb_boxb_move_down:V \l__spb_supersub_vsep_dim }
}
+\cs_set_eq:NN \spb at textsuperscript@save \textsuperscript
+\cs_set_eq:NN \spb at textsubscript@save \textsubscript
+\cs_set_eq:NN \spb at sp@save \sp
+\cs_set_eq:NN \spb at sb@save \sb
+\cs_new:Npn \spb_math:nn #1
+ {
+ \str_case:nn {#1}
+ {
+ { super } { \spb at sp@save }
+ { sub } { \spb at sb@save }
+ }
+ }
\cs_new:Npn \spb_math_print_store_i:nn #1#2
{
\hbox_set:Nn \l_tmpa_box
@@ -163,18 +175,6 @@
{ \spb at textsubscript@save{#2} }
}
}
-\cs_set_eq:NN \spb at textsuperscript@save \textsuperscript
-\cs_set_eq:NN \spb at textsubscript@save \textsubscript
-\cs_set_eq:NN \spb at sp@save \sp
-\cs_set_eq:NN \spb at sb@save \sb
-\cs_new:Npn \spb_math:nn #1
- {
- \str_case:nn {#1}
- {
- { super } { \spb at sp@save }
- { sub } { \spb at sb@save }
- }
- }
\cs_new_protected:Npn \spb_box_ht_dp_assign:nn #1#2
{
\tl_if_empty:nF {#1} { \box_set_ht:Nn \l_tmpb_box {#1} }
More information about the tex-live-commits
mailing list.