Errors & Warnings
Understand, navigate, and fix LaTeX compilation errors.
Error panel
After every compilation the Error panel appears below the PDF preview. It shows:
- Errors (red) — compilation failed; PDF may not be generated
- Warnings (amber) — compilation succeeded but something needs attention
- Info (blue) — informational messages from LaTeX packages
Navigating to an error
Click any error line in the panel to jump directly to the offending line in the editor. The editor gutter shows a red dot next to every line with an error.
Common errors
| Error message | Cause | Fix |
|---|---|---|
Undefined control sequence | Typo in command or missing \usepackage | Check spelling; add the required package |
Missing $ inserted | Math command used outside math mode | Wrap in $...$ or \(...\) |
File not found | Missing .bib, figure, or .cls file | Check the filename and path |
Citation undefined | BibTeX key not in .bib file | Add the entry or fix the cite key |
Missing \begin{document} | Preamble issue | Check for stray characters before \begin{document} |
Extra }, or forgotten $ | Mismatched braces or $ | Count opening and closing braces |
AI-powered error fixing
After a failed compile, click Fix errors with AI in the error panel. The AI reads the full error log, identifies the root cause, applies a targeted fix, and recompiles.
You can also just type in the chat:
"Fix the compilation errors"
The AI will compile, read the log, and fix the issues in a single pass.
Suppressing warnings
Some warnings like Overfull \hbox are harmless and very common. You can suppress them by adding to your preamble:
\hbadness=10000
\vbadness=10000Only do this after you are done with layout; it hides real layout problems too.