[Tex/LaTex] mathabx + mathtools -> extremely odd underbrace behaviour… how to fix

math-modemathtools

This following code produce very strange result:

\documentclass[12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage{amssymb}
\usepackage{amsmath}

\usepackage{mathabx}
\usepackage{mathtools}

\begin{document}
$$W_n(\underbrace{\mbox{\textvisiblespace},
                  \mbox{\textvisiblespace},
                  \dots,
                  \mbox{\textvisiblespace}
                 }_n 
     )
$$
\end{document}

If I just remove one of mathabx or mathtools the brace is displayed normally. Any ideas?

P.S. I use some symbols from mathabx and some commands from mathtools in the book, so I probably need both packages…

Best Answer

mathabx has wider effects that aren't always predicted. maybe using just the particular symbols you need, and not loading the entire package, would get rid of this problem (not tried).

good advice can be found at the question Importing a Single Symbol From a Different Font

Related Question