Everytime I use an equation I want the normal letters to be non-italic in the equation.
I've tried \usepackage{mathastext}
which makes the equations look funny, the parenthesis becomes small etc.
I've tried \usepackage{eulervm}
Which rotates the \leq
.
The greek letters can stay italic, I've got another trick to make them non-italic. Is there a way only to make the normal text in the equation non-italic?
Best Answer
I don't know if an approach like this would cover all bases?
I tell LaTeX to make math
letters
using the{cmr}{m}{n}
font style. However, this screws up Greek letters, so I have to define a specialgreeksymbols
class that uses{cmm}{m}{it}
and then, for each Greek symbol, point it to thegreeksymbols
font style.EDITED to take campa's suggestion to add additional symbols to the mix, such as harpoons,
\imath
(upright style),\wp
, and\vec
(accent).The key in adding such symbols is to look at the cm font tables in the TeXbook, (Appendix F), to determine the slot number and font family of the desired glyph. You also need to know the functional category of glyph, such as
\mathrel
,\mathbin
,\mathchar
,\mathord
, etc. and add all that information into the\DeclareMathSymbol
declaration.EDITED to make the greek letters
\mathord
category, per egreg's recommendation.