latex-repairlisted
Install: claude install-skill tangxiangru/AutoR
# LaTeX repair
Stage 07's gate wants `workspace/writing/main.tex`, section files, a
bibliography, a compiled PDF, and `workspace/artifacts/build_log.txt`. When the
build fails, the loop to avoid is: change something, recompile, read the same
error, change something else. LaTeX reports the *first* thing that broke, and
one real cause usually generates a cascade of downstream errors.
## Triage order
Read `build_log.txt` from the top and fix in this order. Recompile after each
class, not after each edit.
1. **Missing style package** — `LaTeX Error: File 'neurips_2025.sty' not found`.
AutoR does not vendor official style files (`templates/registry.yaml` says so
and carries the venue's `official_url`). Either fetch the style package to
`workspace/writing/`, or fall back to a standard class and record the
substitution honestly in the stage summary. Do **not** silently switch venue.
2. **Undefined control sequence** — a command from a package that is not loaded,
or a typo. Check the preamble before assuming the command is wrong.
3. **Missing `$` / runaway argument** — almost always an unescaped `_`, `%`, `&`
or `#` in prose that came from a variable name or a file path. These are
common when text was assembled from JSON results.
4. **Undefined references and citations** — `LaTeX Warning: Citation 'x'
undefined`. Requires a bibtex/biber pass and then two more LaTeX passes.
A single compile will always report these.
5. **Overfull boxes and float drift**