
При использовании пакетов 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}