paper-compile

Compile LaTeX main.tex files to PDF with automated error correction.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/nxZhai/Nicy-Extension-Skills --skill paper-compile-nxzhai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: paper-compile
Source: https://github.com/nxZhai/Nicy-Extension-Skills/tree/main/skills-codex/paper-compile
Command: npx skills add https://github.com/nxZhai/Nicy-Extension-Skills --skill paper-compile-nxzhai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the LaTeX to PDF workflow by compiling main.tex, diagnosing common errors, and producing a submission-ready PDF without manual trial-and-error.

Core Features & Use Cases

  • Automated preflight checks for prerequisites and required files, including main.tex and optional BibTeX workflow.
  • Multi-pass compilation with automated error diagnosis and targeted fixes to common LaTeX issues (missing packages, undefined references, missing figures, and BibTeX errors).
  • Output verification to ensure the PDF is generated, properly paginated, and ready for submission.

Quick Start

Run the tool to compile main.tex into a submission-ready PDF and auto-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 automate LaTeX to PDF compilation and fix common errors?▼

You can automate LaTeX to PDF compilation by running a multi-pass build on main.tex with latexmk and pdflatex, diagnosing errors, and applying targeted fixes to missing packages or undefined references to output a submission-ready PDF.

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

LaTeX compilation fails due to missing packages, undefined references, missing figures, or BibTeX errors; an automated workflow can diagnose these issues and apply targeted fixes across up to three compilation attempts with diagnostic output.

Do I need latexmk and pdflatex installed to compile a LaTeX document?▼

Yes, latexmk and pdflatex are required prerequisites; the workflow enforces preflight checks for these tools and required files like main.tex before attempting to generate a submission-ready PDF.

Can I use an automated LaTeX workflow for conference drafts with BibTeX references?▼

Yes, automated LaTeX workflows support typical academic paper workflows by compiling main.tex, processing optional BibTeX references, and verifying output pagination to produce submission-ready PDFs for conference drafts or manuscripts.

What is the best way to handle BibTeX errors during academic paper PDF generation?▼

The best way to handle BibTeX errors during academic paper PDF generation is using an automated multi-pass compiler that diagnoses missing figures and reference issues, attempting up to three compilations with diagnostic output to auto-fix common LaTeX problems.