paper-compile

Compile LaTeX projects to PDF and repair common compilation errors.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of turning LaTeX sources into a clean, submission-ready PDF by automating compilation, error diagnosis, and verification.

Core Features & Use Cases

  • Automated LaTeX compilation with latexmk and pdflatex choices.
  • Automatic error diagnosis and guidance for common issues (missing packages, undefined references, missing figures, citation issues).
  • Output verification to ensure the PDF is generated and within expected size/pages.

Quick Start

Run the skill with your LaTeX project directory to compile main.tex into paper/main.pdf and fix common errors.

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 automatically fix missing package errors?

You can compile LaTeX to PDF and automatically fix missing package errors by running this skill on your project directory, which uses latexmk and pdflatex to diagnose and repair common issues during compilation.

What is the best way to resolve undefined references and missing figures when compiling a LaTeX document?

The best way to resolve undefined references and missing figures is to use an automated LaTeX compilation skill that diagnoses these specific errors, applies fixes, and verifies the final PDF output.

Do I need latexmk and bibtex installed to compile a LaTeX project directory with a main.tex file?

Yes, you need latexmk, pdflatex, and bibtex installed in your environment to compile a LaTeX project directory, as the skill requires these tools to process main.tex and output paper/main.pdf.

Can I verify the output PDF size and pages after running a LaTeX compilation?

Yes, you can verify the output PDF size and pages after compilation, as the skill includes an output verification step to ensure the generated paper/main.pdf is within expected limits and reports any issues.

Why does my LaTeX compilation fail with citation issues before generating the final PDF?

Your LaTeX compilation may fail with citation issues due to unresolved bibliography references, but an automated compilation skill can diagnose and fix these citation problems while generating the PDF.