[Tex/LaTex] overbrace but leave spacing in math unaffected

amsmathbracesspacing

I would like to use an overbrace, but I do not want how much text I put in the overbrace to affect the spacing of the math (i.e. I don't want the the "a" and the "b" to get further apart in the following example):

$\frac{a-\overbrace{b^d}^{\text{'d' here stands for 'dummy variable', it is not an exponent}}}{c}$

Any ideas? This particular example is pretty silly and I would not do it in practice, but it is just to make things simple.

Best Answer

Depending on the situation, maybe you can use \mathclap from mathtools.

For example,

\documentclass{article}
\usepackage{amsmath}
\usepackage{mathtools}
\begin{document}
  $\frac{a-\overbrace{b^d}^{\mathclap{\text{'d' here stands for 'dummy variable', it is not an exponent}}}}{c}$
\end{document}
Related Question