siunitx icon indicating copy to clipboard operation
siunitx copied to clipboard

Add options for math superscript and subscript commands

Open texno3 opened this issue 1 year ago • 1 comments

May I ask if it is possible to add options for math superscript and subscript commands, such as math-subscript-command and math-superscript-command, whose defaults are \sb and \sp, respectively, so that other commands can be used to set the format of the superscripts and subscripts of the math , such as the \sub and \super commands of my macro package spbmark.

texno3 avatar May 17 '24 13:05 texno3

The model for siunitx to generate 'properly formed' (La)TeX math mode material as an intermediate to then typesetting either in math mode (directly) or in text mode (using appropriate substitutions). For sub/superscripts, that means _ and ^, which in text mode map to \textsuperscript/\textsubscript. If a document author or a package needs to redirect the results, that should apply generally, not just to units. For math mode, I'd expect to see that done using \mathcode or in text mode by redefining the \text...script commands.

josephwright avatar May 17 '24 16:05 josephwright