In LaTeX, \tilde{x} puts a ~ on top of the x.
How can I put a ~ below the x?
Asked
Active
Viewed 1.8k times
17
2 Answers
17
Use the command \utilde from the undertilde package.
Added by the crowd: This package is not part of TeX Live, so you may have to install it manually. This having been done, using the package is simple:
\documentclass{article}
\usepackage{undertilde}
\begin{document}
$\utilde{x}$
\end{document}
This produces the following output.

Dylan Moreland
- 268
Ryan Reich
- 37,958
3
Or just copy the 4 lines of code:
\def\undertilde#1{\mathord{\vtop{\ialign{##\crcr
$\hfil\displaystyle{#1}\hfil$\crcr\noalign{\kern1.5pt\nointerlineskip}
$\hfil\tilde{}\hfil$\crcr\noalign{\kern1.5pt}}}}}
from
undertilde.sty
and use the command
\undertilde{x}
Blairg23
- 223
-
this will not work for some cases, e.g. (\mu_{\undertilde{A}}(x)) will cause A to be printed in full size, rather than scriptsize. – sfranky Feb 10 '17 at 10:47
align? I wonder if it's an issue with\everycr(which would be weird)? – Ryan Reich Jul 04 '12 at 05:29\utildecommand really only depends on\fontdimen5. I wonder if that dimension is redefined in a multiline environment.... – Tristan Jul 06 '12 at 03:32mathptmxpackage – Tristan Jul 06 '12 at 03:42equationenvironment, the original\baselineskipis 12pt, while in analignedenvironment, the original\baselineskipis 15pt. The\utildecommand uses a\baselineskip=1ptcommand to stack the symbols. – Tristan Jul 06 '12 at 05:36undertildepackage adjusts\baselineskipbut does nothing to\lineskiplimitand\lineskip, which are 3pt and 4pt respectively in a multiline environment, but 0pt and 1pt in a single line environment. – Tristan Jul 07 '12 at 00:17\halignthat sets things up right... – Ryan Reich Jul 07 '12 at 00:27