I want to put a "~" above x, just like \hat x but replacing \hat with \sim.
\hat x
\hat
\sim
How to do that?
I think you're after \tilde x.
\tilde x
\widetilde
\widetildeif the character is (or are) long. – Andrew Stacey Jun 10 '11 at 10:43