Since both the physics and siunitx packages define \qty, siunitx issues a warning when physics is also loaded. While I appreciate that this warning exists, I generally aim to keep my documents free of warnings.
One way to handle the duplicate definition of \qty is simply to ignore the warning and use the physics version. However, in such cases it would be useful to have an option to suppress this specific warning.
At the moment, I achieve this by adding the following to essentially all my documents:
\ExplSyntaxOn
\msg_redirect_name:nnn { siunitx } { physics-pkg } { none }
\ExplSyntaxOff
It would be great if siunitx provided an option to disable this warning directly, for example:
\usepackage[no-physics-warn]{siunitx}
If this approach sounds reasonable, I would be happy to try implementing it and open a PR.
Thanks
Since both the
physicsandsiunitxpackages define\qty,siunitxissues a warning when physics is also loaded. While I appreciate that this warning exists, I generally aim to keep my documents free of warnings.One way to handle the duplicate definition of
\qtyis simply to ignore the warning and use thephysicsversion. However, in such cases it would be useful to have an option to suppress this specific warning.At the moment, I achieve this by adding the following to essentially all my documents:
It would be great if siunitx provided an option to disable this warning directly, for example:
If this approach sounds reasonable, I would be happy to try implementing it and open a PR.
Thanks