Here's a minimal example:
\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{mathabx}
\begin{document}
\[\widehat{\vec{v}_{i-1}}\]
\end{document}
What I expect this to generate is a widehat over the entire \vec{v}_{i-1}, but instead the various components are randomly spaced and overlapping. If I remove either amsmath or mathabx, the problem goes away. How should I fix this? I need to typeset this in a paper that makes essential use of both amsmath and mathabx.


\def\widehat{\mathaccent "0362}after\usepackage{mathabx}. Or you can use\let\OldWidehat\widehat\usepackage{mathabx}\let\widehat\OldWidehat`. Not sure if this will break other things though. – Peter Grill Sep 23 '17 at 03:51