# How would I make this symbol? LaTeX [duplicate]

I know that my title was not very clear, but I do not know of any other way to describe this. I want to be able to write the following, and be able to change what letters are below the arrow:

Note: I have never used LaTeX, but the text editor that I am using supports it, and it seems to be my best bet. However if there is a better way to do it, I am not committed to LaTeX in any way.

## marked as duplicate by Werner, Stefan Pinnow, Moriambar, Claudio Fiandrino, MenschJun 20 '17 at 19:52

• I'm not sure what you mean when you say that your text editor supports LaTeX. It may have syntax highlighting and some buttons for running the compiler, but you will still need to install a TeX distribution (MiKTeX or TeXLive). – Ian Thompson Jun 20 '17 at 18:34
• I am using typora.io and it says that this is the way I am supposed to write out math equations, that is the extent of my knowledge of LaTex. – zoecarver Jun 20 '17 at 18:35
• OK, I see. You should be aware that it probably doesn't support everything in LaTeX. Most systems of this type only support a subset of its features. – Ian Thompson Jun 20 '17 at 18:38
• @lan Thompson, Thanks for the advice! However I really don't need it for much other than taking simple notes on geometry. – zoecarver Jun 20 '17 at 18:43

You can use the \overleftrightarrow command from the amsmath package.
\documentclass{article}
$\overleftrightarrow{YC}$