# How to render ->

I tried to render the arrow symbol -> using \->, but it didn't work. I tried \-\> as well, which didn't work either. Both compiled well but didn't generate the right symbol. I suspect it might be encoding problem.

-
\textrightarrow in text and \rightarrow/\to in math. Is that what you are looking for? –  Manuel Feb 11 '13 at 20:40
Look at the link here on the section for arrows for finding the answer you're looking for. –  Uneo Feb 11 '13 at 20:42
If you are trying to get a "ascii drawn arrow", such as the ones used in C to dereference pointers to structures, you can try \verb|->|. For mathematical uses better to use $\to$ instead –  JLDiaz Feb 11 '13 at 21:24

I usually use the arrow from the math environment: $\rightarrow$