I have written in my work $X^{+},\,\rm{e}^{X},\,|X|^{p}$. Why is the second and third term not in italics?
|
Because you used
Macros Those two-letter macros which change fonts and styles are deprecated and should not be used. They are maintained for backwards compatibility. |
|||
|
|
Summing up what JLDiaz and Mico have said in the comments: The correct thing to use here is
If you need something similar for text-mode you can use In the case that you want to define math symbols similar to |
||||

\rminstead of\mathrm. – JLDiaz Jul 18 '12 at 11:06\rmis a switch, i.e., all subsequent material (until either the math environment ends or a different font-related switch is encountered) is affected by the command. To limit its scope, you should type{\rm e}instead of\rm{e}. Much better, though: Use\mathrm{e}. The command\rmis a holdover from "Plain TeX" and is not supported fully in LaTeX! – Mico Jul 18 '12 at 11:58