-
Notifications
You must be signed in to change notification settings - Fork 26
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
free-standing-units=false
still defines macros
#750
Comments
I will tighten up the docs here. The However, that doesn't affect the need to have the document commands defined for everything - there are technical reasons. So what happens is If your example, you are defining a document command after the preamble, which is what catches (There's been no change in the approach - it's only that v2 didn't have an abbreviation for |
What's the reason? I would think that they could be defined in a local group just in
I also noticed that difference, but it's not possible/desirable to always do that. For example, I use |
In expansion contexts, a non-defined unit command would lead to a undefined control sequence error. One cannot arrange that
LaTeX documents should always have commands defined in global scope even if they are locally modified - as document commands define LaTeX. |
I will tighten the docs here for the next release |
When upgrading from TeXLive 2021 to 2024, I spent hours debugging an
LaTeX Error: Command \C already defined.
.Turns out this is reproducible with:
Apparently this package defines the macros even when explicitly disabling
free-standing-units
. However, the documentation claims that it doesn't:siunitx/siunitx.tex
Lines 2459 to 2460 in 549cad9
It's quite annoying if new (single-letter!) macros are defined even if the user tries to shield themselves against it by disabling
free-standing-units
.The text was updated successfully, but these errors were encountered: