Closed zepinglee closed 2 years ago
The \underbrace command produces incorrect output if the mathtools package is loaded.
\underbrace
mathtools
\documentclass{article} \usepackage{amsmath} \usepackage{unicode-math} \setmathfont{STIXTwoMath-Regular.otf} \usepackage{mathtools} \begin{document} \[ \overbrace{a+b+c+d}^{e/f/g/h} \underbrace{a+b+c+d}_{e/f/g/h} \LaTeXoverbrace{a+b+c+d}^{e/f/g/h} \LaTeXunderbrace{a+b+c+d}_{e/f/g/h} \] \end{document}
amsmath
unicode-math
I'm sure if it's better for unicode-math to fix it rather than mathtools.
I suppose it should be fixed in mathtools.
\AtEndOfPackageFile*{mathtools}{ \@ifpackageloaded{unicode-math}{ \let\underbrace\LaTeXunderbrace \let\overbrace\LaTeXoverbrace }{} }
Description
The
\underbrace
command produces incorrect output if themathtools
package is loaded.Add info or delete as appropriate:
Minimal example demonstrating the issue
Further details
amsmath
2021/10/15 v2.17lunicode-math
2020/01/31 v0.8qmathtools
2021/04/12 v1.27I'm sure if it's better for
unicode-math
to fix it rather thanmathtools
.