paper-compile

Compile LaTeX papers to PDF, fix errors, and verify submission readiness.

Updated Jul 9, 2026
One-click install
npx skills add https://github.com/Lingjie-wang/autoRL --skill paper-compile-lingjie-wang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paper-compile
Source: https://github.com/Lingjie-wang/autoRL/tree/main/Auto-claude-code-research-in-sleep/skills/paper-compile
Command: npx skills add https://github.com/Lingjie-wang/autoRL --skill paper-compile-lingjie-wang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Compiling an academic LaTeX paper into a submission-ready PDF often involves cryptic error messages, undefined references, missing packages, and strict venue page limits. This Skill automates the full compile-fix-verify loop so you get a clean, compliant PDF without manual debugging. ## Core Features & Use Cases - Automated Compilation with Error Fixing: Runs latexmk with pdflatex, parses compile.log, and auto-fixes common issues like missing packages, undefined citations, missing figures, and BibTeX syntax errors across up to 3 attempts. - Page Limit Verification: Precisely measures main-body length using pdftotext, applying venue-specific rules (ICLR/NeurIPS/ICML exclude references; IEEE venues include them). - Submission Readiness Checks: Validates font embedding, anonymity, file size, leftover [VERIFY] markers, and orphaned section files not referenced by main.tex. - Use Case: You finished writing a NeurIPS paper and need to submit tonight. Run the compile workflow to build the PDF, fix a broken citation, confirm the main body fits within 9 pages, and verify all fonts are embedded before uploading to OpenReview. ## Quick Start Compile the LaTeX paper in the paper/ directory into a submission-ready PDF and fix any errors you find.

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 paper to PDF automatically?

Use latexmk with the -pdf flag to run pdflatex and bibtex in the correct multi-pass sequence automatically. The workflow cleans previous build artifacts, compiles with nonstopmode, and logs output to compile.log for error diagnosis.

How to fix undefined references and citations in LaTeX?

Undefined references mean the \label is missing or mismatched with the \ref; check the label exists in the correct figure or section environment. Undefined citations require adding the entry to references.bib or correcting the citation key, then recompiling.

Does the page limit include references for NeurIPS and ICLR?

For ML conferences like ICLR, NeurIPS, and ICML, references and appendix are excluded; only the main body through the end of the Conclusion counts. IEEE venues are different: the total page count including references must fit the limit.

Why does LaTeX compilation fail with missing package errors?

The error 'File somepackage.sty not found' means the package is not installed in your TeX distribution. Install it with tlmgr install somepackage, or remove the \usepackage line if the package is unused.

How do I check if fonts are embedded in a PDF for submission?

Run pdffonts main.pdf and verify every font shows embedded status; any non-embedded fonts can cause venue rejection. The submission readiness check flags this automatically before you upload.

What LaTeX engines are supported for compiling papers?

The default engine is pdflatex, which handles most papers. xelatex is available for CJK characters or custom fonts, and lualatex is another option, all driven through latexmk.