paper-compile

Compile LaTeX papers into PDFs and fix common build errors.

1|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Best6668/AMIS --skill paper-compile-best6668
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paper-compile
Source: https://github.com/Best6668/AMIS/tree/main/skills/paper-compile
Command: npx skills add https://github.com/Best6668/AMIS --skill paper-compile-best6668

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compiling LaTeX documents into PDFs is error-prone and time-consuming due to missing packages, citations, and cross-references. This Skill automates the end-to-end build, diagnosis, and correction process to deliver a clean, submission-ready PDF.

Core Features & Use Cases

  • Automatic prerequisite checks and environment verification to ensure LaTeX toolchains are available.
  • Multi-pass compilation workflow using latexmk and pdflatex, with graceful retries and error handling.
  • Auto-fix of common build issues (missing packages, undefined references, missing figures, and BibTeX errors) and detailed logs for debugging.
  • Post-compilation validation including page-count analysis, font embedding checks, and verification that the PDF is complete and ready for submission.
  • Use Case: A student can quickly compile a draft paper after edits, receive a clean PDF, and have a report of any remaining issues.

Quick Start

Run the paper-compile skill on your paper directory to produce main.pdf and fix common LaTeX 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 into PDF and automatically fix build errors?

To compile LaTeX into PDF and fix build errors, this Skill automates the end-to-end process using latexmk and pdflatex. It diagnoses missing packages or undefined references and iteratively applies error auto-fixes to produce a submission-ready PDF.

Why does my LaTeX compilation fail due to undefined references and missing packages?

LaTeX compilation often fails due to undefined references and missing packages because multi-pass builds require proper citation and cross-reference resolution. This Skill coordinates bibtex and pdflatex passes, automatically diagnosing and fixing these common build issues.

What is the best way to handle multiple latexmk and pdflatex compilation passes for a thesis?

The best way to handle multiple latexmk and pdflatex compilation passes for a thesis is using an automated workflow with configurable MAX_COMPILE_ATTEMPTS. This Skill coordinates the toolchain, gracefully retrying builds to resolve cross-references and citations.

Do I need a specific LaTeX environment to use automated PDF compilation with error auto-fix?

Automated PDF compilation with error auto-fix requires an existing LaTeX environment. The Skill performs automatic prerequisite checks and environment verification to ensure toolchains like latexmk, pdflatex, and bibtex are available before attempting the build.

How do I validate page count and font embedding after compiling a LaTeX paper?

To validate page count and font embedding after compiling a LaTeX paper, post-compilation validation checks the generated PDF. This Skill automatically performs page-count analysis and verifies font embedding to ensure the document is complete and submission-ready.

What are the limitations of automated LaTeX error auto-fix during PDF generation?

Automated LaTeX error auto-fix during PDF generation is limited by a configurable MAX_COMPILE_ATTEMPTS threshold. While it resolves common missing packages and BibTeX errors, complex structural issues may require manual debugging using the detailed logs provided.