paper-compile

Compiles LaTeX papers to PDF with BibTeX citation resolution and page-count checks.

2|1|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/raja21068/AutoResearch --skill paper-compile-raja21068
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paper-compile
Source: https://github.com/raja21068/AutoResearch/tree/main/skills/aris/paper-compile
Command: npx skills add https://github.com/raja21068/AutoResearch --skill paper-compile-raja21068

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the frustration of failed LaTeX builds by compiling your paper to PDF, diagnosing common build errors, auto-fixing them iteratively, and verifying that the output is submission-ready.

Core Features & Use Cases

  • Automated LaTeX compilation: Uses latexmk to build the PDF with multi-pass handling for references and citations.
  • Error diagnosis and auto-repair: Reads compile.log to detect missing packages, undefined references/citations, missing figures, BibTeX issues, and leftover [VERIFY] markers.
  • Submission readiness checks: Verifies the PDF exists, checks page-count constraints (venue-specific rules), and flags common problems like non-embedded fonts or undefined “??”/“[?]” outputs.
  • Typical use case: After writing or modifying sections, figures, or the bibliography, run compilation and get back a clean PDF (or a precise report of what still needs attention) before submission.

Quick Start

Use the paper-compile skill to compile your LaTeX project in the directory you specify and produce paper/main.pdf.

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 PDF and fix undefined references, this skill uses latexmk for multi-pass builds and iteratively auto-repairs missing packages or undefined citations, outputting a submission-ready PDF or a precise error report.

What is the best way to verify LaTeX submission readiness and page count limits?

Verifying LaTeX submission readiness involves checking the output PDF for existence, validating venue-specific page count constraints, and flagging non-embedded fonts or undefined outputs like "??" or "[?]". This skill automates that entire verification process.

Can I use this to resolve BibTeX citations and missing figure errors in my paper directory?

Yes, you can resolve BibTeX citations and missing figure errors by applying this skill to a valid paper directory containing main.tex and references.bib. It diagnoses common build errors and checks figure and reference integrity during compilation.

Why does my LaTeX compilation fail with undefined citations after multiple pdflatex builds?

LaTeX compilation fails with undefined citations when BibTeX resolution is incomplete or packages are missing. This skill iterates compilation up to a maximum number of attempts, reads compile logs, and auto-fixes these common build errors.

Do I need a specific directory structure to compile a LaTeX paper into a submission-ready PDF?

Yes, you need a valid paper directory containing main.tex plus referenced sections, figures, and references.bib. This structure is required to properly resolve dependencies and produce the final submission-ready PDF output.

What are the limitations of automated LaTeX paper compilation for academic workflows?

Automated LaTeX paper compilation limits include a maximum number of compile attempts before stopping and relying on the accuracy of compile.log for diagnosis. It reports remaining warnings and undefined citations but may not fix highly complex custom macros.