[Tex/LaTex] Right arrow without italics

arrowsfontsitalic

How can I print a \rightarrow or \Rightarrow (I really don't care, I just want an arrow…) without the following words being in italics? This sentence added for grammar control.

Best Answer

If I have understood your question correctly, you are writing something like, $Person\rightarrow Man$ and the text involved, are coming out in italics.

To begin with, it is incorrect to say that the text is coming out in italics. They are coming out in math mode.

Please try to see the difference between the following two,

\textit{Person}$\rightarrow$\textit{Man}

$Person\rightarrow Man$

enter image description here

From the first one, you get the output of your text in italics, from the second one, text is actually coming out as math characters. See the different spacing among characters?


Anyway, one way of doing what you are asking for (arrows in grammar rules) will be to write Person $\rightarrow$ Man. But you loose the excellent spacing around operators provided by LaTeX. So, the best way will be to put the whole inside math mode, and use \text command from amsmath package to specify the text.

From this solution, you get your text as text, as well as, you enjoy the spacing around operators provided by TeX math mode.

\documentclass{article}

\usepackage{amsmath}

\begin{document}

$\text{Person}\rightarrow\text{Man}$

$\text{Person}\Rightarrow\text{Man}$


\end{document}

enter image description here

Related Question