LaTeX error "Missing \right. inserted": cause and fix
A \left has no \right before the formula or the cell around it ends. TeX inserts \right., a closing delimiter that prints nothing.
Why it happens
- The closing bracket is typed without
\right:\left( \frac{a}{b} ). - Only a left bracket was wanted, as for a brace in front of several lines, and the
\right.was left out. - An
&or a\\stands between\leftand\rightinalignorarray.
How to fix it
- Add the partner:
\left( \frac{a}{b} \right). - For a bracket on the left side only, close with
\right.. - In a formula with several lines, end the line with
\right.and start the next one with\left., or use\bigl(and\bigr).
A document that produces the message
\documentclass{article}
\begin{document}
The ratio is $\left( \frac{a}{b} )$.
\end{document}The corrected document
\documentclass{article}
\begin{document}
The ratio is $\left( \frac{a}{b} \right)$.
\end{document}Both documents were compiled with pdfLaTeX from TeX Live 2023. The first produces the message, the second compiles without an error.
Finding the line in the editor
The editor lists every error and warning of a compile run with file and line. Select an entry and the cursor jumps to that line. See Error list with jump to the line.
Related pages
- Error Extra \right
- Error Missing delimiter (. inserted)
- How-to Large brackets in LaTeX
- How-to Piecewise functions in LaTeX