Skip to content

Compile LaTeX papers to PDF with error detection, style checks, and citation validation.

CCM score
50 of 100
skills.sh installs
1.7K
GitHub stars
483
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Runs the full pdflatex → bibtex → pdflatex → pdflatex pipeline, with an optional --check-style chktex pass
  • Includes compile_paper.py, validate_citations.py, and fix_latex_errors.py, plus an --auto-fix retry loop of up to 3 rounds
  • Validates that every \cite has a .bib entry and every \includegraphics file exists before compiling
  • Designed for debugging LaTeX compilation errors and checking page counts against venue limits

Install

$ npx -y skills add lingzhi227/agent-research-skills --skill paper-compilation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Paper Compilation

Compile a LaTeX paper to PDF with error detection and correction.

Input

  • $ARGUMENTS — Path to the main .tex file

Scripts

Compile paper

python ~/.claude/skills/paper-compilation/scripts/compile_paper.py paper/main.tex
python ~/.claude/skills/paper-compilation/scripts/compile_paper.py paper/main.tex --check-style
python ~/.claude/skills/paper-compilation/scripts/compile_paper.py paper/main.tex --output paper/output.pdf

Reports: compilation status, page count, warnings, citation/reference stats, style issues.

Validate citations before compiling

python ~/.claude/skills/citation-management/scripts/validate_citations.py \
  --tex paper/main.tex --bib paper/references.bib --check-figures --figures-dir paper/figures/

Auto-fix LaTeX errors

python ~/.claude/skills/paper-compilation/scripts/fix_latex_errors.py \
  --tex paper/main.tex --log compile.log --output paper/main_fixed.tex

Fixes: HTML tags in LaTeX, mismatched environments, missing figures. Key flags: --dry-run, --auto-detect

Details

Repository
github.com/lingzhi227/agent-research-skills
Categories
Research & Academic, Writing & Content, Office Files & Slides
First seen
Jun 3, 2026

More from lingzhi227/agent-research-skills

All 31

Similar to Paper Compilation

More Research & Academic