I got an error from Overleaf/LuaLaTeX saying that i have the following errors:

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

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

The comment that talks about inconsistencies with other colon like commands concerned me, so i investigated how these are affected.

...and... it doesn't have my symbols affected? when i tried to run each symbol available according to the mathtools package with all of them, while changing the 4 symbols the warning talks about, it didn't seem to change the way they looked, and it honestly surprised me.

is this warning redundant now? i want to be able to use the mathtools package names for the symbols, but it seems like it doesnt matter if i choose the unicode-math or mathtools versions of the 4 commands. Here is the code showing this.

% !TeX program = lualatex

\setmainfont{Times New Roman}[Ligatures=TeX]
\setmathfont{STIX Two Math}


Last 4 using \texttt{unicode-math} names

\approxcolon \colondash \Approxcolon \Colondash \simcolon \dashcolon \Simcolon \Dashcolon \colonapprox \Colonapprox \colonsim \Colonsim \Eqcolon \dblcolon \coloneqq \Coloneqq \eqqcolon

Last 4 using \texttt{mathtools}

\approxcolon \colondash \Approxcolon \Colondash \simcolon \dashcolon \Simcolon \Dashcolon \colonapprox \Colonapprox \colonsim \Colonsim \Eqcolon \dblcolon \coloneq \Coloneq \eqcolon

...they're the same?


1 Answer 1


First off, these are warnings, not errors. They tell you that there is something you may want to be aware off, but it's not a problem for typesetting on a technical level.

Now, the warning says: "I'm going to overwrite the following commands from the `mathtools' package [...]" Thus, in your example, you are not actually using the original mathtools symbols; they have been overwritten with the unicode-math versions. The fact that both symbol names result in the same symbol is thus expected.

The warning tells you that there may be inconsistencies between those symbols and the ones that are not overwritten, which is indeed the case. For example, look at \coloneq and \colonsim:

inconsistent colons

  • Thank you brother for the answer, but you need to add a bit of clarification. When you say in my example where I'm differentiating the last 4 versions of the 4 commands in the warning, these are all unicode-math names? And how can there be inconsistencies if i am seeing both lines have all the symbols the same way? Jan 8 at 16:21
  • i simply want to use the mathtools versions of symbols and have inconsistencies be avoided Jan 8 at 16:22
  • @FerriusUndermine The inconsistencies are not between your two lines of symbols, they are within each line. Again, look at the screenshot in my answer. As you can see, the colons in the two symbols are very different; the unicode-math symbols (under any name) have a narrower spacing.
    – schtandard
    Jan 8 at 16:56
  • @FerriusUndermine I do not believe that an interface to prevent overwriting these names is provided. You can undo the effect manually, of course. Please ask a separate question for help with this.
    – schtandard
    Jan 8 at 16:57
  • "The inconsistencies are not between your two lines of symbols, they are within each line." Alright, yes. i do see the difference in the picture. I would like to use the narrower spaced version of \colonsim, but how does one get the less spaced versions of the commands? ctan.org/pkg/mathtools?lang=en the package documentation pdf on page 31 lists commands, and these are all spaced less. Jan 8 at 18:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .