diff options
author | Norbert Preining <norbert@preining.info> | 2022-01-24 03:02:10 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-01-24 03:02:10 +0000 |
commit | 17f5b660e0ce0c5c1b1dc095df8213e078963809 (patch) | |
tree | 210a8643bac0dcb24683b9a8556e600ad3d1ba36 /macros/latex/contrib/spbmark/spbmark.tex | |
parent | 47551fbf494bf778f45c78692a0ff17d771b96d7 (diff) |
CTAN sync 202201240302
Diffstat (limited to 'macros/latex/contrib/spbmark/spbmark.tex')
-rw-r--r-- | macros/latex/contrib/spbmark/spbmark.tex | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/macros/latex/contrib/spbmark/spbmark.tex b/macros/latex/contrib/spbmark/spbmark.tex index faa5c1a44c..08ed9bc04f 100644 --- a/macros/latex/contrib/spbmark/spbmark.tex +++ b/macros/latex/contrib/spbmark/spbmark.tex @@ -6,8 +6,8 @@ { package = spbmark, title = the spbmark package, - version = v1.2H, - date = 2021/12/22, + version = v1.3, + date = 2022/01/23, authors = Qu Yi, info = Customize superscript and subscript, email = q1jx@foxmail.com, @@ -61,9 +61,9 @@ The following macro package options will redefine the scripts commands of the \L \section{User commands} There are currently three commands to set superscript and subscript. Their format can be set temporarily using the optional parameters of the command, or set globally using a key-value list, see section \ref{sec:global control interface}. \begin{commands} - \command{super}[\oarg{kv list}\splitoarg{height}{depth}\marg{content}\oarg{kv list}] + \command{super}[\oarg{kv list}\marg{content}\oarg{kv list}] This is a superscript output command. The two \meta{kv list} are equivalent. - \command{sub}[\oarg{kv list}\splitoarg{height}{depth}\marg{content}\oarg{kv list}] + \command{sub}[\oarg{kv list}\marg{content}\oarg{kv list}] This is a subscript output command. The two \meta{kv list} are equivalent. \command{supersub}[\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. @@ -73,9 +73,7 @@ There are currently three commands to set superscript and subscript. Their forma In some cases, \code{math} or \code{text} output modes require different code for format or move. This command can be used when using the \code{match} option or changing the output mode locally, whitch should be used in the move or format options. It can switch the corresponding code according to different output modes. \end{commands} -The optional parameter \splitmeta{height}{depth} generally does not need to be used. The \meta{height} and \meta{depth} are separated by commas. Only the front part indicates the \meta{height} of the superscript or subscript, and only the back part indicates the \meta{depth}. - -The options common to \meta{kv list} of the three commands are as follows. They can be used in \meta{key-value list} for the \cs{spbset} command. If \option{vmove}, \option{hmove} and \option{cmd} are used in the \cs{spbset} command, it is set according to the type of the previous nearest command. +The options common to \meta{kv list} of the three commands are as follows. They can be used in \meta{key-value list} for the \cs{spbset} command. When the following options are used in the \cs{spbset} command, in addition to \option{style} and \option{mode}, they are set according to the type of the previous most recent command. \begin{options} \keyval{vmove}{fixed length}\Default{0pt} Vertical move of superscript or subscript. Represents the extra vertical distance \option{vsep} between superscript and subscript in the superscript and subscript commands. @@ -85,6 +83,10 @@ The options common to \meta{kv list} of the three commands are as follows. They The format commands of superscript or subscript. The last command can take a parameter, which accepts superscript or subscript. Represents the format of superscript and subscript in the superscript and subscript commands. \keyval{cmd+}{format cmds}\Default Add code to the previous global superscript or subscript format commands. + \keyval{height}{fixed length}\Default + The distance between the superscript or subscript baseline and the previous line. + \keyval{depth}{fixed length}\Default + The distance between the superscript or subscript baseline and the next line. \keyval{style}{style name}\Default Use the \meta{style name} defined by the \cs{defspbstyle} command to make it work global or local. \keychoice{mode}{text,math,match}\Default{match} @@ -120,6 +122,14 @@ The following list of keys control the format both of superscript or subscript. The format commands of subscript. The last command in the code can take an argument, which is a subscript. \keyval{sbcmd+}{format cmds}\Default Add code to the previous global subcript format commands. + \keyval{spheight}{fixed length}\Default + The distance between the superscript baseline and the previous line. + \keyval{spdepth}{fixed length}\Default + The distance between the superscript baseline and the next line. + \keyval{sbheight}{fixed length}\Default + The distance between the subscript baseline and the previous line. + \keyval{sbdepth}{fixed length}\Default + The distance between the subscript baseline and the next line. \end{options} If \option{sphmove} is positive, the superscript or subscript moves to the right, conversely it moves to the left. However, for superscript, if \option{spvmove} is positive, the superscript moves up, conversely it moves down. For subscript, if \option{spvmove} is positive, the subscript moves down, conversely it moves up. @@ -132,6 +142,10 @@ The following list of keys control the format of superscript and subscript. The format commands of superscript and subscript. The first part is in superscript format, and the latter part is in subscript format. They are separated by commas, or only the first part exists. \kvsplit{spbcmd+}{super cmds}{sub cmds}\Default Add code to the previous global superscript and subscript format commands. + \keyval{spbheight}{fixed length}\Default + The distance between the superscript baseline and the previous line. + \keyval{spbdepth}{fixed length}\Default + The distance between the subscript baseline and the next line. \keyval{vsep}{fixed length}\Default{0.6ex} The extra vertical distance between superscript and subscript. \keychoice{halign}{l,c,r}\Default{l} |