From 60155eae45a3a549f6a366f3d78b5e3749c5bae8 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 30 Oct 2021 19:40:40 +0000 Subject: spbmark (30oct21) git-svn-id: svn://tug.org/texlive/trunk@60904 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/spbmark/spbmark.pdf | Bin 67357 -> 67381 bytes Master/texmf-dist/doc/latex/spbmark/spbmark.tex | 6 +++--- Master/texmf-dist/tex/latex/spbmark/spbmark.sty | 8 +++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf b/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf index 6031d8553bc..7c978d9362a 100644 Binary files a/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf and b/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf differ diff --git a/Master/texmf-dist/doc/latex/spbmark/spbmark.tex b/Master/texmf-dist/doc/latex/spbmark/spbmark.tex index 73019e147ed..967ebbd694c 100644 --- a/Master/texmf-dist/doc/latex/spbmark/spbmark.tex +++ b/Master/texmf-dist/doc/latex/spbmark/spbmark.tex @@ -6,8 +6,8 @@ { package = spbmark, title = the spbmark package, - version = v1.1F, - date = 2021/10/29, + version = v1.1G, + date = 2021/10/30, authors = Qu Yi, info = Customize superscript and subscript, email = q1jx@foxmail.com, @@ -45,7 +45,7 @@ \opt{ctex}\Default! This option works with the C\TeX{} document class used by simplified Chinese users, there's actually no functional change. Adding path \module*{style} to \cs*{ctexset} command, which is equivalent to using \cs{spbset}. \keychoice{newsupb}{text,math,foot,all}\Default - \option{newsupb} is a compound option that can select multiple values and will redefine the subscript commands of the \LaTeX{} kernel. \code{text} stands for \cs{textsuperscript} and \cs{textsubscript} are equivalent to the \cs{super} and \cs{sub} commands. \code{math} indicates that \cs{sp} and \cs{sb} are equivalent to the \cs{super} and \cs{sub} commands. \code{foot} will make the format of the footnote mark match the superscript offsets and format of the \cs{spbset} global setting. \code{all} will selects all previous three values at the same time. + \option{newsupb} is a compound option that can select multiple values and will redefine the scripts commands of the \LaTeX{} kernel. \code{text} stands for \cs{textsuperscript} and \cs{textsubscript} are equivalent to the \cs{super} and \cs{sub} commands. \code{math} indicates that \cs{sp} and \cs{sb} are equivalent to the \cs{super} and \cs{sub} commands. \code{foot} will make the format of the footnote mark match the superscript offsets and format of the \cs{spbset} global setting. \code{all} will selects all previous three values at the same time. \begin{example}[code-only] \usepackage[newsupb = {text,math,foot}]{spbmark} \usepackage[newsupb = all]{spbmark} diff --git a/Master/texmf-dist/tex/latex/spbmark/spbmark.sty b/Master/texmf-dist/tex/latex/spbmark/spbmark.sty index 8ed460d1b83..6d0fcfd2c4e 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}{2021/10/29}{1.1F} +\ProvidesExplPackage{spbmark}{2021/10/30}{1.1G} {Customize superscripts and subscripts} \cs_new_protected:Npn \spb_define:n { \keys_define:nn { spbmark } } @@ -29,7 +29,9 @@ newsupb .multichoices:nn = { text,math,foot,all } { \bool_set_true:c { l_spb_newsupb_#1_bool } }, - newsupb .default:n = all + newsupb .default:n = all, + newsupb/true .meta:n = { newsupb = all }, + newsupb/false .code:n = { } } \ProcessKeysOptions{spbmark/option} @@ -279,7 +281,7 @@ \bool_if:NT \l_spb_newsupb_foot_bool { \cs_set:Npn \@makefnmark - { \hbox:n { \fnmarkfont\super{\@thefnmark} } } + { \hbox:n { \fnmarkfont{\super{\@thefnmark}} } } } \cs_set_eq:NN \spb \supersub \tl_if_exist:NTF \ftntm@font -- cgit v1.2.3