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
fromtextcomp
package - Use
\MVRightarrow
frommarvosym
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:
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:
Leave a Reply