diff options
author | Karl Berry <karl@freefriends.org> | 2024-06-22 20:21:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-06-22 20:21:44 +0000 |
commit | cb7b1c4cb5e9520dfca687a4990e8b7df3769969 (patch) | |
tree | f08e2aabfcce0a0f01fb478c13b7ea3266890e5b /Master/texmf-dist/doc/latex/spbmark | |
parent | 92638a0bb8e4e5b48cb05ee1551629b1263cbb3c (diff) |
spbmark (22jun24)
git-svn-id: svn://tug.org/texlive/trunk@71587 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/spbmark')
-rw-r--r-- | Master/texmf-dist/doc/latex/spbmark/README.md | 10 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/spbmark/spbmark.pdf | bin | 91750 -> 93123 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/spbmark/spbmark.tex | 33 |
3 files changed, 33 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/spbmark/README.md b/Master/texmf-dist/doc/latex/spbmark/README.md index fb09a7b7a9d..0fd0ff23714 100644 --- a/Master/texmf-dist/doc/latex/spbmark/README.md +++ b/Master/texmf-dist/doc/latex/spbmark/README.md @@ -1,11 +1,15 @@ -# The spbmark package +# The `spbmark` package +Customize superscripts and subscripts (v1.46k) +## 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. ## License - This work may be distributed and/or modified under the conditions of the CC-BY 4.0 License. The latest version of this license is in https://creativecommons.org/licenses/by/4.0/legalcode ## Website +| [Gitee](https://gitee.com/texno3/spbmark) | [Github](https://github.com/texno3/spbmark) | [CTAN](https://ctan.org/pkg/spbmark) | -| [Gitee](https://gitee.com/texno3/spbmark) | [Github](https://github.com/texno3/spbmark) | [CTAN](https://ctan.org/pkg/spbmark) |
\ No newline at end of file +## Maintainer +QuYi<br/> +Email: toquyi@163.com
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf b/Master/texmf-dist/doc/latex/spbmark/spbmark.pdf Binary files differindex 8242e5e3bf8..f17405570b1 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 9d04ea07f91..9da47d21515 100644 --- a/Master/texmf-dist/doc/latex/spbmark/spbmark.tex +++ b/Master/texmf-dist/doc/latex/spbmark/spbmark.tex @@ -1,15 +1,14 @@ \documentclass[load-preamble+]{cnltx-doc} -\usepackage{siunitx,setspace,pifont,hologo} +\usepackage{siunitx,setspace,pifont,hologo,changelog,enumitem} \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.46j, - date = 2024/05/19, + version = v1.46k, + date = 2024/06/21, authors = Qu Yi, info = Customize superscript and subscript, email = toquyi@163.com, @@ -19,7 +18,6 @@ \pkg*{spbmark} provides three commands \cs{super}, \cs{sub} and \cs{supersub} to improve the layout of superscript and subscript which can be adjusted the relative position and format, and can be used in text and math mode. }, color-scheme = blue, - title-format = \huge\bfseries\scshape, listings-options = {numbers = none,gobble = 2,lineskip = 1pt}, pre-output = {\parindent = 0em\setstretch{1.3}}, before-skip = \smallskipamount, @@ -43,6 +41,9 @@ \newnote{\newtag}[1]{\textcolor{red}{#1}} \renewcommand{\emph}[1]{\textcolor{red}{#1}} \renewcommand{\cnltx@write@lastname}{} +\setlist{nosep,topsep = \smallskipamount} +\setlist[description,1]{leftmargin = \parindent} +\setlist[itemize,1]{leftmargin = *} \makeatother \begin{document} @@ -71,6 +72,15 @@ The following macro package options will redefine the script commands of the \La \usepackage[text,foot=true]{spbmark} \spbset{all=false,math} \end{example} + \keychoice{spcore}{\fbox{trad},none}\newtag{New\\v1.46k}% + Kernel command case for text and math modes superscript. If \code{none} is selected, support for the superscript kernel command is removed, and the \option{cmd} and \option{vmove} options need to be set to control the size and offset of the superscript. + \begin{example}[code-only] + \usepackage[spcore=none]{spbmark} + \usepackage{graphicx} + \spbset{spcmd=\scalebox{0.6},spvmove=5pt} + \end{example} + \keychoice{sbcore}{\fbox{trad},none}\newtag{New\\v1.46k}% + Option for subscript kernel command case, similar to the \option{spcore} option. \end{options} \section{User commands} @@ -197,7 +207,7 @@ The following list of keys control the format both of superscript \emph{or} subs \keyval{spcmd+}{format cmds} Add code to the previous global superscript format commands. \keyval{sbcmd}{format cmds} - The format commands of subscript. The last command in the code can take an argument, which is a subscript. + The format commands of subscript. Similar to the \option{spcmd} option, but for subscript. \keyval{sbcmd+}{format cmds} Add code to the previous global subcript format commands. \keyval{spheight}{fixed length} @@ -215,7 +225,7 @@ The following list of keys control the format both of superscript \emph{or} subs \keyval{spregex}{regular expression} After the superscript command is used, the regular expression rules of the following tokens are matched. See Section \ref{sec:user commands} for the meaning of this option. \keyval{sbregex}{regular expression} - After the subscript command is used, the regular expression rules of the following tokens are matched. See Section \ref{sec:user commands} for the meaning of this option. + Similar to the \option{spregex} option, but for subscript. \end{options} If \option{sphmove} is positive, the superscript or subscript moves to the right, conversely it moves to the left. The positive direction of vertical offset of subscript and superscript is \textcolor{red}{opposite}. 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. @@ -294,6 +304,15 @@ If you need to use the original definitions of \cs{textsuperscript}, \cs{textsub At present, the vertical and horizontal move are effective for the unit commands in the \pkg*{siunitx} macro package. However, due to the special mechanism that the decimal point is not recognized correctly because it's converted to a space in the \cs*{unit} command, it's recommended to use \code{pt} as the unit of move. \appendix +\begin{changelog}[simple] + \begin{version}[v = 1.46j,date = 2024/05/19] + \item Add option \option{math*}: The \code{\^{}} and \code{\_{}} tokens in the math mode are equivalent to the \cs{super} and \cs{sub} commands. + \end{version} + \begin{version}[v = 1.46k,date = 2024/06/21] + \item Add options \option{spcore} and \option{sbcore}: Set kernel commands for superscript and subscript of text and math modes. + \end{version} +\end{changelog} \nocite{*} +\AddToHook{cmd/printindex/before}{\clearpage} \end{document}
\ No newline at end of file |