I'm trying to write an expression in which an accented expression enclosed by parentheses has an accent over the parentheses. For example,
\vec{(\dot{x})}
This typesets fine when amsmath is not loaded, but with amsmath present, the x is typeset to the right of the dot, as if the inner expression is being treated as
\dot{}x
This behavior only happens when a closing parentheses (or bracket or brace) is part of the argument to the outer accent.
The best workaround I've been able to find is to use overset for the outer accent instead of the actual accent command (or accentset).
Is this behavior expected/documented anywhere?
I believe that this question was previously asked at amsmath possible bug: \dot over bracketed \dot{x}, but was incorrectly marked as a duplicate of \dot over \vec over : amsmath bug/feature?. The latter question was about the differences in typesetting between dotting a subscripted character and subscripting a dotted character.


(\vec{\dot{x})seems better syntax. – egreg Mar 30 '19 at 16:14\vec{(\dot{x})}and(\vec{\dot{x}})? And, if you have\vec{(blahblah)}the problem is even worse. – egreg Mar 30 '19 at 16:29\mathaccentV(the macroamsmathuses internally for\dot, etc.), which doesn't suffer from this issue. I'll try to provide a patch from that. – Skillmon Mar 30 '19 at 18:34