texlive[73064] Master/texmf-dist: spbmark (7dec24)

commits+karl at tug.org commits+karl at tug.org
Sat Dec 7 22:06:32 CET 2024


Revision: 73064
          https://tug.org/svn/texlive?view=revision&revision=73064
Author:   karl
Date:     2024-12-07 22:06:32 +0100 (Sat, 07 Dec 2024)
Log Message:
-----------
spbmark (7dec24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/spbmark/README.md
    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/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/spbmark/README.md	2024-12-07 21:06:22 UTC (rev 73063)
+++ trunk/Master/texmf-dist/doc/latex/spbmark/README.md	2024-12-07 21:06:32 UTC (rev 73064)
@@ -1,5 +1,5 @@
 # The `spbmark` package
-Customize superscripts and subscripts (v1.46u)
+Customize superscripts and subscripts (v1.46v)
 
 ## Abstract
 `spbmark` provides three commands `\super`, `\sub` and `\supersub` to improve the layout of superscripts and subscripts which can be adjusted the relative position and format, and can be used in text and math mode.

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	2024-12-07 21:06:22 UTC (rev 73063)
+++ trunk/Master/texmf-dist/doc/latex/spbmark/spbmark.tex	2024-12-07 21:06:32 UTC (rev 73064)
@@ -4,11 +4,10 @@
 \usepackage{siunitx,hologo,changelog,enumitem,codehigh}
 \usepackage[spbmark]{altsubsup}
 \usepackage[margin = 1in,marginparwidth = 0.6in,footskip = 0.5in]{geometry}
-\usepackage[noto]{newtxmath}
 \setcnltx
   {
     package           = spbmark,
-    version           = v1.46u,
+    version           = v1.46v,
     date              = 2024/12/06,
     authors           = Qu Yi,
     title             = \spbmark{} package,
@@ -20,6 +19,7 @@
         \pkg*{spbmark} provides three commands \cs{super}, \cs{sub} and \cs{supersub} to improve the layout of superscripts and subscripts which can be adjusted the relative position and format, and can be used in text and math mode.
       },
     color-scheme      = blue,
+    module-sep        = \,$\Rightarrow$\,,
     title-format      = \LARGE
   }
 \makeatletter
@@ -37,6 +37,16 @@
 \newsplitarg{\splitoarg}{[}{]}
 \newsplitarg{\splitmarg}{\{}{\}}
 \newsplitarg{\splitdarg}{(}{)}
+\newcommand{\hface}{$\symbol{"263A}$}
+\newcommand{\sface}{$\symbol{"263B}$}
+\NewDocumentCommand{\dtag}{sO{\hface}}
+  {
+    \begingroup
+    \reversemarginpar
+    \marginnote{\hfill\llap{#2}}
+    \endgroup
+    \IfBooleanF{#1}{\cnltx at checkdefault{\hfill\newline}}
+  }
 \newnote{\newtag}[1]{\textcolor{red}{#1}}
 \renewcommand{\emph}[1]{\textcolor{red}{#1}}
 \renewcommand{\cnltx at write@lastname}{}
@@ -113,11 +123,11 @@
   \command{supersub}[\sarg\oarg{kv list}\marg{super cont}\marg{sub cont}\oarg{kv list}]
   This is a command that outputs both superscript and subscript at the same time. You can also use the shorter command \cs{spb} instead of it. The two \meta{kv list} are equivalent.
   \command{superwd}
-  Save the width of the superscript in the previous super-subscript command.
+  Save the width of the superscript in the \cs{supersub} command.
   \command{subwd}
-  Save the width of the subscript in the previous super-subscript command.
+  Save the width of the subscript in the \cs{supersub} command.
   \command{maxwd}
-  Save the maximum width of superscript and subscript in the previous super-subscript command. That is, it is the larger of the \cs{superwd} and \cs{subwd} commands.
+  Save the maximum width of superscript and subscript in the \cs{supersub} command. That is, it is the larger of the \cs{superwd} and \cs{subwd} commands.
 
   If horizontally move is negative and its absolute value is \emph{less} than the maximum width of the marker, then the marker overlaps the subsequent text. To avoid this use the command with the \emph{asterisk} parameter or adjust the horizontal distance with the marker length commands.
 \begin{demohigh}
@@ -144,18 +154,18 @@
 \end{demohigh}
 \end{commands}
 
-The options common to \meta{kv list} of the three commands are as follows. They can also be used in \meta {key-value list} of the \cs{spbset} command. In this situation, in addition to \option{style} and \option{mode}, they will be set according to the type of the previous most recent command.
+The options common to \meta{kv list} of the three commands are as follows. They can also be used in \meta {key-value list} of the \cs{spbset} command. In this situation, the symbol \sface{} before options indicates that they will be set according to the type of the previous most recent command. The symbol \hface{} before options indicates that they are invalid for the \cs{supersub} command.
 \begin{options}
   \keyval{vmove}{fixed length}\Default{0pt}
-  Vertical move of superscripts or subscripts. Represents the extra vertical distance \option{vsep} between superscript and subscript in super-subscript command. The vertical movement starts at the marker horizontal baseline position.
+  Vertical move of superscripts or subscripts. Represents the extra vertical distance \option{vsep} between superscript and subscript in the \cs{supersub} command. The vertical movement starts at the marker horizontal baseline position.
   \keyval{hmove}{fixed length}\Default{0pt}
-  Horizontal move of superscripts or subscripts. Represents the \emph{common} move of superscript and subscript in super-subscript command. The starting point for horizontal movement is to the left of the marker. Moved values can be expressed mathematically:
+  Horizontal move of superscripts or subscripts. Represents the \emph{common} move of superscript and subscript in the \cs{supersub} command. The starting point for horizontal movement is to the left of the marker. Moved values can be expressed mathematically:
 \begin{demohigh}
 1A\super{b}[vmove=0.4ex+4pt/2,hmove=2pt*3-11.5pt] \\
 2A\supersub[vsep={3pt,6pt-2bp}]{examsuper}{sub}
 \end{demohigh}
   \keyval{cmd}{format cmds}
-  The format commands of superscripts or subscripts. The last command can take a parameter, which accepts superscript or subscript. Represents the format \option{spbcmd} of superscript and subscript in super-subscript command.
+  The format commands of superscripts or subscripts. The last command can take a parameter, which accepts superscript or subscript. Represents the format \option{spbcmd} of superscript and subscript in the \cs{supersub} command.
   \keyval{cmd+}{format cmds}
   Add code to the previous option \option{cmd}.
   \keyval{height}{fixed length}
@@ -162,11 +172,7 @@
   The height of the marker box above the baseline. It is recommended that the superscript adjusts the height and the subscript adjusts the depth.
   \keyval{depth}{fixed length}
   The depth of the marker box below the baseline.
-  \keyval{style}{style name}
-  Use the \meta{style name} defined by the \cs{defspbstyle} command to make it work global or local.
-  \keychoice{mode}{text,math,\fbox{match}}
-  The mode of superscripts or subscripts output can be \code{text} or \code{math} mode. The \code{match} option automatically matches output modes according to the current mode.
-  \keychoice{thiswd}{auto,\fbox{keep}}
+  \keychoice{thiswd}{auto,\fbox{keep}}\dtag
   Sets how the length of the this marker is handled after this command is used. If it is \code{keep}, the width of the previous marker remains the same. If it is \code{auto}, if the next token is a marker command and the upper or lower position is the \textcolor{red}{opposite} of the this command, the width of the this marker is maintained, otherwise the width automatically returns to \textcolor{red}{zero}.
 \begin{demohigh}
 \spbset{sbhmove=-\llastwd,sbthiswd=auto,sbcmd=\color{red}}
@@ -175,13 +181,17 @@
 3A\sub{bcd}[thiswd=keep]\sub{e}Some texts\sub{e} \\
 4A\sub{bcd}\sub{e}Some texts\sub{e}
 \end{demohigh}
-  \keyval{regex}{regular expression}
+  \keyval{regex}{regular expression}\dtag
   After using a superscript or subscript command, this option is used to determine whether the \textcolor{red}{following} tokens match the \meta{regular expression}. If it does \textcolor{red}{not}, the width of the this marker returns to zero.
 \begin{codehigh}
 \newcommand{\mysp}[2][]{\super[regex=\c{mysb},#1]{#2}}
 \newcommand{\mysb}[2][]{\sub[regex=\c{mysp},#1]{#2}}
 \end{codehigh}
-  \keychoice{nobox}{true,\fbox{false}}\newtag{New\\v1.46u}%
+  \keyval{style}{style name}\dtag[\sface]
+  Use the \meta{style name} defined by the \cs{defspbstyle} command to make it work global or local.
+  \keychoice{mode}{text,math,\fbox{match}}\dtag[\sface]
+  The mode of superscripts or subscripts output can be \code{text} or \code{math} mode. The \code{match} option automatically matches output modes according to the current mode.
+  \keychoice{nobox}{true,\fbox{false}}\dtag[\sface\hface]\newtag{New\\v1.46v}%
   Causes the superscripts or subscripts not to be saved in the box, in which case the offset-related options are invalid. For example, there is a difference in nesting superscripts in math mode.
 \begin{demohigh}
 1A$\super{c\super{d}}$B \\

Modified: trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty	2024-12-07 21:06:22 UTC (rev 73063)
+++ trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty	2024-12-07 21:06:32 UTC (rev 73064)
@@ -9,7 +9,7 @@
 %   https://creativecommons.org/licenses/by/4.0/legalcode
 \NeedsTeXFormat{LaTeX2e}[2018/12/31]
 \RequirePackage{xparse}
-\ProvidesExplPackage{spbmark}{2024/12/06}{1.46u}
+\ProvidesExplPackage{spbmark}{2024/12/06}{1.46v}
   {Customize superscripts and subscripts}
 
 \cs_generate_variant:Nn \box_set_ht:Nn { cv }



More information about the tex-live-commits mailing list.