:::meta
description: Luccet's math: the TeX a formula can use, its macros and environments, how formulas become MathML, fonts and browsers, and what is left out.
:::
::site-nav
# Math {#top}
::toc
Write a formula in TeX between dollars. Luccet turns the TeX into MathML itself, in the browser and in `luccet build` alike, and the browser lays the MathML out in the reader's math font. Nothing else is needed: no add-on, no download and no network.
```luccet {.live}
The roots of $ax^2 + bx + c = 0$ are
$$
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$
```
This page lists the TeX that Luccet reads. How to write a formula in a note, with its edge cases, is on the syntax pages: [inline math](syntax-inline.html#inline-math), [verbatim math](syntax-inline.html#verbatim-math) and [display math](syntax-blocks.html#display-math).
## Writing a formula {#formulas}
- **Inline math** goes between single dollars, `$x^2$`, and stays in the line.
- **Display math** goes between `$$` lines and stands on its own, centred. An id after the closing `$$` numbers it, and `@id` refers to it ([numbering](elements.html#numbering)).
- **Verbatim math**, `` $`…` ``, holds TeX with dollars or brackets that would end ordinary inline math.
- **Macros** for the whole note go in a [`:::macros`](syntax-blocks.html#macros) block ([macros](#macros)).
A formula becomes a `span.t-math` holding a `