paper-compile
Compile LaTeX paper to PDF, fix errors, and verify output. Use when user says \"编译论文\", \"compile paper\", \"build PDF\", \"生成PDF\", or wants to compile LaTeX into a submission-ready PDF.
npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill paper-compile --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Paper Compile: LaTeX to Submission-Ready PDF Compile the LaTeX paper and fix any issues: **$ARGUMENTS** ## Constants - **COMPILER = `latexmk`** — LaTeX build tool. Handles multi-pass compilation automatically. - **ENGINE = `pdflatex`** — LaTeX engine. Options: `pdflatex` (default), `xelatex` (for CJK/custom fonts), `lualatex`. - **MAX_COMPILE_ATTEMPTS = 3** — Maximum attempts to fix errors and recompile. - **PAPER_DIR = `paper/`** — Directory containing LaTeX source files. - **MAX_PAGES** — Page limit. ML conferences: main body to Conclusion end (excluding references & appendix). ICLR=9, NeurIPS=9, ICML=8. **IEEE venues: references ARE included in page count.** IEEE journal ≈ 12-14 pages, IEEE conference ≈ 5-8 pages (all inclusive). ## Workflow ### Step 1: Verify Prerequisites Check that the compilation environment is ready: ```bash # Check LaTeX installation which pdflatex && which latexmk && which bibtex # If not installed, provide instructions: # macOS: brew install --cask mactex-no-gui # Ubuntu: sudo apt-get install texlive-full # Server: conda install -c conda-forge texlive-core ``` Verify all required files exist: ```bash # Must exist ls $PAPER_DIR/main.tex # Should exist l
- Constants
- Workflow
- Step 1: Verify Prerequisites
- Step 2: First Compilation Attempt
- Step 3: Error Diagnosis and Auto-Fix
- Step 4: Iterative Fix Loop
- Step 5: Post-Compilation Checks
- Step 6: Page Count Verification
- Step 6.5: Stale File Detection
- Step 7: Submission Readiness
- Step 8: Output Summary
- Key Rules
- Common Venue Requirements
Check LaTeX installation which pdflatex && which latexmk && which bibtex If not installed, provide instructions: Must exist ls $PAPER_DIR/main.tex Should exist ls $PAPER_DIR/references.bib ls $PAPER_DIR/sections/*.tex ls $PAPER_DIR/figures/*.pdf 2>/dev/null || ls $PAPER_DIR/figures/*.png 2>/dev/null cd $PAPER_DIR
What does the paper-compile skill do?
Compile LaTeX paper to PDF, fix errors, and verify output. Use when user says \"编译论文\", \"compile paper\", \"build PDF\", \"生成PDF\", or wants to compile LaTeX into a submission-ready PDF.
How do I install it?
Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill paper-compile --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From brycewang-stanford/Auto-Empirical-Research-Skills, a repository with 3,244 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.