[Tex/LaTex] Arrow in text mode

arrowssymbols

Is there a way to write the equivalent of \rightarrow in text mode?

I tried but it threw an error, and the math arrow complained about bad environment.

It doesn't need to be exactly the same arrow, I just want to write something like "A → B" as in A points to B.

Best Answer

You can use something like A$\,\to\,$B or A\textrightarrow B (in text mode) from the textcomp package:

\documentclass{article}
\usepackage{textcomp}

\begin{document}


A$\,\to\,$B

A\textrightarrow B

\end{document}

enter image description here