Fractions

LATEX provides the \frac command that accepts two arguments: the numerator and the denominator (in that order). Before we look at examples of its use, let us just note that many simple in-text fractions are often better written in the form num/den, as with 3/8 which can be typed as $3/8$. This is also often the better form for a fraction that occurs within some expression.

\begin{mathegs}
\verb@$\frac{x+1}{x+2}$@ & $\displaystyle\frac{x+1}{x+2}$\\
\ve...
...{2}}$\\
\verb@$\frac{1}{1+x/2}$@ & $\displaystyle\frac{1}{1+x/2}$
\end{mathegs}