All SkillsGet Started Free
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.
MCP get_skill({ skillId: "paper-compile-2a856c7e" })Use this skill with your agent
Create a free account and connect via MCP
# 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 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 ``` ### Step 2: First Compilation Attempt ```bash cd $PAPER_DIR # Clean previous build artifacts latexmk -C # Full compilation (pdflatex + bibtex + pdflatex × 2) latexmk -pdf -interaction=nonstopmode -halt-on-error main.tex 2>&1 | tee compile.log
#broad-capability#wanshuiyin-aris#ml-research#autonomous#literature#reviewpdflatexlatexmkbibtexpdfinfotlmgr