mathtoolsに関するunicode-mathによる警告を抑制する

mathtoolsに関するunicode-mathによる警告を抑制する

パッケージunicode-mathとを使用するとmathtools、常に警告が表示されます

Package unicode-math Warning: Using \overbracket and \underbracket from
(unicode-math)                `mathtools' package.
(unicode-math)                 
(unicode-math)                 Use \Uoverbracket and \Uunderbracket for
(unicode-math)                original `unicode-math' definition.


Package unicode-math Warning: I'm going to overwrite the following commands
(unicode-math)                from the `mathtools' package: 
(unicode-math)                 
(unicode-math)                     \dblcolon, \coloneqq, \Coloneqq, \eqqcolon.
(unicode-math)                
(unicode-math)                 
(unicode-math)                 Note that since I won't overwrite the other
(unicode-math)                colon-like commands, using them will lead to
(unicode-math)                inconsistencies.

(時には同じ種類のものがさらにいくつかある)。のドキュメントのunicode-math6.1節で、

このパッケージは、パッケージの競合などにより何か問題が発生している可能性がある場合に、ユーザーに通知するために、いくつかの情報メッセージを生成できます。実験的な機能として、パッケージ オプション warnings-off を使用すると、これらのメッセージを個別に無効にできます。このオプションには、抑制する警告をコンマで区切ったリストを指定します。

ただし、名前が明記されている唯一の警告は次のとおりですmathtools-colon

この警告は、次のようにパッケージをロードすることで抑制できます。

\usepackage[warnings-off={mathtools-colon}]{unicode-math}

unicode-mathに関するすべての警告を抑制するにはどうすればよいですかmathtools?

答え1

私が見る限り、unicode-mathドキュメントにはどの警告が事前に定義されているかは明記されていません。コード内で文字列を検索すると、mathtools次の行が見つかります。

\msg_new:nnn { unicode-math } { mathtools-overbracket } {
  Using~ \token_to_str:N \overbracket\ and~
         \token_to_str:N \underbracket\ from~
 `mathtools'~ package.\\
  \\
  Use~ \token_to_str:N \Uoverbracket\ and~
       \token_to_str:N \Uunderbracket\ for~
       original~ `unicode-math'~ definition.
}
\msg_new:nnn { unicode-math } { mathtools-colon } {
  I'm~ going~ to~ overwrite~ the~ following~ commands~ from~
  the~ `mathtools'~ package: \\ \\
  \ \ \ \ \token_to_str:N \dblcolon,~
  \token_to_str:N \coloneqq,~
  \token_to_str:N \Coloneqq,~
  \token_to_str:N \eqqcolon. \\ \\
  Note~ that~ since~ I~ won't~ overwrite~ the~ other~ colon-like~
  commands,~ using~ them~ will~ lead~ to~ inconsistencies.
}

したがって、mathtools関連の警告はmathtools-overbracketとですmathtools-colon。これらを無効にするには、パッケージを次のようにロードします。

\usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}

関連情報