paper-compile

Compiles LaTeX sources into a submission-ready PDF using latexmk with iterative error fixes.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

paper-compile helps you turn a LaTeX manuscript into a correct, submission-ready PDF by running LaTeX builds, diagnosing common compilation failures, and applying targeted fixes until the output is clean.

Core Features & Use Cases

  • Automated LaTeX compilation: Uses latexmk to compile the main file with the right engine workflow (pdflatex by default, with options for xelatex/lualatex).
  • Error diagnosis and guided auto-fix: Reads compile.log to address common issues like missing packages, undefined references, missing figures, undefined citations, and BibTeX syntax errors.
  • Submission readiness checks: Verifies PDF existence, inspects page count against venue rules (main-body vs total pages depending on venue), checks for undefined references/citations, and flags leftover [VERIFY] markers.

Quick Start

Ask it to compile your paper by running paper-compile with your LaTeX project folder so it produces a validated main.pdf in the paper directory.

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 into a submission-ready PDF automatically?

To compile LaTeX into a submission-ready PDF, run latexmk on your main.tex file. The process iteratively resolves build errors by diagnosing compile.log, fixing missing packages, undefined citations, and BibTeX syntax issues.

How does latexmk error diagnosis work for undefined references and missing figures?

Latexmk error diagnosis works by reading compile.log to identify and iteratively auto-fix undefined references, missing figures, and BibTeX syntax errors through a bounded number of targeted compile-fix attempts.

Can I use xelatex or lualatex instead of pdflatex for my LaTeX compilation?

Yes, you can use xelatex or lualatex instead of pdflatex for your LaTeX compilation. The build workflow defaults to pdflatex but supports configuration options for alternative engines.

Does LaTeX compilation check page count limits for IEEE-style conference submissions?

Yes, LaTeX compilation checks page count limits for IEEE-style conference submissions. Post-build verification inspects the PDF against venue rules for main-body versus total page limits and flags leftover markers.

What should I do if my LaTeX project has missing packages and BibTeX syntax errors?

If your LaTeX project has missing packages and BibTeX syntax errors, automated compile-fix attempts will diagnose the compile.log and apply targeted fixes to resolve these common compilation failures up to a bounded limit.

Why does my LaTeX build fail with undefined citations and unresolved references?

Your LaTeX build may fail with undefined citations and unresolved references due to missing figures or incorrect references.bib syntax. Post-build verification detects these errors and applies iterative fixes using compile.log diagnostics.