paper-compile

Compile LaTeX papers into PDFs and auto-fix common errors.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/loujc/Auto-claude-code-research-in-sleep-manual --skill paper-compile-loujc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paper-compile
Source: https://github.com/loujc/Auto-claude-code-research-in-sleep-manual/tree/main/skills/paper-compile
Command: npx skills add https://github.com/loujc/Auto-claude-code-research-in-sleep-manual --skill paper-compile-loujc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compile the LaTeX paper into a PDF and fix errors to produce a submission-ready document.

Core Features & Use Cases

  • Automated LaTeX compilation: Builds LaTeX sources with automatic multi-pass compilation to resolve references and bibliography.
  • Error diagnosis and auto-fix: Detects common LaTeX errors and applies safe fixes (missing packages, undefined references, missing figures) with guidance.
  • Post-build validation: Verifies the output PDF exists, has content, and meets basic submission readiness criteria.

Quick Start

Run the paper-compile workflow on your LaTeX project located in the paper/ directory to generate main.pdf and verify the build.

Frequently Asked Questions about paper-compile

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

FAQPage Schema
How do I compile LaTeX to PDF and fix undefined references automatically?

To compile LaTeX to a submission-ready PDF, this tool automates multi-pass compilation using latexmk to resolve references and bibliography, while diagnosing and auto-fixing common errors like missing packages and undefined references.

What is the best way to automate pdflatex builds for conference submissions?

Automating pdflatex builds for conference submissions is handled by verifying prerequisites, running the configured engine, and performing post-build validation to ensure the output PDF exists and meets submission readiness criteria.

Why does my LaTeX document fail to build due to missing figures or packages?

LaTeX builds often fail due to missing figures or packages, but this compilation tool detects these common errors, applies safe fixes automatically, and provides guidance to remediate the remaining issues for a clean build.

Does latexmk support multi-pass compilation for resolving bibliography?

Yes, latexmk supports multi-pass compilation to automatically resolve bibliography and references, ensuring the final PDF output has all citations and cross-references correctly linked.

Can I use document-automation to verify if my generated PDF has content?

You can use document-automation to perform post-build validation, which verifies that the output PDF exists, contains content, and meets basic submission readiness criteria before finalizing the document.