TeXpad

Common LaTeX errors, explained and fixed

Each page shows the exact message from the pdfTeX log, what it means, the usual causes, and a broken example you can fix and compile right on the page. The same explanations appear in the TeXpad editor when a compile fails.

Questions

Where do I find the actual error in a LaTeX log?

Look for the first line that starts with an exclamation mark (!). The line after it, starting with l. and a number, shows where TeX stopped. Later errors are often caused by the first one, so fix that first.

Why does one mistake cause many errors?

After an error TeX tries to recover and keeps going, often in the wrong mode, so one missing brace or dollar sign can produce a cascade. TeXpad stops at the first error and explains that one.

Does TeXpad upload my document to explain the error?

No. Compiling and the explanations are rule-based and run in your browser. Nothing is sent to a server.

Free LaTeX tools