LaTeX error: Too many }'s (Extra }, or forgotten $)
Every } must close a { that is still open. When TeX finds one with nothing to close, it reports "Too many }'s" in text, or "Extra }, or forgotten $" inside math.
! Too many }'s.
Try it: this example has the error
Press Fix it in the error box, and it compiles to a PDF. What pdfTeX printed for it:
! Too many }'s.
l.3 Some text here }
and more text.
Ready. Press Compile (or Ctrl/Cmd + Enter).
Common causes
- An extra
}left behind after deleting a command such as\textbf{. - A literal brace in text that should be written
\}. - Mismatched braces inside math, e.g.
\frac{a}{b}}, which gives "Extra }, or forgotten $".
How to fix it
- Go to the reported line and delete the brace that has no partner. TeXpad offers "Remove the stray }".
- For a literal brace in your text, write
\{and\}.