I use ${\dot \hat E}$ to put a hat and dot on top of an E simultaneously. However, an error occurs.

  • Welcome to TeX.SE!
    – Cfun
    Jul 2, 2016 at 4:12
  • $\dot{\hat{E}}$ should help ...
    – Zarko
    Jul 2, 2016 at 4:16

1 Answer 1


First, be sure to load the amsmath package, as it provides for better positioning of stacked math accents. Second, write


A full MWE (minimum working example):

enter image description here


Just for comparison, here's the output of \dot{\hat{E}} if the amsmath package is not loaded:

enter image description here

  • 1
    This shows why it's preferable to always teach the “braced syntax"
    – egreg
    Jul 2, 2016 at 10:58
  • Question of taste for you @Mico: if dot denotes time derivative and hat denotes preferred reference frame, would it make more sense to \hat{\dot\omega} or \dot{\hat\omega}? Jul 17, 2018 at 17:38
  • Perhaps \frac{d\hat\omega_k}{dt} makes the moist sense. Jul 17, 2018 at 17:46
  • 1
    @StevenB.Segletes - Thanks for these comments. I will readily concede that your understanding of what the dot and hat accents may mean is probably (almost surely, actually! -- I'm an economist; dot-accents tend to be used but rarely in mathematical economics and econometrics) a lot better than mine. I especially like the suggestion of not using both accents in combination and to "differential fraction" notation instead. Readers will quite likely agree.
    – Mico
    Jul 17, 2018 at 18:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.