paper-compilelisted
Install: claude install-skill Lambenthan/empiricalwiki
# /paper-compile
> Compile a LaTeX paper to PDF, auto-fix common errors, and verify submission requirements.
> Input: the paper/ directory generated by /paper-draft. Run latexmk compilation,
> parse errors and attempt auto-fix (missing packages, undefined references, figure paths).
> Verify page limit, anonymous compliance, font embedding, and clearance of [UNCONFIRMED] markers.
> Generate a submission checklist.
## Inputs
- `paper_dir` (optional, default `paper/`): LaTeX project directory containing `main.tex`
- `--fix` (optional): enable auto-fix mode (automatically install missing packages, correct paths)
- `--checklist` (optional): generate a detailed submission checklist (check only, no compilation)
## Outputs
- `paper/main.pdf` — compiled PDF
- **COMPILE_REPORT** (printed to terminal) — compilation status, check results, submission checklist
- If `--fix`: modified .tex files (auto-fixed)
## Wiki Interaction
### Reads
- `wiki/outputs/paper-plan-*.md` — retrieve venue information (page limit, anonymity requirements)
- `.claude/skills/shared-references/citation-verification.md` — [UNCONFIRMED] marker check rules
### Writes
- `paper/main.pdf` — compilation output
- `wiki/log.md` — appended compilation log
### Graph edges created
- None
## Workflow
**Precondition**: confirm `paper/main.tex` exists. Confirm `latexmk` is installed (`which latexmk`).
### Step 1: Compile
1. **First compilation**:
```bash
cd paper/ && latexmk -pdf -interaction=nonstopmode main.