paper-compile

Compile English LaTeX projects into validated PDFs with pdflatex and bibtex.

1|Updated May 14, 2026
One-click install
npx skills add https://github.com/lix965996-art/MMM --skill paper-compile-lix965996-art
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paper-compile
Source: https://github.com/lix965996-art/MMM/tree/main/resources/app/skills/paper-compile
Command: npx skills add https://github.com/lix965996-art/MMM --skill paper-compile-lix965996-art

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of turning an English LaTeX paper into a correct, submission-ready PDF while avoiding common build failures and quality issues.

Core Features & Use Cases

  • English LaTeX compilation with pdflatex: Builds paper/main.tex into paper/main.pdf using pdflatex and bibtex (no latexmk).
  • Pre-compilation validation and auto-fix loop: Cleans the build environment, detects unembedded figures/tables, and enforces a mandatory fix loop until everything is embedded.
  • Post-build quality gates: Runs compile, writing, and multiple sanity checks (math/LR errors, BibTeX output presence, placeholders, overfull boxes, citations, and template integrity).

Quick Start

Use the paper-compile skill to compile the English LaTeX project by telling the AI: compile the paper in 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 a LaTeX project into a PDF and automatically fix missing figures?

To compile a LaTeX project into a PDF, this skill runs pdflatex and bibtex while enforcing a fix-and-retry workflow that detects unembedded figures and tables, automatically looping until all assets are correctly embedded and the build succeeds.

What quality checks are needed to ensure an academic paper PDF is submission-ready?

Quality checks for a submission-ready academic paper PDF include enforcing zero math/LR errors, verifying non-empty bibliography output from bibtex, checking for unresolved citations, detecting placeholders, and resolving overfull boxes to pass automated quality gates.

Does this LaTeX compilation workflow require a specific project directory structure?

Yes, this LaTeX compilation workflow requires a specific project structure under the paper/ directory, specifically needing paper/main.tex as the entry point and section files located in paper/sections/*.tex to properly run the build process.

Why does BibTeX output disappear when compiling my LaTeX document?

BibTeX output may disappear due to unresolved citations or missing bibliography files during LaTeX compilation; this skill enforces a mandatory fix loop and post-build sanity checks to ensure the bibliography output is non-empty and all citations resolve correctly.

Can I use latexmk for pdflatex compilation in this academic publishing workflow?

No, this academic publishing workflow explicitly uses pdflatex and bibtex commands directly without latexmk, applying up to three compile attempts to resolve build errors and enforce quality assurance for the final PDF output.