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

Physics warning #720

Closed
AndrewMathas opened this issue Feb 14, 2024 · 2 comments
Closed

Physics warning #720

AndrewMathas opened this issue Feb 14, 2024 · 2 comments

Comments

@AndrewMathas
Copy link

I run a LaTeX course and one of my student's was very unhappy about the siunitx warning message:

Detected the "physics" package:
(siunitx)    omitting definition of \qty.
(siunitx)    
(siunitx)    If you want to use \qty with the siunitx definition,
(siunitx)    add 
(siunitx)    
(siunitx)    \AtBeginDocument{\RenewCommandCopy\qty\SI}
(siunitx)    
(siunitx)    to your preamble.

Of course, as I explained to him, this is harmless. Even so, I think that a better way to handle this would be to add a (boolean) package option that when set disables this warning and if the option is set to true, say, it adds \AtBeginDocument{\RenewCommandCopy\qty\SI}.

Sorry for being tedious -- and thanks for all of your work on siunitx and LaTeX in general!

@josephwright
Copy link
Owner

As mentioned in #447 (comment), you can use

\ExplSyntaxOn
\msg_redirect_name:nnn{siunitx}{physics-pkg}{none}
\ExplSyntaxOn

to suppress the warning.

@josephwright josephwright closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
@boyoungzheng
Copy link

Another option is to use the package physics2 instead of physics.

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

3 participants