Debian Codegraph @

texmf-dist/doc/latex/spbmark/spbmark.tex

raw
1 \PassOptionsToPackage{svgnames}{xcolor}
2 \documentclass[load-preamble+]{cnltx-doc}
3
4 \usepackage{siunitx,hologo,changelog,enumitem,codehigh}
5 \usepackage[spbmark]{altsubsup}
6 \usepackage[margin = 1in,marginparwidth = 0.6in,footskip = 0.5in]{geometry}
7 \setcnltx
8 {
9 package = spbmark,
10 version = v1.46y,
11 date = 2025/07/14,
12 authors = Qu Yi,
13 title = \spbmark{} package,
14 info = Customize superscripts and subscripts,
15 email = [email protected],
16 url = https://github.com/texno3/spbmark,
17 abstract =
18 {
19 \pkg*{spbmark} provides three commands \cs{super}, \cs{sub} and \cs{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.
20 },
21 color-scheme = blue,
22 module-sep = \,$\Rightarrow$\,,
23 title-format = \LARGE
24 }
25 \makeatletter
26 \newcommand{\splitmeta}[2]{\meta{#1}\texttt{,}\meta{#2}}
27 \newcommand{\newsplitarg}[4][\splitmeta]
28 {
29 \newcommand{#2}[2]
30 {\code{\textcolor{argument}{#3\textnormal{#1{##1}{##2}}#4}}}
31 }
32 \newcommand{\kvsplit}[3]
33 {
34 \item\code{\option{#1}\cnltx@isvalue\splitmarg{#2}{#3}}
35 \cnltx@checkdefault{\hfill\newline}
36 }
37 \newsplitarg{\splitoarg}{[}{]}
38 \newsplitarg{\splitmarg}{\{}{\}}
39 \newsplitarg{\splitdarg}{(}{)}
40 \newcommand{\hface}{$\symbol{"263A}$}
41 \newcommand{\sface}{$\symbol{"263B}$}
42 \NewDocumentCommand{\dtag}{sO{\hface}}
43 {
44 \begingroup
45 \reversemarginpar
46 \marginnote{\hfill\llap{#2}}
47 \endgroup
48 \IfBooleanF{#1}{\cnltx@checkdefault{\hfill\newline}}
49 }
50 \newnote{\newtag}[1]{\textcolor{red}{#1}}
51 \renewcommand{\emph}[1]{\textcolor{red}{#1}}
52 \renewcommand{\cnltx@write@lastname}{}
53 \renewcommand{\cnltxpackagenameformat}[1]{\textcolor{cnltx}{\textsf{#1}}}
54 \setlist{nosep,topsep = \smallskipamount}
55 \setlist[description,1]{leftmargin = \parindent}
56 \setlist[itemize,1]{leftmargin = *}
57 \SetCodeHighStyle[default]{2}{cs}
58 \colorlet{link}{DeepPink}
59 \makeatother
60
61 \begin{document}
62 \section{Macro package options}
63 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}.
64 \begin{options}
65 \keychoice{text}{true,\fbox{false}}
66 \cs{textsuperscript} and \cs{textsubscript} are equivalent to the \cs{super} and \cs{sub} commands. The command \cs{defspbstyle} can be used to define the style \code{textsp} and \code{textsb} to change the format of the text superscripts and subscripts.
67 \keychoice{math}{true,\fbox{false}}
68 \cs{sp} and \cs{sb} are equivalent to the \cs{super} and \cs{sub} commands. The command \cs{defspbstyle} can be used to define the style \code{mathsp} and \code{mathsb} to change the format of the math superscripts and subscripts.
69 \keychoice{math*}{true,\fbox{false}}\newtag{Exp\\v1.46j}%
70 The \code{\^{}} and \code{\_{}} tokens in the math mode are equivalent to the \cs{super} and \cs{sub} commands. The command \cs{defspbstyle} can be used to define the style \code{mathsp*} and \code{mathsb*} to change the format of the math superscripts and subscripts.
71 \keychoice{foot}{true,\fbox{false}}
72 The format of the footnote mark match the superscripts global move and format settings. \cs{defspbstyle} can be used to define the superscripts style \code{fnmark} to change the format of the footnote mark.
73 \begin{codehigh}
74 \defspbstyle{textsp}{vmove=-1pt,cmd=\bfseries}
75 \defspbstyle{mathsb}{hmove=0.5em}
76 \defspbstyle{fnmark}{cmd=\small\color{red}}
77 \end{codehigh}
78 \keychoice{both}{true,\fbox{false}}
79 The values of \option{text} and \option{math} two options are \code{true} or \code{false} at the same time.
80 \keychoice{all}{true,\fbox{false}}
81 The values of \option{text}, \option{math} and \option{foot} three options are \code{true} or \code{false} at the same time.
82 \begin{codehigh}
83 \usepackage[both]{spbmark}
84 \usepackage[text,foot=true]{spbmark}
85 \spbset{all=false,math}
86 \end{codehigh}
87 \keychoice{spcore}{\fbox{trad},none}\newtag{New\\v1.46k}%
88 Kernel command case for text and math modes superscripts. If \code{none} is selected, support for the superscripts kernel command is removed, and the \option{cmd} and \option{vmove} options need to be set to control the size and offset of the superscripts.
89 \begin{codehigh}
90 \usepackage[spcore=none]{spbmark}
91 \usepackage{graphicx}
92 \spbset{spcmd=\scalebox{0.6},spvmove=5pt}
93 \end{codehigh}
94 \keychoice{sbcore}{\fbox{trad},none}\newtag{New\\v1.46k}%
95 Option for subscripts kernel command case, similar to the \option{spcore} option.
96 \end{options}
97
98 \section{User commands}
99 \label{sec:user commands}
100 There are currently three commands to print superscripts and subscripts. Their format can be set locally using the optional parameter of the command, or set globally using a \meta{key-value list}, see Section \ref{sec:global control interface}.
101 \begin{commands}
102 \command{super}[\sarg\oarg{kv list}\marg{content}\oarg{kv list}]
103 This is a superscript output command. The two \meta{kv list} are equivalent.
104 \command{sub}[\sarg\oarg{kv list}\marg{content}\oarg{kv list}]
105 This is a subscript output command. The two \meta{kv list} are equivalent.
106
107 When the horizontal movement distance of the marker is \emph{non-negative}, since the \cs{super} and \cs{sub} commands put the marker in a horizontal box, the horizontal position is staggered when using superscript and subscript \emph{consecutively}, which is a different mechanism than the sequential use of \code{\^{}} and \code{\_{}} symbols in math mode. The following three commands save the width of the previous marker, use it for negative move of the \option{hmove} option of the next marker, and provide the corresponding alignment.
108
109 It should be noted that the following commands should save the longer width of the marker, that is, the longer width of the marker in the front, the shorter width of the marker in the back. This is due to the fact that horizontal movement uses a negative distance to leave the marker in a zero-width box state.
110 \command{llastwd}
111 Save the width of the previous marker and provide left alignment. This is actually the width of the previous marker, and is the same as the value of \cs{rlastwd} after the next command is used.
112 \command{clastwd}
113 Save the width of the previous marker and provide center alignment.
114 \command{rlastwd}
115 Save the width of the previous marker and provide right alignment. Actually this is the width of the next marker.
116 \begin{demohigh}
117 1A\super{bcd}\sub{e}B \\
118 2A\super{bcd}\sub[hmove=-\llastwd]{e}B \\
119 3A\sub{e}\super{bcd}[hmove=-\llastwd]B \\
120 4A\super{bcd}\sub[hmove=-\clastwd]{e}B \\
121 5A\super{bcd}\sub[hmove=-\rlastwd]{e}B
122 \end{demohigh}
123 \command{supersub}[\sarg\oarg{kv list}\marg{super cont}\marg{sub cont}\oarg{kv list}]
124 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.
125 \command{superwd}
126 Save the width of the superscript in the \cs{supersub} command.
127 \command{subwd}
128 Save the width of the subscript in the \cs{supersub} command.
129 \command{maxwd}
130 Save the maximum width of superscript and subscript in the \cs{supersub} command. That is, it is the larger of the \cs{superwd} and \cs{subwd} commands.
131
132 If horizontally move is negative and its absolute value is \emph{less} than the maximum width of the marker, then the marker overlaps the subsequent text. To avoid this use the command with the \emph{asterisk} parameter or adjust the horizontal distance with the marker length commands.
133 \begin{demohigh}
134 \spbset{spvmove=5pt,vsep=1.8ex,spcmd=\color{blue}}
135 1A\super[hmove=-8pt]{super}B \\
136 2A\supersub[hmove=-8pt]{examsuper}{sub}B \\
137 3A\super*[hmove=-8pt]{super}B \\
138 4A\supersub*[hmove=-8pt]{examsuper}{sub}B \\
139 5A\super[hmove=-8pt]{super}\hspace{\dimexpr(\llastwd-8pt)}B \\
140 6A\supersub[hmove=-8pt]{examsuper}{sub}\hspace{\dimexpr(\maxwd-8pt)}B
141 \end{demohigh}
142 \command{defspbstyle}[\marg{style name}\marg{kv list}]
143 Defines the style of the superscripts or subscripts used for the \option{style} option.
144 \command{spbifmath}[\marg{math code}\marg{text code}]
145 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.
146 \command{spbshortkv}[\marg{short opt}\marg{key value}]
147 Converts any existing key-value pair to a shorthand option. The value of key \code{\#1} indicates that the shorthand option needs to be assigned a value.
148 \begin{demohigh}
149 \spbshortkv{x}{sphmove=#1}
150 \defspbstyle{fancy}{sbcmd=\color{blue},mode=math}
151 \spbshortkv{mysb}{style=fancy}
152 1A\super[x=2pt]{b} \\
153 2A\sub{b}[mysb]
154 \end{demohigh}
155 \end{commands}
156
157 The options common to \meta{kv list} of the three commands are as follows. These options can also be used in \meta {key-value list} of the \cs{spbset} command to represent the simultaneous setting of three commands. The symbol \hface{} before options indicates that they are invalid for the \cs{supersub} command.
158 \begin{options}
159 \keyval{style}{style name}
160 Use the \meta{style name} defined by the \cs{defspbstyle} command to make it work global or local.
161 \keychoice{mode}{text,math,\fbox{match}}
162 The mode of superscripts or subscripts output can be \code{text} or \code{math} mode. The \code{match} option automatically matches output modes according to the current mode.
163 \keyval{vmove}{fixed length}\Default{0pt}
164 Vertical move of superscripts or subscripts. Represents the extra vertical distance \option{vsep} between superscript and subscript in the \cs{supersub} command. The vertical movement starts at the marker horizontal baseline position.
165 \keyval{hmove}{fixed length}\Default{0pt}
166 Horizontal move of superscripts or subscripts. Represents the \emph{common} move of superscript and subscript in the \cs{supersub} command. The starting point for horizontal movement is to the left of the marker. Moved values can be expressed mathematically:
167 \begin{demohigh}
168 1A\super{b}[vmove=0.4ex+4pt/2,hmove=2pt*3-11.5pt] \\
169 2A\supersub[vsep={3pt,6pt-2bp}]{examsuper}{sub}
170 \end{demohigh}
171 \keyval{cmd}{format cmds}
172 The format commands of superscripts or subscripts. The last command can take a parameter, which accepts superscript or subscript. Represents the format option \option{spbcmd} of superscript and subscript in the \cs{supersub} command.
173 \keyval{cmd+}{format cmds}
174 Add code to the previous option \option{cmd}.
175 \keyval{height}{fixed length}
176 The height of the marker box above the baseline. It is recommended that the superscript adjusts the height and the subscript adjusts the depth.
177 \keyval{depth}{fixed length}
178 The depth of the marker box below the baseline.
179 \keychoice{thiswd}{auto,\fbox{keep}}\dtag
180 Sets how the length of the this marker is handled after this command is used. If it is \code{keep}, the width of the previous marker remains the same. If it is \code{auto}, if the next token is a marker command and the upper or lower position is the \textcolor{red}{opposite} of the this command, the width of the this marker is maintained, otherwise the width automatically returns to \textcolor{red}{zero}.
181 \begin{demohigh}
182 \spbset{sbhmove=-\llastwd,sbthiswd=auto,sbcmd=\color{red}}
183 1A\super{bcd}\sub[thiswd=keep]{e}Some texts\sub{e} \\
184 2A\super{bcd}\sub{e}Some texts\sub{e} \\
185 3A\sub{bcd}[thiswd=keep]\sub{e}Some texts\sub{e} \\
186 4A\sub{bcd}\sub{e}Some texts\sub{e}
187 \end{demohigh}
188 \keyval{regex}{regular expression}\dtag
189 After using a superscript or subscript command, this option is used to determine whether the \textcolor{red}{following} tokens match the \meta{regular expression}. If it does \textcolor{red}{not}, the width of the this marker returns to zero.
190 \begin{codehigh}
191 \newcommand{\mysp}[2][]{\super[regex=\c{mysb},#1]{#2}}
192 \newcommand{\mysb}[2][]{\sub[regex=\c{mysp},#1]{#2}}
193 \end{codehigh}
194 \keychoice{nobox}{true,\fbox{false}}\dtag\newtag{New\\v1.46v}%
195 Causes the superscripts or subscripts not to be saved in the box, in which case the offset-related options are invalid. For example, there is a difference in nesting superscripts in math mode.
196 \begin{demohigh}
197 1A$\super{c\super{d}}$B \\
198 2A$\super{c\super[nobox]{d}}$B
199 \end{demohigh}
200 \end{options}
201
202 \section{Global control interface}
203 \label{sec:global control interface}
204 \begin{commands}
205 \command{spbset}[\marg{key-value list}]
206 \pkg*{spbmark} uses the \cs{spbset} command to control the global default format of superscripts and subscripts. These options also apply to \meta{kv list} of the \textcolor{red}{above} print commands. The values set by it will be overwritten by the optional parameter of superscripts and subscripts commands.
207
208 Note that the relative length units in the options such as \code{ex} and \code{em} are for the \textcolor{red}{body} font size, not the marker itself.
209
210 The following list of keys control the format both of superscripts \emph{or} subscripts. They can also be used in the optional parameter of the \cs{super} or \cs{sub} command.
211 \end{commands}
212
213 \begin{options}
214 \keyval{spvmove}{fixed length}\Default{0pt}
215 Extra vertical move of the superscripts.
216 \keyval{sphmove}{fixed length}\Default{0pt}
217 Extra horizontal move of the superscripts.
218 \keyval{sbvmove}{fixed length}\Default{0pt}
219 Extra vertical move of the subscripts.
220 \keyval{sbhmove}{fixed length}\Default{0pt}
221 Extra horizontal move of the subscripts.
222 \opt{nohmove}
223 Cancel the horizontal move of superscripts and subscripts at the same time.
224 \opt{novmove}
225 Cancel the vertical move of superscripts and subscripts at the same time.
226 \keyval{spcmd}{format cmds}
227 The format commands of superscripts. The last command in the code can take an argument, which is a superscripts.
228 \keyval{spcmd+}{format cmds}
229 Add code to the previous option \option{spcmd}.
230 \keyval{sbcmd}{format cmds}
231 The format commands of subscripts. Similar to the \option{spcmd} option, but for subscripts.
232 \keyval{sbcmd+}{format cmds}
233 Add code to the previous option \option{sbcmd}.
234 \keyval{spheight}{fixed length}
235 The height of the superscript box above the baseline.
236 \keyval{spdepth}{fixed length}
237 The depth of the superscript box below the baseline.
238 \keyval{sbheight}{fixed length}
239 The height of the subscript box above the baseline.
240 \keyval{sbdepth}{fixed length}
241 The depth of the subscript box below the baseline.
242 \keychoice{spthiswd}{auto,\fbox{keep}}
243 Width processing mode after using this superscripts. See Section \ref{sec:user commands} for the meaning of this option.
244 \keychoice{sbthiswd}{auto,\fbox{keep}}
245 Width processing mode after using this subscripts. See Section \ref{sec:user commands} for the meaning of this option.
246 \keyval{spregex}{regular expression}
247 After the superscripts 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.
248 \keyval{sbregex}{regular expression}
249 Similar to the \option{spregex} option, but for subscripts.
250 \end{options}
251
252 If \option{sphmove} is positive, the superscripts or subscripts moves to the right, conversely it moves to the left. The positive direction of vertical offset of subscripts and superscripts is \textcolor{red}{opposite}. For superscripts, if \option{spvmove} is positive, the superscripts moves up, conversely it moves down. For subscripts, if \option{spvmove} is positive, the subscripts moves down, conversely it moves up.
253
254 The following list of keys control the format of superscripts \emph{and} subscripts. They can also be used in the optional parameter of the \cs{supersub} command.
255 \begin{options}
256 \keyval{spbhmove}{fixed length}\Default{0pt}
257 Extra vertical move of the superscripts and the subscripts.
258 \kvsplit{spbcmd}{super cmds}{sub cmds}
259 The format commands of superscripts and subscripts. The first part is in superscripts format, and the latter part is in subscripts format. They are separated by commas, or only the first part exists.
260 \kvsplit{spbcmd+}{super cmds}{sub cmds}
261 Add code to the previous option \option{spbcmd}.
262 \keyval{spbheight}{fixed length}
263 The height of the superscript box above the baseline.
264 \keyval{spbdepth}{fixed length}
265 The depth of the subscript box below the baseline.
266 \kvsplit{vsep}{super move}{sub move}\Default{0.6ex}
267 The extra vertical distance between superscripts and subscripts. The front part is the movement amount of the superscripts, and the latter part is the movement amount of the subscripts. If only the front part means that both are vertically shifted by one-half of the current value.
268 \keychoice{halign}{\fbox{l},c,r}
269 The alignment of superscripts and subscripts, which contains \code{l}, \code{c}, and \code{r} parameter respectively for left, center, and right alignment.
270 \end{options}
271
272 \section{Marker hooks}
273 \begin{commands}\setlength{\itemsep}{0pt}
274 \command{AddToHookWithArguments}[\Marg{spb/super/before}\oarg{label}\marg{code}]\nonl
275 \command{AddToHookWithArguments}[\Marg{spb/super/after}\oarg{label}\marg{code}]\nonl
276 \command{AddToHookWithArguments}[\Marg{spb/sub/before}\oarg{label}\marg{code}]\nonl
277 \command{AddToHookWithArguments}[\Marg{spb/sub/after}\oarg{label}\marg{code}]\newtag{New\\v1.46r}%
278 \pkg*{spbmark} provides hooks to markers of \cs{super} and \cs{sub} with arguments in front and back positions, this feature requires support in the \hologo{LaTeX} kernel after \textbf{2023/06/01}. Argument \code{\#1} in the \meta{code} represents \code{super} or \code{sub}, and argument \code{\#2} represents the marker content itself.
279 \begin{demohigh}
280 \AddToHookWithArguments{spb/super/before}{\spbifmath{(#1-#2)}{[#1-#2]}}
281 $\super{a}$\super{b}
282 \RemoveFromHook{spb/super/before}
283 \end{demohigh}
284 \end{commands}
285 \begin{commands}\setlength{\itemsep}{0pt}
286 \command{AddToHookWithArguments}[\Marg{spb/super*/before}\oarg{label}\marg{code}]\nonl
287 \command{AddToHookWithArguments}[\Marg{spb/super*/after}\oarg{label}\marg{code}]\nonl
288 \command{AddToHookWithArguments}[\Marg{spb/sub*/before}\oarg{label}\marg{code}]\nonl
289 \command{AddToHookWithArguments}[\Marg{spb/sub*/after}\oarg{label}\marg{code}]
290 Hook name with an asterisk indicates that this is the hook for the marker in the \cs{supersub} command.
291 \end{commands}
292 \begin{commands}\setlength{\itemsep}{0pt}
293 \command{AddToHookWithArguments}[\Marg{cmd+/super/after}\oarg{label}\marg{code}]\nonl
294 \command{AddToHookWithArguments}[\Marg{cmd+/sub/after}\oarg{label}\marg{code}]
295 The above hooks are located in the marker horizontal boxes, and these two hooks are located at the end of the group outside of the \cs{super} and \cs{sub} commands. Due to the addition of the peek command at the end of marker commands, using such as \code{cmd/super/after} hook directly would result in a peek error.
296 \end{commands}
297
298 \section{Examples of use}
299 Here is a list of the three commands, please pay attention to the usage of optional parameter. Note when the horizontal move is negative, the starting point is at the right end of the mark.
300 \begin{demohigh}
301 \defspbstyle{fancy}{cmd=\color{purple}}
302 \spbset{spbcmd={\spbifmath{\mathtt}{\ttfamily},\color{blue}}}
303 1A\super[vmove=0.2ex,hmove=0.2em,cmd=\textcolor{red}]{exam}B \\
304 2$A\sub[style=fancy,cmd+=\mathsf,mode=math]{exam}B$ \\
305 3A\supersub[vsep=0.6ex,halign=c]{examsuper}{sub}B \\
306 4A\super{c}[vmove=5pt,hmove=-5.5pt]B\sub[vmove=5pt,hmove=-5pt]{d}AB
307 \end{demohigh}
308
309 \subsection{siunitx}
310 It can also be used with the \pkg*{siunitx} package to output superscripts and subscripts in the unit:
311 \begin{demohigh}
312 \spbset{spcmd=\spbifmath{}{\color{purple}}}
313 \sisetup{text-superscript-command=\super}
314 1-\qty[mode=text]{10}{A^2} \\
315 2-\unit[mode=math]{kg.m/s\super[vmove=-1pt]{2}} \\
316 3-\qty[mode=text]{30}{A\supersub[hmove=1pt,cmd=\color{blue}]{b}{c}} \\
317 4-\spbset{sbhmove=2pt}\unit[mode=text]{A\sub{b}}
318 \end{demohigh}
319
320 \subsection{realscripts}
321 If the OpenType text font you are using does not have optical sizes, the superscripts and subscripts may not appear correctly. Loading the \pkg*{realscripts} package before the \pkg*{spbmark} package fixes this behavior.
322 \begin{codehigh}
323 \usepackage{realscripts,spbmark}
324 \end{codehigh}
325
326 \subsection{altsubsup}
327 The \pkg*{altsubsup} package allows to write alternate superscripts and subscripts in math mode with \code{\^{}}\oarg{mark} and \code{\_{}}\oarg{mark} dimensions. When the package is loaded using the \code{spbmark} option, the superscripts and subscripts mechanism of \pkg*{spbmark} is used, you can use \cs{defspbstyle} to define its superscripts style \code{altsup} and subscripts style \code{altsub}.
328
329 Note that the mechanism of \pkg*{altsubsup} package adds \cs{text} command to markers in math mode, which invalidates the \option{match} option. You can restore it by setting the format command to \cs{relax}.
330 \begin{demohigh}
331 \SetAltSubSupCommands{\relax}
332 \defspbstyle{altsup}{sphmove=-\llastwd,spthiswd=auto,spvmove=1pt}
333 $A_[bcd]^[e]B$
334 \end{demohigh}
335
336 \subsection{footnote}
337 \pkg*{spbmark} also patches the footer markers for standard document class and \cls*{KOMA-Script}. You can format the footer markers by redefining the \cs{fnmarkfont} command. Note that extra horizontal move does not work with footnote markers.
338
339 \section{Developer commands}
340 If you need to use the original definitions of \cs{textsuperscript}, \cs{textsubscript}, \cs{sp} and \cs{sb} after using the \option{text} or \option{math} option, then you can use the following commands:
341 \begin{commands}
342 \command{spb@textsuperscript@save}[\marg{content}]
343 Save the original definition of the \cs{textsuperscript} command, output superscripts in the text mode.
344 \command{spb@textsubscript@save}[\marg{content}]
345 Save the original definition of the \cs{textsubscript} command, output subscripts in the text mode.
346 \command{spb@math@super@save}[\marg{content}]
347 Save the original definition of the \cs{sp} command, output superscripts in the math mode.
348 \command{spb@math@sub@save}[\marg{content}]
349 Save the original definition of the \cs{sb} command, output subscripts in the math mode.
350 \end{commands}
351
352 \section{Known issues}
353 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.
354
355 \appendix
356 \begin{changelog}[simple]
357 \begin{version}[v = 1.46j,date = 2024/05/19]
358 \item Add option \option{math*}: The \code{\^{}} and \code{\_{}} tokens in the math mode are equivalent to the \cs{super} and \cs{sub} commands.
359 \end{version}
360 \begin{version}[v = 1.46k,date = 2024/06/21]
361 \item Add options \option{spcore} and \option{sbcore}: Set kernel commands for superscripts and subscripts of text and math modes.
362 \end{version}
363 \shortversion{v = 1.46r,date = 2024/10/29,changes = Give hooks to markers with parameters at the front and back positions.}
364 \end{changelog}
365 \nocite{*}
366
367 \end{document}