Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options for math superscript and subscript commands #731

Open
texno3 opened this issue May 17, 2024 · 1 comment
Open

Add options for math superscript and subscript commands #731

texno3 opened this issue May 17, 2024 · 1 comment

Comments

@texno3
Copy link

texno3 commented May 17, 2024

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.

@josephwright
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants