The problem is the odd placement of g in the second line in the align
environment. Strangely, the \dot{}
-character is only misplaced if it is followed by another character. I need the mathabx
package for some symbols and would therefore prefer an alternative to this question. Without mathabx everything works as expected.
\documentclass[10pt,a4paper]{article}
\usepackage[ngerman]{babel}
\usepackage{mathtools}
\usepackage{mathabx}
\begin{document}
\begin{align*}
\widetilde{g\dot{g}}\\
\widetilde{\dot{g}g}
\end{align*}
\end{document}
Best Answer
The problem is the same as exposed in Why do arguments to nested \tilde or \breve commands reappear when amsmath is used? Here it appears in a less spectacular way, the effect of
mathabx
is just to produce it also withwidetilde
. The solution is always the same:Of course, you can use whatever name you want instead of
\compositeaccents
.