Core Troubleshooting Guides
- Common LaTeX errors —
Missing $ inserted,Undefined control sequence,Missing \begin{document},Runaway argument, and other fatal syntax errors. - Emergency stop —
! Emergency stop,*** (job aborted, no legal \end found), and file errors in nonstop mode. - Warnings explained —
Underfull \hbox (badness 10000),Overfull \hbox,Underfull \vbox, undefined references, multiply-defined labels, and font or float warnings. - Missing packages —
File `x.sty' not found, missing.clsclass files, andOption clash for package. - Compiler and engine errors —
fontspecunder pdfLaTeX,Unicode character ... not set up for use with LaTeX, and choosingpdflatex,xelatex, orlualatex. - Chinese font not found with ctex —
Font unisong30 at 632 not foundand Fandol font errors in Chinesectexdocuments. - Image and path errors —
File not found,Cannot determine size of graphic (no BoundingBox), and unknown graphics extensions. - Bibliography build errors — Undefined citations, empty bibliographies, and BibTeX or Biber build failures.
- Float and placement issues — Figures and tables jumping pages,
Too many unprocessed floats, andFloat too large for page.
Errors or Warnings?
An error stops the compile. A warning does not — you still get a PDF, and TeX is reporting a layout compromise, an unresolved reference, or a substituted font. If your document compiled but something looks wrong, start with warnings explained.Fast Triage
- Identify the first error line in the log.
- Confirm the compiler (
pdflatex,xelatex, orlualatex). - Isolate the failing lines in a minimal reproducible example.
- Recompile after each single change.
