How to use tilde(∼) symbol in LaTeX?

SymbolTilde
Type of symbolMathematics
Package (requirement)No
ArgumentNo
Latex command\sim
Examplea \sim b → a∼b

Tilde symbol is known by different names in different cases. And the use of tilde symbols in programming, URLs, and Linux commands.

In Spanish and Portuguese, the tilde symbol is used above the letters n, a, and o. And mathematically, similar to(~) symbol is denoted by this symbol.

To print this symbol next to the letter you need to use the \sim command and use this command in Math mode of latex.

You can also place this symbol on top of any letter, using the \~{*} or \tilde{*} command.

Here the \~{*} command is used in Latex text mode and the \tilde{*} command is used in Math mode.

\documentclass{article}
\begin{document}
   x $\sim$ y \\ [6pt]
   \~{a} \; \~{b} \; \~{c} \\ [6pt]
   $ \tilde{a} $ \\ [6pt]
   l\~{a}tex = latex  
\end{document}

Output :

Tilde symbol

And to use the tilde symbol below an expression, you need to use the \textsubtilde command. For example

\documentclass{article}
\usepackage{tipa, amssymb}
\begin{document}
  \textsubtilde{x} \\[6pt]
  \textsubtilde{e} \\[6pt]
  \textsubtilde{n} \\[6pt]
  \textsubtilde{A} \\[6pt]
  $ \pi \sim 3.14 $  
\end{document}

Output :

Tilde symbol

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top