diff options
author | Karl Berry <karl@freefriends.org> | 2021-07-22 20:40:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-07-22 20:40:36 +0000 |
commit | cb737e560f3ee443eec9884d81c023e139c3ffa1 (patch) | |
tree | b0b68450749c7a6932aa00bed99858b1a7bb5e67 /Master | |
parent | 0ba7f884a6a123c6e85781421c3b17ce11557203 (diff) |
spbmark (22jul21)
git-svn-id: svn://tug.org/texlive/trunk@60018 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/spbmark/spbmark.pdf | bin | 68944 -> 68498 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/spbmark/spbmark.dtx | 24 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/spbmark/spbmark.sty | 18 |
3 files changed, 25 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf b/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf Binary files differindex 7c108609cb3..541ea467ed7 100644 --- a/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf +++ b/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf diff --git a/Master/texmf-dist/source/latex/spbmark/spbmark.dtx b/Master/texmf-dist/source/latex/spbmark/spbmark.dtx index 87e40645dbf..33498e535e5 100644 --- a/Master/texmf-dist/source/latex/spbmark/spbmark.dtx +++ b/Master/texmf-dist/source/latex/spbmark/spbmark.dtx @@ -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@textsuperscript@save} and \tn{spb@textsubscript@save} will be available. If you need to use the original definitions of \tn{sp} and \tn{sb}, then \tn{spb@sp@save} and \tn{spb@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@text#1script@save }{##5}} } } } @@ -245,13 +249,13 @@ { \IfBooleanTF{#1} { - \spb_tmp_hboxa_set:n { $#4{\spb@sp@save{#5}}$ } - \spb_tmp_hboxb_set:n { $#8{\spb@sb@save{#6}}$ } + \spb_tmp_hboxa_set:n { \ensuremath{#4{\spb@sp@save{#5}}} } + \spb_tmp_hboxb_set:n { \ensuremath{#8{\spb@sb@save{#6}}} } }{ \mode_if_math:TF { - \spb_tmp_hboxa_set:n { $#4{\spb@sp@save{#5}}$ } - \spb_tmp_hboxb_set:n { $#8{\spb@sb@save{#6}}$ } + \spb_tmp_hboxa_set:n { \ensuremath{#4{\spb@sp@save{#5}}} } + \spb_tmp_hboxb_set:n { \ensuremath{#8{\spb@sb@save{#6}}} } } { \spb_tmp_hboxa_set:n { #4{\spb@textsuperscript@save{#5}} } diff --git a/Master/texmf-dist/tex/latex/spbmark/spbmark.sty b/Master/texmf-dist/tex/latex/spbmark/spbmark.sty index f8a53902b79..36c379a3d5e 100644 --- a/Master/texmf-dist/tex/latex/spbmark/spbmark.sty +++ b/Master/texmf-dist/tex/latex/spbmark/spbmark.sty @@ -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@text#1script@save }{##5}} } } } @@ -122,13 +126,13 @@ { \IfBooleanTF{#1} { - \spb_tmp_hboxa_set:n { $#4{\spb@sp@save{#5}}$ } - \spb_tmp_hboxb_set:n { $#8{\spb@sb@save{#6}}$ } + \spb_tmp_hboxa_set:n { \ensuremath{#4{\spb@sp@save{#5}}} } + \spb_tmp_hboxb_set:n { \ensuremath{#8{\spb@sb@save{#6}}} } }{ \mode_if_math:TF { - \spb_tmp_hboxa_set:n { $#4{\spb@sp@save{#5}}$ } - \spb_tmp_hboxb_set:n { $#8{\spb@sb@save{#6}}$ } + \spb_tmp_hboxa_set:n { \ensuremath{#4{\spb@sp@save{#5}}} } + \spb_tmp_hboxb_set:n { \ensuremath{#8{\spb@sb@save{#6}}} } } { \spb_tmp_hboxa_set:n { #4{\spb@textsuperscript@save{#5}} } |