# How can I write tilde ~ in math mode? [duplicate]

~ makes symbols after them 'phantoms'. I want just to write '~' in math mode and \~ doesn't work. How can I solve this problem?

(I want to write 'x is asymptotically normal distributed')

## marked as duplicate by doncherry, Andrew Swann, Claudio Fiandrino, yo', lockstepDec 10 '12 at 16:51

• Welcome to TeX.sx! Are you perhaps looking for \sim? – egreg Dec 10 '12 at 14:50
• Also related answer for different choices tex.stackexchange.com/questions/9363/… – percusse Dec 10 '12 at 14:55
• @percusse That question is more oriented towards getting a tilde in text mode. – egreg Dec 10 '12 at 14:55
• @egreg oh sorry, I didn't parse the text while reading :) – percusse Dec 10 '12 at 14:57
• The other famous tilde question could be made a bit more general and canonical by changing it to mean both text and math mode. Answers deal already with it in math mode. And the top answer could easily edited to reflect also math mode. I think this would be better than making near-duplicates distinct, so I think the dupe vote of @doncherry would be good. – Stefan Kottwitz Dec 10 '12 at 16:07

There are various ways to do it.

Mathmode

\sim


Using package amssymb

\thicksim


Textmode

\textasciitilde


You can always check detexify

• Using \sim would appear to be the mathematically most correct way, since it produces TILDE OPERATOR (which is vertically positioned at operator level) as opposite to the Ascii TILDE (typically positioned higher). – Jukka K. Korpela Dec 10 '12 at 15:11
• @JukkaK.Korpela: You are right. That's why I choose to mention it first. But I think that one has to have alternatives that best suit his/her needs! – Thanos Dec 10 '12 at 15:34
• If you don't want the space after the tilde, you can wrap it with curly braces. For example: ${\sim} 10$ – DanHickstein Jan 3 '17 at 18:12
• @DanHickstein Fantastic tip. Exactly what most of us will need! (And it is not obvious...) – Kai Noack Apr 25 '18 at 5:46