How to get right arrow symbol in LaTeX text mode?

Whenever I try to use \rightarrow command in LaTeX text mode, it shows some error. So in this tutorial, I will show you how to get the right arrow symbol in LaTeX text mode.

You can use these methods:

  • Use \textrightarrow from textcomp package
  • Use \MVRightarrow from marvosym package
  • Use $\to$ command
  • Use $\rightarrow$ command

 

\documentclass{article}
\usepackage{textcomp} % for \textrightarrow
\usepackage{marvosym} % for \MVRightarrow
\begin{document}

  \noindent\verb|A \textrightarrow\, B| : A \textrightarrow\, B \\[4pt]
  \verb|A \MVRightarrow\, B| : A \MVRightarrow \,B \\[4pt]
  \verb|A $\to$ B| : A $\to$ B \\[4pt]
  \verb|A $\rightarrow$ B| : A $\rightarrow$ B 

\end{document}

Output:

rightarrow in latex text mode.

Long right arrow in text mode

There is no specific command to get a long right arrow in LaTeX text mode but you can use the $\longrightarrow$ command.

\documentclass{article}
\begin{document}

  \noindent\verb|A $\longrightarrow$ B| : A $\longrightarrow$ B 

\end{document}

Output:

long right arrow in text mode.

Leave a Reply

Your email address will not be published. Required fields are marked *