Reading compile errors
What the log panel is telling you, and the shortest route from a red badge to a rendered PDF.
A TeX log is a transcript of a program arguing with itself. It is long, it is written in the second person, and the line that matters is rarely the last one. LaCorTeX parses it into a list of diagnostics, each with a severity, a message, and where possible a file and a line you can click.
1Three severities
- Errors. The document did not typeset, or typeset wrongly. Every error is listed individually, because these are the ones you must act on.
- Warnings. LaTeX carried on but wants you to know something. A real paper produces dozens, so repeated warnings of the same kind collapse into one expandable group: Undefined citations, Undefined references, and so on.
- Boxes. Overfull and underfull
\hbox/\vbox: lines that stick into the margin or paragraphs stretched thin. As soon as there is more than one they fold into a single muted group, because most are cosmetic and none of them stop the build.
The header counts each family, and each count is a filter. Click warnings to hide them and leave only the errors; click again to bring them back. On a failed compile of a real paper this is usually the first thing to do. The two errors you need are otherwise buried under ninety undefined citations.
Compile failed 2 errors · 91 warnings · 14 boxes ✕ Undefined control sequence \argmax main.tex:212 ✕ Missing $ inserted methods.tex:48 ▸ Undefined citations 89 ▸ Overfull / underfull boxes 14
2Jumping to the source
A diagnostic that names a file and a line is clickable: it opens that file and puts the cursor on that line. This is the whole reason the log is parsed rather than printed.
A row that is not clickable means the parser could not attribute the message to a file it can find in your project. That is deliberate. TeX reports the file it is currently reading, which for an error inside a package is the package, not your document; rather than guess and send you somewhere wrong, LaCorTeX leaves the row inert and shows you the message.
3The errors you will actually hit
- Undefined control sequence. A command that does not exist: a typo, or a package you did not load. The log excerpt shows the offending line with the command at the break point.
- Missing $ inserted. Maths outside maths mode. Usually a stray
_or^in ordinary prose, or a$you closed twice. - Runaway argument. A command opened a brace that never closed. The log prints the text it swallowed, which is the fastest way to find where the brace should have been.
- Emergency stop. You will not see this one in the panel, and its absence is deliberate: it is never a cause, only TeX announcing that it gave up because of an error reported earlier. If you meet it in the raw log, keep reading upward.
- Undefined citations and references. Warnings, not errors. They render as question marks in the PDF, so they matter, but they also resolve on the second pass. See the note at the end of Searching arXiv.
4Handing it to the agent
Fix in Chat, in the log panel header, sends the parsed diagnostics to the agent as an attachment and asks it to fix them. It reads the errors, edits the sources, and the edits arrive as diffs you accept or reject like any other change.
What gets sent is deliberately narrow. When there are errors, only the errors go, because a failed run’s warning flood is noise for this task. Boxes are never sent. If the log could not be parsed into anything actionable, the tail of the raw log goes instead.
The button appears only when there is something to fix, and is unavailable while a chat turn is already running. For everything else, ⌘ ↩ recompiles.
5When a green compile is still wrong
Some failures produce a PDF. Those are the dangerous ones, so LaCorTeX keeps them on screen after a successful compile instead of clearing the panel:
- Auto-stubbed commands. The engine recovers from an undefined command by defining it as a no-op and retrying. The document compiles, and your macro renders as nothing. For a paper that is worse than a visible failure, so the diagnostic stays, reworded to say the command was stubbed.
- Font substitution. If a requested font family is unavailable, LaTeX silently typesets in a different one. That is escalated to an error: a PDF in the wrong font must never present as a clean compile.
Errors the retry loop genuinely resolved, a package fetched mid-compile for instance, are dropped. They are fixed, not latent.
6The raw log
Every parse is a heuristic, and TeX logs are capable of defeating any of them. The full untouched log is at the bottom of the panel behind a toggle, with a copy button next to it. If a diagnostic looks wrong, or you need to paste the log somewhere, that is the source of truth.