texlive[60018] Master/texmf-dist: spbmark (22jul21)
commits+karl at tug.org
commits+karl at tug.org
Thu Jul 22 22:40:36 CEST 2021
Revision: 60018
http://tug.org/svn/texlive?view=revision&revision=60018
Author: karl
Date: 2021-07-22 22:40:36 +0200 (Thu, 22 Jul 2021)
Log Message:
-----------
spbmark (22jul21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf
trunk/Master/texmf-dist/source/latex/spbmark/spbmark.dtx
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/source/latex/spbmark/spbmark.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/spbmark/spbmark.dtx 2021-07-22 20:40:24 UTC (rev 60017)
+++ trunk/Master/texmf-dist/source/latex/spbmark/spbmark.dtx 2021-07-22 20:40:36 UTC (rev 60018)
@@ -21,9 +21,9 @@
%</driver>
% \fi
%
-% \title{\pkg{spbmark} -- Superscript and subscript of text}
+% \title{\pkg{spbmark} -- Customize superscripts and subscripts}
% \author{Qu Yi}
-% \date{2021/06/30\hskip 1em\relax v1.01\thanks{\url{https://github.com/texl3/spbmark}}}
+% \date{2021/07/22\hskip 1em\relax v1.02\thanks{\url{https://github.com/texl3/spbmark}}}
%
% \maketitle
% \begin{abstract}
@@ -60,7 +60,7 @@
% The \meta{code} is used to format superscripts and subscripts, and can insert commands such as fonts or colors. The last command in the code can take an argument, which is either a superscript or a subscript.
%
% \begin{function}[added = 2021-06-30]{\sp,\sb,\spb,\textsuperscript,\textsubscript}
-% Except for the \tn{spb} command which is equivalent to \tn{supersub}, the others are \LaTeX{} kernel commands. If you use the \texttt{newsupb} package options then they will be redefined to make the command shorter, see section \ref{sec:macro package options}.
+% Except for the \tn{spb} command which is equivalent to \tn{supersub}, the others are \LaTeX{} kernel commands. If you use the \texttt{newsupb} package option then they will be redefined to make the command shorter, see section \ref{sec:macro package options}.
%
% If you need to use the original definitions of \tn{textsuperscript} and \tn{textsubscript}, then \tn{spb at textsuperscript@save} and \tn{spb at textsubscript@save} will be available. If you need to use the original definitions of \tn{sp} and \tn{sb}, then \tn{spb at sp@save} and \tn{spb at sb@save} will be available.
% \end{function}
@@ -136,7 +136,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2018/12/31]
\RequirePackage{xparse,l3keys2e}
-\ProvidesExplPackage{spbmark}{2021/06/30}{1.01}
+\ProvidesExplPackage{spbmark}{2021/07/22}{1.02}
{Customize superscripts and subscripts}
\cs_new_protected:Npn \spb_define:n { \keys_define:nn { spbmark } }
@@ -222,12 +222,16 @@
}
{
\IfBooleanTF{##1}
- {\spb_tmp_hboxa_set:n { $##4{\spb_math:nn {#1} {##5}}$ }}
{
+ \spb_tmp_hboxa_set:n
+ { \ensuremath{##4{\spb_math:nn {#1} {##5}}} }
+ }{
\mode_if_math:TF
- { \spb_tmp_hboxa_set:n { $##4{\spb_math:nn {#1} {##5}}$ } }
{
\spb_tmp_hboxa_set:n
+ { \ensuremath{##4{\spb_math:nn {#1} {##5}}} }
+ }{
+ \spb_tmp_hboxa_set:n
{ ##4{\use:c { spb at text#1script at save }{##5}} }
}
}
@@ -245,13 +249,13 @@
{
\IfBooleanTF{#1}
{
- \spb_tmp_hboxa_set:n { $#4{\spb at sp@save{#5}}$ }
- \spb_tmp_hboxb_set:n { $#8{\spb at sb@save{#6}}$ }
+ \spb_tmp_hboxa_set:n { \ensuremath{#4{\spb at sp@save{#5}}} }
+ \spb_tmp_hboxb_set:n { \ensuremath{#8{\spb at sb@save{#6}}} }
}{
\mode_if_math:TF
{
- \spb_tmp_hboxa_set:n { $#4{\spb at sp@save{#5}}$ }
- \spb_tmp_hboxb_set:n { $#8{\spb at sb@save{#6}}$ }
+ \spb_tmp_hboxa_set:n { \ensuremath{#4{\spb at sp@save{#5}}} }
+ \spb_tmp_hboxb_set:n { \ensuremath{#8{\spb at sb@save{#6}}} }
}
{
\spb_tmp_hboxa_set:n { #4{\spb at textsuperscript@save{#5}} }
Modified: trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty 2021-07-22 20:40:24 UTC (rev 60017)
+++ trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty 2021-07-22 20:40:36 UTC (rev 60018)
@@ -13,7 +13,7 @@
%% https://creativecommons.org/licenses/by/4.0/legalcode
\NeedsTeXFormat{LaTeX2e}[2018/12/31]
\RequirePackage{xparse,l3keys2e}
-\ProvidesExplPackage{spbmark}{2021/06/30}{1.01}
+\ProvidesExplPackage{spbmark}{2021/07/22}{1.02}
{Customize superscripts and subscripts}
\cs_new_protected:Npn \spb_define:n { \keys_define:nn { spbmark } }
@@ -99,12 +99,16 @@
}
{
\IfBooleanTF{##1}
- {\spb_tmp_hboxa_set:n { $##4{\spb_math:nn {#1} {##5}}$ }}
{
+ \spb_tmp_hboxa_set:n
+ { \ensuremath{##4{\spb_math:nn {#1} {##5}}} }
+ }{
\mode_if_math:TF
- { \spb_tmp_hboxa_set:n { $##4{\spb_math:nn {#1} {##5}}$ } }
{
\spb_tmp_hboxa_set:n
+ { \ensuremath{##4{\spb_math:nn {#1} {##5}}} }
+ }{
+ \spb_tmp_hboxa_set:n
{ ##4{\use:c { spb at text#1script at save }{##5}} }
}
}
@@ -122,13 +126,13 @@
{
\IfBooleanTF{#1}
{
- \spb_tmp_hboxa_set:n { $#4{\spb at sp@save{#5}}$ }
- \spb_tmp_hboxb_set:n { $#8{\spb at sb@save{#6}}$ }
+ \spb_tmp_hboxa_set:n { \ensuremath{#4{\spb at sp@save{#5}}} }
+ \spb_tmp_hboxb_set:n { \ensuremath{#8{\spb at sb@save{#6}}} }
}{
\mode_if_math:TF
{
- \spb_tmp_hboxa_set:n { $#4{\spb at sp@save{#5}}$ }
- \spb_tmp_hboxb_set:n { $#8{\spb at sb@save{#6}}$ }
+ \spb_tmp_hboxa_set:n { \ensuremath{#4{\spb at sp@save{#5}}} }
+ \spb_tmp_hboxb_set:n { \ensuremath{#8{\spb at sb@save{#6}}} }
}
{
\spb_tmp_hboxa_set:n { #4{\spb at textsuperscript@save{#5}} }
More information about the tex-live-commits
mailing list.