Skip to content

Option to suppress warning when the physics package is loaded #862

@M0M097

Description

@M0M097

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions