# Place '~' symbol as overarrow

I would like to know how to place ~ or - on top of a character. I believe I could do this with the \overrightarrow{character} command for right arrows. But how do I do this in general?

-
Also consider the accents package. –  Werner Nov 10 '11 at 6:02

In math mode, you would use $\tilde{x}$ for x with a ~ on top, and $\bar{x}$ for x with a bar on top. If you would like the tilde or bar to span multiple characters, you can instead use $\widetilde{xy}$ or \$\overline{xy}.
In text mode, you could use \~{x} and \={x} to get these accents over those characters.