LaTeX / Math

Render LaTeX math expressions live with KaTeX — supports inline and display modes.

Reset
Copy

Syntax

  • $...$ for inline math, $$...$$ for block math.
  • Rendering uses KaTeX — see its supported functions.
  • Errors render in-place rather than blocking the rest of the document.

Math in your browser

LaTeX is the de-facto standard for writing mathematical and scientific notation. This page renders LaTeX expressions with KaTeX, a fast subset of TeX that runs entirely in the browser. It is the same renderer used by many wikis, note apps, and scientific publishing pipelines.

Inline vs display math

  • Inline math is wrapped in single dollar signs, e.g. $e^{i\pi} + 1 = 0$, and flows with surrounding text.
  • Display math uses double dollars or a \[ ... \] block, and is rendered centered on its own line. Use display mode for any expression with large operators (integrals, sums, matrices).

What KaTeX supports

KaTeX covers the vast majority of mathematical notation you will encounter in lecture notes, papers, and engineering documents: Greek letters, sub/superscripts, fractions, roots, sums, integrals, limits, matrices (pmatrix, bmatrix), \begin{align} environments, and the standard symbol set. It does not run a full TeX compiler, so packages, custom macros from a preamble, and TikZ diagrams will not render — for those you still need a real TeX engine.

Practical uses

Quickly verify a single equation copied from a paper, draft notation for a blog post or slide deck, or build up a short worked example before embedding the LaTeX in a Markdown document that supports KaTeX. Errors surface inline, so a missing brace or unknown command is easy to track down.