Markdown guide · Code, tables, diagrams & math

Writing LaTeX math

The LaTeX commands for fractions, powers, roots, symbols and more.

Commands start with a backslash, and curly braces {} group what a command applies to. Spaces don't matter; LaTeX does the spacing for you.

Powers, indexes, fractions and roots

You type
$x^2$, $x^{10}$, $a_i$, $a_{i+1}$, $\frac{1}{2}$, $\sqrt{x}$, $\sqrt[3]{x}$
You get

x2, x10, ai, ai+1, 12, x, x3

Use braces when more than one character goes up, down or inside: x^{10}, not x^10.

Sums, integrals and limits

You type
$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2} \qquad \int_0^1 x^2\,dx \qquad \lim_{x \to 0} \frac{\sin x}{x}
$$
You get
∑i=1ni=n(n+1)2∫01x2dxlimx→0⁡sin⁡xx

Greek letters

You type
$\alpha, \beta, \gamma, \delta, \theta, \lambda, \mu, \pi, \sigma, \phi, \omega, \Delta, \Sigma, \Omega$
You get

α,β,γ,δ,θ,λ,μ,π,σ,ϕ,ω,Δ,Σ,Ω

Lowercase names give lowercase letters; a capital first letter gives the capital: \delta and \Delta.

Operators and relations

  • \times ×, \div ÷, \pm ±, \cdot ·
  • \leq ≤, \geq ≥, \neq ≠, \approx ≈
  • \in ∈, \subset ⊂, \cup ∪, \cap ∩
  • \to →, \Rightarrow ⇒, \Leftrightarrow ⇔
  • \infty ∞, \partial ∂, \nabla ∇
  • \forall ∀, \exists ∃, \neg ¬

Brackets that grow

You type
$\left( \frac{a}{b} \right)^2$ and $\left| x \right|$
You get

(ab)2 and |x|

\left( and \right) size the brackets to what's inside. Plain ( and ) stay text-sized.

Matrices and cases

You type
$$
A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}
$$
You get
A=(abcd)
You type
$$
|x| = \begin{cases} x & \text{if } x \ge 0 \\ -x & \text{otherwise} \end{cases}
$$
You get
|x|={xif x≥0−xotherwise

& separates columns and \\ starts a new row. Use bmatrix for square brackets and vmatrix for a determinant.

Text, fonts and accents

You type
$\text{speed} = \frac{d}{t}$, $\mathbb{R}$, $\mathbf{v}$, $\hat{x}$, $\vec{F}$, $\overline{AB}$
You get

speed=dt, ℝ, 𝐯, xˆ, F→, AB

Tip The symbol buttons in the equation editor insert these for you. Hover a button to see its LaTeX.
Write Markdown without memorizing it.

Prosedown shows your document styled as you type, with the Markdown one click away. This guide is built in: press F1.

Try it free for 14 days