paper-compile

Compile LaTeX sources into a submission-ready PDF with error diagnosis.

Updated May 25, 2026
One-click install
npx skills add https://github.com/duypham2801/ThS_LLM --skill paper-compile-duypham2801
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paper-compile
Source: https://github.com/duypham2801/ThS_LLM/tree/main/.claude/skills/paper-compile
Command: npx skills add https://github.com/duypham2801/ThS_LLM --skill paper-compile-duypham2801

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the frustrating problem of LaTeX compilation failures and broken references that prevent your paper from producing a clean, submission-ready PDF.

Core Features & Use Cases

  • Automated multi-pass compilation: Uses latexmk to run the correct compile/bib steps and regenerate until the PDF is consistent.
  • Error log driven diagnosis: Reads compile.log to identify missing packages, missing figures, undefined citations/references, BibTeX syntax issues, and leftover verification markers.
  • Iterative repair loop: Recompiles up to a maximum number of attempts, applying targeted fixes based on the exact error messages.
  • Submission readiness verification: Confirms the PDF exists, checks page counts against venue rules, and verifies font embedding to reduce rejection risk.

Quick Start

Tell the assistant to use paper-compile to compile the paper in your paper directory and resolve any LaTeX errors until main.pdf builds successfully.

Frequently Asked Questions about paper-compile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compile a LaTeX paper into a submission-ready PDF while fixing build errors?

To compile a LaTeX paper into a submission-ready PDF, latexmk runs iterative compile passes with your chosen LaTeX engine, automatically diagnosing and repairing build errors or broken references from compile logs until a clean PDF is generated.

Why does my LaTeX compilation fail due to undefined citations and BibTeX syntax issues?

LaTeX compilation fails with undefined citations and BibTeX syntax issues due to incomplete reference resolution or formatting mistakes, which automated iterative repair loops can detect from compile logs and fix through targeted recompilation attempts.

How do I verify my paper meets venue page limits and font embedding rules for arXiv or NeurIPS?

To verify your paper meets venue page limits and font embedding rules for arXiv or NeurIPS, post-build validation checks the generated PDF existence, confirms page counts against venue rules, and inspects font embedding to reduce rejection risk.

Can I use different LaTeX engines like xelatex or lualatex for automated document compilation?

Yes, you can use different LaTeX engines like xelatex, lualatex, or pdflatex for automated document compilation, as the process requires selecting a chosen LaTeX engine to run with latexmk for generating the final PDF output.

What is the best way to resolve missing packages and missing figures during a LaTeX build?

The best way to resolve missing packages and missing figures during a LaTeX build is error log driven diagnosis, which reads compile logs to identify specific missing files and applies targeted fixes within an iterative recompilation loop.

What happens if my LaTeX document still has undefined references after multiple compile attempts?

If your LaTeX document still has undefined references after multiple compile attempts, the iterative repair loop stops once it reaches the maximum compile attempts limit, leaving the remaining undefined references highlighted in the final post-build validation report.