加载 unicode-math 和 mathtools 时出现警告

加载 unicode-math 和 mathtools 时出现警告

这是对“从 PDFLaTeX 切换到 LuaLaTeX“。

考虑以下 MWE:

\documentclass{article}

\usepackage{mathtools}
\usepackage{unicode-math}

\begin{document}
test
\end{document}

使用编译时lualatex,我收到警告

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.

这个问题能解决吗?如果能,我该怎么做?

答案1

mathtools实际上今年早些时候就改变了这些定义所以不确定这是否有什么区别,但是

\usepackage{mathtools}
\let\mtdblcolon\dblcolon
\usepackage{unicode-math} 

将节省mathtools版本。

相关内容