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$
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}
You could just stop the command, then restart it.
\documentclass[11pt]{article}
\begin{document}
\textit{Here is some itallic text,} some regular text, \textit{and more itallic text.}
\end{document}
Would produce
Best Answer
The font Inconsolata does not have an italic or slanted variant (June 2014).
Some TeX engines can fake a slanted font, based on a font transformation feature of the PDF format (therefore PDF mode only).
LuaTeX/XeTeX
The slanted/italic versions are only faked. Also the italics correction is not set.
pdfTeX
A
SlantFont
operator can be used in the.map
file.The following Perl script
zi4-sl.pl
readszi4.map
(found viakpsewhich
) and modifies the entries:-sl
is added to the font (TFM) name,.167 SlantFont
is added.Perl script:
The following example:
\pdfmapfile
,.fd
files normally).Finally the TFM files are needed. A poor man's solution is to use the TFM files for the original fonts. The example would need (bash syntax):
Again, the slanted and italic variants are only faked. Also the italics correction is missing, but it could be added by editing the
.tfm
files.