Tilde Under Character in LaTeX
September 29, 2005 – 4:58 pmI must admit this post is much more for my benefit than anyone else’s, but I found a nice way to put a tilde under a character in LaTeX. I found this method from a post in the Usenet archives, and it seems to work fairly well. Placing the following definition in the document header
\newcommand{\undertilde}[1]{\underset{\widetilde{}}{#1}}
allows one to get output like

from the code
\undertilde{a}
I have noticed, though, that trying to use a subscript with this technique produces a subscript that hangs too far below the character. For example,
\undertilde{a}_b
produces

Not great, but good enough for what I am doing.
11 Responses to “Tilde Under Character in LaTeX”
Eff,
What’s LaTeX? Also, why do you want and tilde underneath a character? Is this that program for writing scientific papers? I’m currently in the process of upgrading my webserver to Debian. Once’s I’ve got that up I’m going to try and build a system using Linux from scratch. Should be sweet!
Go Angels!
By Griztown on Oct 4, 2005 at 2:41 pm
Yes, LaTeX is the typesetting application that is used for most journal articles and the like. I also use it for my own personal notes. I was transcribing portions of my class notes, and the professor used a tilde underneath a character to denote a vector. I wanted to keep the same notation, so I figured out how to do it with LaTeX.
And I’m rooting for the Angels too, at least for the divisional round. Man, do I hate the Yankees.
By jjk on Oct 4, 2005 at 2:45 pm
I’m so depressed. I can’t believe how pathetic our offense can be at times. There is no reason Mussina pitched so well except for the fact that our offense is worthless. I think Garret Andreson is past his prime. We need a new left fielder. Hopefully they can pull it out tonight.
By Griztown on Oct 5, 2005 at 7:58 am
That did not look good last night, for sure. And in a short series, taking game one is pretty important. The Yankees are developing that post season swagger again. I hope the Angels can recover in time to make a series out of it.
One beacon of hope is that this year’s Yankees have looked downright awful at times, and the starting pitching can be all over the place. I can’t see them putting together good enough starting pitching as consistently as they will need to win the World Series. But, in a short series, they might be able to do enough to get past the Angels.
Game two will be interesting. Go Angels!
By jjk on Oct 5, 2005 at 1:56 pm
Phew! What a relief! It sucks thinking you might get swept, nice to know that’s not a risk anymore. How is Ariele taking the Red Sox losses?
By Griztown on Oct 6, 2005 at 9:43 am
She’s taking them just fine, to be honest. She gets into it when the Sox are winning, but when they’re losing, she doesn’t take much of an interest. I wish I could distance myself like that when my team loses; I just get pissed off.
By jjk on Oct 6, 2005 at 10:08 am
$\undertilde{a} \hskip 0mm _b$ may have better output
than $\undertilde{a}_b$.
By abcd on Apr 5, 2006 at 7:42 pm
try the undertilde-package with the following command:
$F_{\utilde{u}_p}$
it should give a better result!
good luck,
Selina
By Selina on Jun 25, 2006 at 9:10 am
This comment is really for Selina… What do i need to put in the preamble for the undertilde-package? Or do i need to download the package? I found a document by Benjamin Bayart on the use and implementation of the package, but it seems much more complicated than i’d hoped! Any ideas?
Cheers,
Tink
By Tink on Sep 2, 2006 at 2:33 am
Tink, you need to download the undertilde package, unzip it, then run ‘latex undertilde.ins’, which will generate undertilde.sty. Put undertilde.sty somewhere that LaTeX can find it. Then just put \usepackage{undertilde} in the preamble. Thanks all for this handy page.
By w33v1l on Sep 8, 2006 at 2:50 pm
This was so useful, thanks! I’ve been scratching my head on how to format vectors for an assignment.
By Cathy on Apr 11, 2008 at 7:52 pm