Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{..} and ending with \end{document}.
@mrc Yes: the output of \hat{h}^2 in TeX is correct, exactly as if the hat weren't there; so the question is just how to fix the placement with MathJax and this is beyond the scope of this site, because it depends on the implementation of MathJax.
\documentclass{..}
and ending with\end{document}
.\hat{h}{}^2
would work.\hat{h}^2
in TeX is correct, exactly as if the hat weren't there; so the question is just how to fix the placement with MathJax and this is beyond the scope of this site, because it depends on the implementation of MathJax.