Math & LaTeX
Circuitry supports mathematical formulas using LaTeX syntax. You can write equations inline with your text or as separate block formulas.
Quick Start Tutorial
Write Your First Formula
- 1Open or create a Text Node in your workflow
- 2Type
$$x^2$$ - 3The formula renders automatically:
Syntax Reference
| Format | When to Use | Example |
|---|---|---|
$$...$$ | Inline math (within text) | $$x^2$$ |
$$$...$$$ | Block math (on its own line) | $$$\sum_{i=1}^n x_i$$$ |
Pasting from Other Sources
When you paste or load content, Circuitry automatically recognizes math formulas from:
$...$ (inline) and $$...$$ (block)\(...\) (inline) and \[...\] (block)In pasted or imported text, put no space just inside the dollars ($ x $ is left as text), and keep a block equation on one line — a line break inside it stops it being maths.
Formulas, Not Documents
Formulas are typeset with KaTeX, which covers the maths you write in a formula but not LaTeX's document commands. \begin{equation}, \label, \ref, \eqref, \newcommand and \usepackage are not available. A formula with a mistake shows in red rather than breaking the note.
\begin{aligned} ... \end{aligned}, with & to line up and \\ between lines\begin{cases} ... \end{cases}pmatrix or bmatrixInline Math Examples
Type these with $$...$$ to embed formulas in your text.
Superscript / Exponent
$$x^2$$Multi-character exponent (use braces)
$$x^{10}$$Subscript
$$x_i$$Multi-character subscript
$$x_{max}$$Fraction
$$\frac{a}{b}$$Square root
$$\sqrt{x}$$Cube root (nth root)
$$\sqrt[3]{x}$$Greek letters
$$\alpha, \beta, \pi, \theta$$Einstein's equation
$$E = mc^2$$Block Math Examples
Type these with $$$...$$$ for standalone equations.
Summation
$$$\sum_{i=1}^n x_i$$$Integration
$$$\int_0^\infty f(x)\,dx$$$Quadratic formula
$$$x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$$$Limit
$$$\lim_{x \to \infty} \frac{1}{x} = 0$$$Matrix
$$$\begin{pmatrix} a & b \\ c & d \end{pmatrix}$$$Where Math Formulas Work
- ✓Text Nodes - Full editing and rendering support
- ✓Chat Nodes - AI responses render math automatically
Tips
- •Use braces
{}to group multi-character superscripts and subscripts - •Add
\,for thin spaces in formulas (e.g., before dx in integrals) - •Use
\text{word}to include regular text in formulas