latex-repair

Solid

Use when a LaTeX build fails or produces a broken PDF in Stage 07 (Writing) — undefined control sequences, missing style packages, unresolved citations or references, float placement blowing the page budget, or a build_log.txt full of errors you need to triage.

AI & Automation 804 stars 25 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 82/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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** ...

Details

Author
tangxiangru
Repository
tangxiangru/AutoR
Created
5 months ago
Last Updated
today
Language
Python
License
NOASSERTION

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

latex-compile

Compile a LaTeX document and fix every error plus aesthetic issue (overfull/underfull boxes, widows, alignment, fonts) for a clean PDF and log. Use this instead of running pdflatex/latexmk manually — it avoids the latexmk stale-log trap and silent grep failures on binary log output, and it reformats rather than rewording.

0 Updated today
Speckledrattlesnakeinoculant470
Code & Development Listed

latex-compile

Compile a LaTeX document and fix every error plus aesthetic issue (overfull/underfull boxes, widows, alignment, fonts) for a clean PDF and log. Use instead of running pdflatex/latexmk by hand — avoids the latexmk stale-log trap and silent grep failures on binary log output; reformats, never rewords.

0 Updated 2 days ago
antiamerican-postponer432
AI & Automation Listed

compile-latex

Compile a .tex with latexmk, auto-detecting the engine (pdflatex/xelatex/lualatex) and bib backend (biber/bibtex), then emit a ranked error report with accurate file:line attribution across \input'd files, plus a diff against the last compile. Guards against Dropbox conflicted-copy files in Overleaf projects. TRIGGER on "compile this", "build my paper", "build the beamer deck", "why won't this compile", "what are the latex errors", "did my edit add warnings", or any request to build or debug a LaTeX document; Quarto .qmd decks belong to research-talk and teaching-lecture. An opt-in --figures pass hands TikZ/pgfplots blocks to the tikz-iterate skill.

10 Updated yesterday
ericluo04