---
title: LaTeX math in Drop docs
---

# LaTeX math in Drop docs

Math in a Markdown doc now renders as formulas you can select, copy and comment on. Before, Drop showed its TeX in monospace and refused to publish a doc with `$$` blocks.

Publish a doc with `$…$`, `$$…$$` and a `math` fence, then open it.

::compare{title="A doc with inline, display and fenced math"}
:::screenshot{src="https://drop.vitehub.dev/f/32cd02b6-6ce4-480b-8231-df684b2879f7.png" alt="The doc on main: every formula shows as grey monospace TeX" viewport="720x440"}
::::annotation{x=31 y=16.5 w=30.2 h=4.6 color="red"}
`Y = A K^\alpha L^{1-\alpha}` as source text
::::

::::annotation{x=3 y=40 w=90.2 h=7.4 color="red"}
The `$$` block as source text
::::

::::annotation{x=3 y=59.2 w=90.2 h=7.4 color="red"}
The `math` fence as source text
::::
:::

:::screenshot{src="https://drop.vitehub.dev/f/ca2a0e93-3eba-4194-86bb-6301ca3d4204.png" alt="The doc on this branch: inline and display formulas typeset as math" viewport="720x440"}
::::annotation{x=31 y=16.2 w=12.8 h=4.4 color="green"}
Y = AKᵅL¹⁻ᵅ, inline
::::

::::annotation{x=37.8 y=45.6 w=20.6 h=11.1 color="green"}
The `$$` block, centered
::::

::::annotation{x=40.4 y=74.9 w=15.4 h=12 color="green"}
The `math` fence
::::
:::
::

Prices stay text on both sides: `$5 and $10`.

## Comments on formulas

Three comments on the doc: one on the words before the formula, one whose quote ends inside it, and one on the whole `$$` block, each quoted as a reader's selection reports it. All three are highlighted, and each bubble sits after its formula without moving the text.

::screenshot{src="https://drop.vitehub.dev/f/c702f755-8d44-4665-af06-8d53cf98260b.png" alt="Three comments on the doc, with bubbles after the inline and display formulas and cards in the margin" viewport="1100x300"}
:::annotation{x=22.6 y=23.6 w=11 h=7.6 color="green"}
"output is Y": the bubble comes after the formula
:::

:::annotation{x=23.6 y=67.2 w=15.8 h=15.6 color="green"}
The whole formula, highlighted, bubble beside it
:::
::
