Fix the build
Steps
Build and check:
overfull build overfull check --json --checks build,outputIf nothing changed since the last good build,
overfull builddoes not startlatexmk(it prints "is up to date" and reports on the existing log). After a change to a file the build does not track, or to get a clean run, useoverfull build --force. With--json, a build that fails before LaTeX writes a log prints{"error": {"code": "build-failed", ...}}and exits 1.Work on the first
builderror only. Overfull groups follow-on errors under the root cause (relatedcounts them). Fixing the first one often clears the rest.Open
location.fileatlocation.line. Readmessage,detailandfix. For more, runoverfull explain <rule>.Make the smallest change that fixes the cause. Rebuild and recheck.
When
buildpasses, fixoutputerrors, then reviewoutputwarnings.
Common causes
| Symptom (rule id) | Usual cause | Fix |
|---|---|---|
Undefined control sequence (undefined-control-sequence) |
Typo, or package not loaded | Fix the name. Add a package only if the author agrees. |
Missing $ inserted (missing-dollar) |
_, ^, &, %, # in text |
Escape: \_, \&, \%, \#. Use math mode for math. |
& or < in source |
HTML escaping | Replace with \& or < in math. |
File not found (missing-file, missing-figure) |
Wrong path or case | Use the real path; paths are case-sensitive in CI. |
Undefined reference ?? (undefined-reference) |
Missing or misspelled \label |
Fix the label or the \cref. |
Undefined citation [?] (undefined-citation) |
Bibliography not rebuilt, or the key is not in the bib (citation-key-missing) |
Rebuild; for a missing key see the add-citation skill. Never write BibTeX by hand. |
Rerun / stale bibliography (rerun-needed, bibliography-stale) |
Build stopped early | Rebuild with overfull build. |
Duplicate label (duplicate-label) |
Copied figure or section | Rename one label and its references. |
Overfull box > 10pt (overfull-box) |
Long word, URL, table or formula | Rephrase, allow a break (\url, \allowbreak), resize the table to \linewidth, split the formula. |
Missing packages
If a package is missing from the local TeX installation, build in Docker (the
one case where you pass --engine; the image installs packages it lacks):
overfull build --engine docker
Without overfull on PATH, make build already runs in Docker. Never install
TeX packages or fonts globally, and do not switch engines except via the
documented arXiv path (prepare-arxiv). If the package is also missing in
Docker, tell the author.
Done
overfull check --checks build,outputhas no errors.- Remaining warnings (for example small overfull boxes in the author's prose) are listed for the author with page numbers.
Pitfalls
- Do not wrap text in
\sloppy, change\hbadness, or add negative spacing to hide overfull boxes. - Do not delete content, figures or citations to make an error go away.
- Do not comment out
\DocumentMetadataor tagging. If it causes the error, see themake-accessibleskill. - If you can read images, use
overfull pages <n>to confirm a layout fix.