diff options
author | Karl Berry <karl@freefriends.org> | 2024-05-13 19:53:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-05-13 19:53:46 +0000 |
commit | df3cefab931060783556a007d15095f7d4f70e23 (patch) | |
tree | f448142e6733b55ee8e0abb34154413d3a250d90 | |
parent | 9eaae44905d630f31de5f49ba9a0436c5055c148 (diff) |
spbmark (13may24)
git-svn-id: svn://tug.org/texlive/trunk@71256 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/spbmark/spbmark.pdf | bin | 95183 -> 91761 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/spbmark/spbmark.tex | 13 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/spbmark/spbmark.sty | 51 |
3 files changed, 32 insertions, 32 deletions
diff --git a/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf b/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf Binary files differindex b7bbe5392d2..5ad9b3e360d 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/doc/latex/spbmark/spbmark.tex b/Master/texmf-dist/doc/latex/spbmark/spbmark.tex index e1d318026c2..e631b4c2100 100644 --- a/Master/texmf-dist/doc/latex/spbmark/spbmark.tex +++ b/Master/texmf-dist/doc/latex/spbmark/spbmark.tex @@ -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@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@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} diff --git a/Master/texmf-dist/tex/latex/spbmark/spbmark.sty b/Master/texmf-dist/tex/latex/spbmark/spbmark.sty index 67f5450dea0..9646dc1e00e 100644 --- a/Master/texmf-dist/tex/latex/spbmark/spbmark.sty +++ b/Master/texmf-dist/tex/latex/spbmark/spbmark.sty @@ -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@text#1script@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@math@super@save{\l__spb_super_cmd_ii_tl{#1}}} } - \hbox_gset:Nn \l__sub_ii_box + \hbox_gset:Nn \g__sub_ii_box { \ensuremath{\spb@math@sub@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@textsuperscript@save{\l__spb_super_cmd_ii_tl{#1}} } - \hbox_gset:Nn \l__sub_ii_box + \hbox_gset:Nn \g__sub_ii_box { \spb@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@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 } { |