josephwright / josephwright/siunitx

Option to suppress warning when the physics package is loaded

Open
#862 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
407
Forks
29
Avg merge
11h 20m
Merged PRs (30d)
3

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the siunitx package option definitions and the existing physics-pkg warning message referenced by the issue. Check how the current expl3 message redirection works. Done means a documented option suppresses this specific warning while leaving other siunitx warnings unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.