I am writing fractions using the \frac command, but it returns italicized fractions. How to write fractions in non-italic format in latex?
You need to typeset the text-only fraction by using the \text command of the amsmath package. The \text command will return fractions in non-italic format.
Here is an example:
\documentclass{article}\usepackage{amsmath}\begin{document}\[\frac{\text{number 1}}{\text{number 2}}\]\end{document}
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[\frac{\text{number 1}}{\text{number 2}}\]
\end{document}