texlive[71256] Master/texmf-dist: spbmark (13may24)

commits+karl at tug.org commits+karl at tug.org
Mon May 13 21:53:46 CEST 2024


Revision: 71256
          https://tug.org/svn/texlive?view=revision&revision=71256
Author:   karl
Date:     2024-05-13 21:53:46 +0200 (Mon, 13 May 2024)
Log Message:
-----------
spbmark (13may24)

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	2024-05-13 19:53:35 UTC (rev 71255)
+++ trunk/Master/texmf-dist/doc/latex/spbmark/spbmark.tex	2024-05-13 19:53:46 UTC (rev 71256)
@@ -2,13 +2,14 @@
 
 \usepackage{siunitx,setspace,pifont,hologo}
 \usepackage[spbmark]{altsubsup}
+\usepackage[margin = 1in,marginparwidth = 0.6in,footskip = 0.5in]{geometry}
 \usepackage[noto]{newtxmath}
 \setcnltx
   {
     package           = spbmark,
     title             = the spbmark package,
-    version           = v1.46g,
-    date              = 2024/05/02,
+    version           = v1.46i,
+    date              = 2024/05/13,
     authors           = Qu Yi,
     info              = Customize superscript and subscript,
     email             = toquyi at 163.com,
@@ -39,7 +40,7 @@
 \newsplitarg{\splitoarg}{[}{]}
 \newsplitarg{\splitmarg}{\{}{\}}
 \newsplitarg{\splitdarg}{(}{)}
-\newnote{\newtag}[1][New]{\textcolor{red}{\ding{73}\ #1}}
+\newnote{\newtag}[1][New]{\textcolor{red}{#1}}
 \renewcommand{\emph}[1]{\textcolor{red}{#1}}
 \renewcommand{\cnltx at write@lastname}{}
 \makeatother
@@ -49,11 +50,11 @@
 The following macro package options will redefine the script commands of the \LaTeX{} kernel. If you do not specify the values of boolean options, they default to \code{true}. These options can also be changed in the preamble area and main body using the global control command \cs{spbset}.
 \begin{options}
   \keychoice{text}{true,\fbox{false}}\newtag[Changed]%
-  \cs{textsuperscript} and \cs{textsubscript} are equivalent to the \cs{super} and \cs{sub} commands. At this point, you can use the \cs{defspbstyle} command to define the style \code{textsp} and \code{textsb} to change the format of the text superscript and subscript.
+  \cs{textsuperscript} and \cs{textsubscript} are equivalent to the \cs{super} and \cs{sub} commands. You can also use the \cs{defspbstyle} command to define the style \code{textsp} and \code{textsb} to change the format of the text superscript and subscript.
   \keychoice{math}{true,\fbox{false}}\newtag[Changed]%
-  \cs{sp} and \cs{sb} are equivalent to the \cs{super} and \cs{sub} commands. At this point, you can use the \cs{defspbstyle} command to define the style \code{mathsp} and \code{mathsb} to change the format of the math superscript and subscript.
+  \cs{sp} and \cs{sb} are equivalent to the \cs{super} and \cs{sub} commands. You can also use the \cs{defspbstyle} command to define the style \code{mathsp} and \code{mathsb} to change the format of the math superscript and subscript.
   \keychoice{foot}{true,\fbox{false}}\newtag[Changed]%
-  The format of the footnote mark match the superscript global move and format settings. At this point, you can use the \cs{defspbstyle} command to define the superscript style \code{fnmark} to change the format of the footnote mark.
+  The format of the footnote mark match the superscript global move and format settings. You can also use the \cs{defspbstyle} command to define the superscript style \code{fnmark} to change the format of the footnote mark.
   \begin{example}[code-only]
   \defspbstyle{textsp}{vmove=-1pt,cmd=\bfseries}
   \defspbstyle{mathsb}{hmove=0.5em}

Modified: trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty	2024-05-13 19:53:35 UTC (rev 71255)
+++ trunk/Master/texmf-dist/tex/latex/spbmark/spbmark.sty	2024-05-13 19:53:46 UTC (rev 71256)
@@ -9,7 +9,7 @@
 %   https://creativecommons.org/licenses/by/4.0/legalcode
 \NeedsTeXFormat{LaTeX2e}[2018/12/31]
 \RequirePackage{xparse,l3keys2e}
-\ProvidesExplPackage{spbmark}{2024/05/02}{1.46g}
+\ProvidesExplPackage{spbmark}{2024/05/13}{1.46i}
   {Customize superscripts and subscripts}
 
 \cs_generate_variant:Nn \box_set_ht:Nn { cv }
@@ -18,7 +18,6 @@
 \cs_generate_variant:Nn \dim_gset:Nn { Nv }
 \cs_generate_variant:Nn \dim_abs:n { V,v }
 \cs_generate_variant:Nn \dim_compare:nNnTF { V,v }
-\cs_generate_variant:Nn \msg_warning:nnn { nnV }
 \cs_generate_variant:Nn \str_case:nn { x }
 \cs_generate_variant:Nn \tl_if_novalue:nF { V }
 \cs_generate_variant:Nn \tl_if_blank:nF { v }
@@ -157,13 +156,13 @@
   }
 
 \cs_new:Npn \spb_box_super_move_up_i:n #1
-  { \box_move_up:nn {#1} { \box_use:N \l__super_i_inner_box } }
+  { \box_move_up:nn {#1} { \box_use:N \g__super_i_inner_box } }
 \cs_new:Npn \spb_box_sub_move_down_i:n #1
-  { \box_move_down:nn {#1} { \box_use:N \l__sub_i_inner_box } }
+  { \box_move_down:nn {#1} { \box_use:N \g__sub_i_inner_box } }
 \cs_new:Npn \spb_box_super_move_up_ii:n #1
-  { \box_move_up:nn {#1} { \box_use:N \l__super_ii_box } }
+  { \box_move_up:nn {#1} { \box_use:N \g__super_ii_box } }
 \cs_new:Npn \spb_box_sub_move_down_ii:n #1
-  { \box_move_down:nn {#1} { \box_use:N \l__sub_ii_box } }
+  { \box_move_down:nn {#1} { \box_use:N \g__sub_ii_box } }
 \cs_new:Npn \spb_box_vmove_i:nn #1
   {
     \str_case:nn {#1}
@@ -256,28 +255,28 @@
 \cs_new_protected:Npn \spb_ht_dp_assign:nnnn #1#2#3#4
   {
     \tl_if_blank:vF { l__#1_height_#3_tl }
-      { \box_set_ht:cv { l__#1_#3#4_box } { l__#1_height_#3_tl } }
+      { \box_set_ht:cv { g__#1_#3#4_box } { l__#1_height_#3_tl } }
     \tl_if_blank:vF { l__#1_depth_i_tl }
-      { \box_set_dp:cv { l__#2_#3#4_box } { l__#2_depth_#3_tl } }
+      { \box_set_dp:cv { g__#2_#3#4_box } { l__#2_depth_#3_tl } }
   }
 
-\box_new:N \l__super_i_outer_box
-\box_new:N \l__super_i_inner_box
-\box_new:N \l__sub_i_outer_box
-\box_new:N \l__sub_i_inner_box
-\box_new:N \l__super_ii_box
-\box_new:N \l__sub_ii_box
+\box_new:N \g__super_i_outer_box
+\box_new:N \g__super_i_inner_box
+\box_new:N \g__sub_i_outer_box
+\box_new:N \g__sub_i_inner_box
+\box_new:N \g__super_ii_box
+\box_new:N \g__sub_ii_box
 \dim_new:N \llastwd
 \dim_new:N \clastwd
 \dim_new:N \rlastwd
-\tl_set:Nn \superwd { \box_wd:N \l__super_ii_box }
-\tl_set:Nn \subwd { \box_wd:N \l__sub_ii_box }
+\tl_set:Nn \superwd { \box_wd:N \g__super_ii_box }
+\tl_set:Nn \subwd { \box_wd:N \g__sub_ii_box }
 \tl_set:Nn \maxwd { \dim_max:VV \superwd \subwd }
-\tl_set:Nn \l__spb_box_super_wd_i_tl { \box_wd:N \l__super_i_inner_box }
-\tl_set:Nn \l__spb_box_sub_wd_i_tl { \box_wd:N \l__sub_i_inner_box }
+\tl_set:Nn \l__spb_box_super_wd_i_tl { \box_wd:N \g__super_i_inner_box }
+\tl_set:Nn \l__spb_box_sub_wd_i_tl { \box_wd:N \g__sub_i_inner_box }
 \cs_new:Npn \spb_math_print_store_i:nn #1#2
   {
-    \hbox_gset:cn { l__#1_i_inner_box }
+    \hbox_gset:cn { g__#1_i_inner_box }
       {
         \ensuremath
           {
@@ -289,7 +288,7 @@
   }
 \cs_new:Npn \spb_text_print_store_i:nn #1#2
   {
-    \hbox_gset:cn { l__#1_i_inner_box }
+    \hbox_gset:cn { g__#1_i_inner_box }
       {
         \use:c { spb at text#1script at save }
           { \tl_use:c { l__spb_#1_cmd_i_tl }{#2} }
@@ -298,16 +297,16 @@
   }
 \cs_new:Npn \spb_math_print_store_ii:nn #1#2
   {
-    \hbox_gset:Nn \l__super_ii_box
+    \hbox_gset:Nn \g__super_ii_box
       { \ensuremath{\spb at math@super at save{\l__spb_super_cmd_ii_tl{#1}}} }
-    \hbox_gset:Nn \l__sub_ii_box
+    \hbox_gset:Nn \g__sub_ii_box
       { \ensuremath{\spb at math@sub at save{\l__spb_sub_cmd_ii_tl{#2}}} }
   }
 \cs_new:Npn \spb_text_print_store_ii:nn #1#2
   {
-    \hbox_gset:Nn \l__super_ii_box
+    \hbox_gset:Nn \g__super_ii_box
       { \spb at textsuperscript@save{\l__spb_super_cmd_ii_tl{#1}} }
-    \hbox_gset:Nn \l__sub_ii_box
+    \hbox_gset:Nn \g__sub_ii_box
       { \spb at textsubscript@save{\l__spb_sub_cmd_ii_tl{#2}} }
   }
 \cs_set_eq:NN \spbifmath \use_ii:nn
@@ -408,7 +407,7 @@
         \spb_mode_switch:nnn {#1} {##4} { i }
         \spb_content_hbox_set:nn {#1} {##1}
         \spb_ht_dp_assign:nnnn {#1} {#1} { i } { _outer }
-        \box_use:c { l__#1_i_outer_box }
+        \box_use:c { g__#1_i_outer_box }
         \exp_last_unbraced:Nx
         \group_end:
           {
@@ -422,7 +421,7 @@
   {
     \dim_gset:Nn \clastwd { (\llastwd + \rlastwd)/2 }
     \tl_set:Nn \abs at hmove@i { \dim_abs:v { l__spb_#1_hmove_tl } }
-    \hbox_set:cn { l__#1_i_outer_box }
+    \hbox_gset:cn { g__#1_i_outer_box }
       {
         \dim_compare:vNnTF { l__spb_#1_hmove_tl } < { 0pt }
           {



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