paper-compile

Compile LaTeX documents into submission-ready PDFs with latexmk and automatic error fixes.

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/THUFanZd/Sewed_pipeline --skill paper-compile-thufanzd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paper-compile
Source: https://github.com/THUFanZd/Sewed_pipeline/tree/main/.agents/skills/paper-compile
Command: npx skills add https://github.com/THUFanZd/Sewed_pipeline --skill paper-compile-thufanzd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of compiling LaTeX papers into a submission-ready PDF, diagnosing and fixing compilation errors to save time and ensure reproducibility.

Core Features & Use Cases

  • Deterministic builds: orchestrates multi-pass LaTeX compilation using latexmk to produce reliable PDFs.
  • Error diagnosis & auto-fix: detects common issues (missing packages, undefined references, missing figures) and applies safe, automated remedies.
  • Configurable constraints: supports MAX_COMPILE_ATTEMPTS, MAX_PAGES, and engine options (pdflatex/xelatex/lualatex) to meet venue requirements.
  • Use Case: Researchers with LaTeX projects in a paper/ directory can run this skill to obtain a clean PDF ready for submission.

Quick Start

Compile the LaTeX project in the paper/ directory to produce main.pdf, applying the default error-fix workflow.

Frequently Asked Questions about paper-compile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate LaTeX compilation to produce a clean PDF?

Automate LaTeX compilation by orchestrating multi-pass builds with latexmk and pdflatex, which automatically diagnoses and fixes errors like missing packages to produce a clean PDF.

Why does my LaTeX document fail to compile due to undefined references?

LaTeX documents fail with undefined references when single-pass compilation misses cross-references, but multi-pass latexmk orchestration automatically detects and resolves these issues during the build.

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

Yes, you can configure the LaTeX engine to use xelatex or lualatex instead of pdflatex, allowing you to meet specific venue requirements and handle diverse document needs.

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

The best way to fix missing package errors is using an automated compilation workflow that detects missing packages during the build and applies safe, automated remedies to ensure successful PDF generation.

How do I limit the number of compile attempts or pages for a LaTeX project?

Limit compile attempts and pages by setting configurable constraints like MAX_COMPILE_ATTEMPTS and MAX_PAGES, ensuring your LaTeX project meets specific academic venue submission requirements.

Does automated LaTeX compilation work with a standard paper directory structure?

Yes, automated LaTeX compilation works with a standard paper directory structure containing main.tex, orchestrating multi-pass builds to handle figure inclusion and missing packages for academic projects.