# LaTeX notation¶

LaTeX is the de facto standard mark-up language for mathematical notation. It’s syntactically very simple, but there’s a fairly steep learning curve in learning the names of commands.

In Numbas, inline maths (maths notation that sits on the same line as the surrounding text) is delimited either by dollar signs, e.g.:

Calculate the expansion up to the $x^4$ term.


produces

Calculate the expansion up to the $$x^4$$ term.

Display-mode maths, which is displayed on its own line and rendered less compactly, is delimited by $ and $. For example:

The quadratic formula is $x = \frac{ -b \pm \sqrt{ b^2-4ac } }{ 2a }$


produces

$x = \frac{ -b \pm \sqrt{ b^2-4ac } }{ 2a }$