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.

(그리고 때로는 같은 종류가 몇 개 더 있습니다). , Sec 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-overbracketmathtools-colon

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

관련 정보