Fractions
rating: 0+x

« All Snippets

Basic Commands

Fractions in LaTeX are typeset with the \frac{numerator}{denominator} command:

  • $\frac{1}{2}$ produces $\frac{1}{2}$.

The style and size of the fraction will depend on whether the command is used inline with text or in display format. Here is the same command in display style (e.g. $$\frac{1}{2}$$):

(1)
\begin{align} \frac{1}{2} \end{align}

Alternatives

  • Use \tfrac to force small fractions in a display environment: $$\tfrac{3}{4}$ produces
(2)
\begin{align} \tfrac{3}{4} \end{align}
  • Use \dfrac to force large fractions in a line of text: $\dfrac{3}{4}$ produces $\dfrac{3}{4}$.
  • Use a large slash: $3/4$ produces $3/4$ and $3\Big/4$ produces $3\Big/4$.
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License