LaTeX Equation Editor
Assemble mathematical formulas visually with categorized symbol palettes, live KaTeX preview, and one-click MathML, Markdown, SVG, and PNG export.
How to Assemble Equations Visually
Whether you're creating equations for academic publications, STEM homework, or lecture presentations, LaTeXTool makes formula construction intuitive:
Click Symbol Palette
Browse fractions, integrals, Greek letters, and operators without having to remember every LaTeX command.
Live Real-Time Feedback
The KaTeX preview updates as you type, and syntax errors are flagged before you copy anything.
Export to LaTeX or Word
Copy code directly into your TeX document or copy MathML to paste into Word, Pages, and Google Docs.
LaTeX Math Cheat Sheet
The commands that cover most equations. Click any row to load it into the editor above and adapt it. Need a specific symbol? Search the full symbol directory or the Greek letter list.
Calculus
Brackets
Accents & fonts
Relations & operators
Writing LaTeX Equations: The Essentials
LaTeX has two math modes, and picking the right one matters. Inline math — dollar signs around your code, like $\frac{1}{2}$ — keeps the formula inside a sentence and renders it compactly. Display math — \[\frac{1}{2}\] — centers the formula on its own line at full size. In this editor you can paste either form; the preview detects the delimiters and renders accordingly.
Most equations are built from a small set of patterns. Fractions use\frac{numerator}{denominator}; superscripts and subscripts use^ and _, with braces for multi-character groups (x_{i+1}). Greek letters are backslash commands (\alpha, \Omega), and multi-line derivations use \begin{aligned} ... \end{aligned} with& marking the alignment point and\\ ending each line.
When the preview shows a syntax notice, the fix is usually one of three things: a missing closing brace, a command typed outside math mode, or a package-only command like \mathbb that needsamssymb in a real document (the preview handles it, but add the package when you paste into Overleaf). The symbol palette above the editor inserts correctly-formed commands, so clicking is often faster — and safer — than typing from memory.
Common LaTeX Equation Errors and How to Fix Them
Missing $ inserted
Why: A math-only command such as ^, _, \frac or \alpha was used in normal text.
Fix: Wrap the formula in $...$ (inline) or \[...\] (display).
Undefined control sequence
Why: A typo in a command name, or a command from a package you did not load (\mathbb and \text need amssymb / amsmath).
Fix: Check the spelling, and add \usepackage{amsmath,amssymb} to your preamble.
Double subscript / Double superscript
Why: x_i_j or x^2^3 — LaTeX does not know which part to raise or lower.
Fix: Group with braces: x_{i_j} or {x^2}^3.
Missing } inserted / Extra }
Why: Unbalanced braces, very often inside \frac{...}{...}.
Fix: Count the opening and closing braces. Paste the formula into the editor above: the preview pinpoints where it breaks.
Words in a formula look italic and cramped
Why: Letters in math mode are treated as variables: "if" becomes i times f.
Fix: Use \text{if} for words and \operatorname{argmax} for named operators.
Brackets are too small around a fraction
Why: Plain ( ) never resize.
Fix: Use \left( ... \right), or fixed sizes like \big( and \Big(.
Using Your Equation in a LaTeX Document
The editor gives you the formula itself. In a full document it goes inside a math environment, and theamsmath package unlocks the useful ones:equation for a single numbered formula,align for several lines lined up at &, and the starred versions (equation*, align*) when you don't want numbers. Add \label to an equation and cite it with\eqref, which prints the number in parentheses and updates automatically.
\documentclass{article}
\usepackage{amsmath, amssymb} % align, cases, \text, \mathbb
\begin{document}
Inline math sits inside a sentence: $E = mc^2$.
A numbered display equation you can refer to later:
\begin{equation}
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
\label{eq:quadratic}
\end{equation}
By \eqref{eq:quadratic}, a quadratic has at most two real roots.
Several aligned lines, each numbered:
\begin{align}
f(x) &= (x + 1)^2 \\
&= x^2 + 2x + 1
\end{align}
\end{document}Deeper guides: inline vs display math · aligning equations and systems · matrix syntax · equations in Word
Equation Editor FAQ
How do I insert fractions and square roots?▼
In the palette above the editor, select the "Fractions & Roots" tab and click "a/b" for \frac{a}{b} or "√x" for \sqrt{x}. Replace the placeholder variables with your values.
Can I paste MathML into Microsoft Word?▼
Yes! Click "Copy MathML" in the editor. Open Microsoft Word, press Ctrl+V (or Cmd+V on Mac), and Word will automatically format the equation into native editable Word Equation format.
Does this editor support multi-line equations?▼
Yes, you can use environments like \begin{aligned} ... \end{aligned} or \begin{cases} ... \end{cases} for multi-line proofs and piecewise functions.
How do I use these equations in Notion or Obsidian?▼
Click "Copy Markdown" in the editor, then paste the $$ ... $$ block straight into Notion or Obsidian. Both render it as a live math equation with no extra steps.
Does this work with Google Docs?▼
Yes. Click "Copy MathML" and paste into Google Docs to get a native editable equation. For slides, download a transparent PNG or vector SVG instead.
How do I number equations and refer to them?▼
Put the formula in \begin{equation} ... \end{equation}, add \label{eq:name} inside it, and write \eqref{eq:name} in your text. LaTeX numbers the equation and keeps every reference up to date. Use equation* for an unnumbered display.
Which packages do I need for these equations?▼
Basic fractions, roots, sums and Greek letters work in plain LaTeX. Load \usepackage{amsmath, amssymb} for align, cases, \text, \binom, \mathbb and most other commands in the cheat sheet; it is safe to include in every document.