
當使用包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-math
。 6.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}