paper-compile

Compile LaTeX papers to PDF with latexmk and diagnose build errors.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/KwongFuk/codex-skills --skill paper-compile-kwongfuk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paper-compile
Source: https://github.com/KwongFuk/codex-skills/tree/main/global/paper-compile
Command: npx skills add https://github.com/KwongFuk/codex-skills --skill paper-compile-kwongfuk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compile LaTeX papers to PDF, fix common build errors, and verify the final output to ensure a clean submission.

Core Features & Use Cases

  • Deterministic compilation: uses latexmk with pdflatex to perform multi-pass builds that resolve references and citations.
  • Automated error handling: detects missing packages, undefined references, and missing figures, and suggests or applies fixes.
  • Output validation: checks PDF integrity, reasonable page counts, and proper font embedding for submission readiness.
  • Use Case: Imagine a multi-section manuscript with a bibliography and figures; run the workflow to produce a submission-ready main.pdf and a diagnostic compile log.

Quick Start

Run the paper-compile workflow on your LaTeX project to produce a ready-to-submit 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 resolve undefined references?

To compile LaTeX to PDF and resolve references, use latexmk with pdflatex to perform multi-pass builds. This automatically handles cross-references and citations, ensuring a clean and complete PDF output.

What is the best way to fix missing package errors during LaTeX compilation?

The best way to fix missing package errors during LaTeX compilation is to use an automated error handling workflow that detects missing packages and figures, then suggests or applies the necessary fixes to complete the build.

Why does my LaTeX compilation fail with missing figures and undefined references?

LaTeX compilation fails with missing figures and undefined references when single-pass builds cannot locate assets or resolve cross-references. Using latexmk for multi-pass compilation diagnoses these issues and applies fixes automatically.

Does latexmk support automated PDF validation for academic paper submissions?

Yes, latexmk supports automated PDF validation for academic paper submissions by checking PDF integrity, reasonable page counts, and proper font embedding to ensure the final document is fully submission-ready.

Can I use pdflatex to check page limits and font embedding for journal submissions?

Yes, you can use pdflatex combined with output validation to check page limits and verify proper font embedding. This ensures your final PDF meets strict journal submission readiness requirements.