Math formulas

Write math in LaTeX right in the text of a page. OpenThink renders it with KaTeX.

Inline formulas

Wrap the formula in single dollar signs inside a sentence:

`The area of a circle is $S = \pi r^2$.`

The area of a circle is $S = \pi r^2$.

Block formulas

Put a formula in double dollar signs on a line of its own. It becomes a centered block:

`$$\int_0^1 x^2\,dx = \frac{1}{3}$$`

$$\int_0^1 x^2\,dx = \frac{1}{3}$$

Dollar signs for money

OpenThink follows the Pandoc rule: an opening `$` must touch the character to its right, and a closing `$` must touch the character to its left and not be followed by a digit. So "Tickets cost $5 and $10" stays plain text without any escaping.

To write a literal dollar sign inside a formula, type `\$`.

Where formulas work

- Text pages

- Mind maps — in any idea; an idea that is only `$$…$$` becomes a formula block

- Task descriptions (they use the same Markdown as pages)

Tips

- Long formulas and matrices are easier to check in a block than inline.

- For geometry drawings you can drag, embed a drawing from Math Ankiren — see [Plugins](https://openthink.app/n/49793eed1e24).