5

If I write $\hat{\bar{M}}^{a}$ by using the code

\hat{\bar{M}}^{a}

then I find that the superscript a is too high up. I would like for that a to be at the same height as M (but including the bar and hat accents on top).

How does one do this?

Mico
  • 506,678

2 Answers2

14

If you load the amsmath package, \hat{\bar{M}}^{a} will not only give you the desired, i.e., smaller height offset for the exponent term automatically, it'll also stack the "hat" and "bar" accent symbols in a much more pleasing way.

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\hat{\bar{M}}^{a}$
\end{document}
Mico
  • 506,678
5

Like this?

enter image description here

\documentclass[margin=3mm]{standalone}

\begin{document} $\hat{\bar{M}}{}^{a}$ $\hat{\bar{M}}^{a}$ \end{document}

See, if use of \widehat instead of \hat gives more appealing result.

Zarko
  • 296,517