Skip to Main Content
The University of Massachusetts Amherst

LaTeX

Math Mode

There are two styles for adding math to a LaTeX document:

  1. In-Line Math
  2. Display Math

In-Line Math

As the name suggests, in-line math is for when you want your math to show up within a line of text (see the example below). To add in-line math, simply enclose your math in dollar signs $ -math- $ .

 


Display Math

Display math is helpful for when you would like to give extra space/focus to your math by having it on its own, separate line (see the example below). You can interrupt a paragraph with display math. The paragraph will continue below the display. To add display math, enclose your math in a backslash with an open bracket and a backslash with a closed bracket \[ -math- \] .