texlive[73072] Master/texmf-dist: spbmark (8dec24)
commits+karl at tug.org
commits+karl at tug.org
Sun Dec 8 22:06:17 CET 2024
Revision: 73072
https://tug.org/svn/texlive?view=revision&revision=73072
Author: karl
Date: 2024-12-08 22:06:17 +0100 (Sun, 08 Dec 2024)
Log Message:
-----------
spbmark (8dec24)
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-08 18:00:10 UTC (rev 73071)
+++ trunk/Master/texmf-dist/doc/latex/spbmark/README.md 2024-12-08 21:06:17 UTC (rev 73072)
@@ -1,5 +1,5 @@
# The `spbmark` package
-Customize superscripts and subscripts (v1.46v)
+Customize superscripts and subscripts (v1.46w)
## 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-08 18:00:10 UTC (rev 73071)
+++ trunk/Master/texmf-dist/doc/latex/spbmark/spbmark.tex 2024-12-08 21:06:17 UTC (rev 73072)
@@ -7,8 +7,8 @@
\setcnltx
{
package = spbmark,
- version = v1.46v,
- date = 2024/12/06,
+ version = v1.46w,
+ date = 2024/12/08,
authors = Qu Yi,
title = \spbmark{} package,
info = Customize superscripts and subscripts,
@@ -97,7 +97,7 @@
\section{User commands}
\label{sec:user commands}
-There are currently three commands to print superscripts and subscripts. Their format can be set locally using the optional parameter of the command, or set globally using a key-value list, see Section \ref{sec:global control interface}.
+There are currently three commands to print superscripts and subscripts. Their format can be set locally using the optional parameter of the command, or set globally using a \meta{key-value list}, see Section \ref{sec:global control interface}.
\begin{commands}
\command{super}[\sarg\oarg{kv list}\marg{content}\oarg{kv list}]
This is a superscript output command. The two \meta{kv list} are equivalent.
@@ -154,8 +154,12 @@
\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, 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.
+The options common to \meta{kv list} of the three commands are as follows. These options can also be used in \meta {key-value list} of the \cs{spbset} command to represent the simultaneous setting of three commands. The symbol \hface{} before options indicates that they are invalid for the \cs{supersub} command.
\begin{options}
+ \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.
\keyval{vmove}{fixed length}\Default{0pt}
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}
@@ -165,7 +169,7 @@
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 the \cs{supersub} command.
+ The format commands of superscripts or subscripts. The last command can take a parameter, which accepts superscript or subscript. Represents the format option \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}
@@ -187,11 +191,7 @@
\newcommand{\mysp}[2][]{\super[regex=\c{mysb},#1]{#2}}
\newcommand{\mysb}[2][]{\sub[regex=\c{mysp},#1]{#2}}
\end{codehigh}
- \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}%
+ \keychoice{nobox}{true,\fbox{false}}\dtag\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-08 18:00:10 UTC (rev 73071)
+++ trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty 2024-12-08 21:06:17 UTC (rev 73072)
@@ -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.46v}
+\ProvidesExplPackage{spbmark}{2024/12/08}{1.46w}
{Customize superscripts and subscripts}
\cs_generate_variant:Nn \box_set_ht:Nn { cv }
@@ -136,14 +136,19 @@
}
\tl_new:N \g__spb_mark_case_init_tl
+\bool_new:N \l__spb_mark_at_local_bool
\cs_new_protected:Npn \spb_local_case_init:nnn #1#2#3
{
- \str_case:Vn \g__spb_mark_case_init_tl
+ \bool_if:NTF \l__spb_mark_at_local_bool
{
- { super } {#1}
- { sub } {#2}
- { supersub } {#3}
+ \str_case:Vn \g__spb_mark_case_init_tl
+ {
+ { super } {#1}
+ { sub } {#2}
+ { supersub } {#3}
+ }
}
+ { #1#2#3 }
}
\NewDocumentCommand{\spb at both@vsep at assign}
{>{\SplitArgument{1}{,}}m}
@@ -491,6 +496,7 @@
\exp_args:Nc \NewDocumentCommand {#1}{sO{}O{}mO{}}
{
\group_begin:
+ \bool_set_true:N \l__spb_mark_at_local_bool
\mode_leave_vertical:
\tl_gset:Nn \g__spb_mark_case_init_tl {#1}
\spb_set:n { ##2,##3,##5 }
@@ -556,6 +562,7 @@
\NewDocumentCommand{\supersub}{sO{}mmO{}}
{
\group_begin:
+ \bool_set_true:N \l__spb_mark_at_local_bool
\mode_leave_vertical:
\tl_gset:Nn \g__spb_mark_case_init_tl { supersub }
\spb_set:n {#2,#5}
More information about the tex-live-commits
mailing list.