latex-compile-qa
43
总安装量
43
周安装量
#4928
全站排名
安装命令
npx skills add https://github.com/willoscar/research-units-pipeline-skills --skill latex-compile-qa
Agent 安装分布
claude-code
34
opencode
28
gemini-cli
27
cursor
24
antigravity
22
Skill 文档
LaTeX Compile + QA
Compile the LaTeX project and produce a PDF (when the toolchain is available), plus a short build report.
This step is deterministic; if compilation fails, record actionable diagnostics rather than guessing.
Inputs
latex/main.texcitations/ref.bib
Outputs
latex/main.pdf(if compilation succeeds)output/LATEX_BUILD_REPORT.md(recommended)
Workflow
- Run a LaTeX build (e.g.,
latexmk) if available. - Fix missing packages, missing bib entries, and unresolved references.
- Record remaining issues in a build report.
Quality checklist
- Either
latex/main.pdfexists, oroutput/LATEX_BUILD_REPORT.mdexplains why compilation failed. - For
arxiv-survey-latexdeliverables:latex/main.pdfis >= 8 pages and has no undefined citations/references (strict gate).
Script
Quick Start
python .codex/skills/latex-compile-qa/scripts/run.py --helppython .codex/skills/latex-compile-qa/scripts/run.py --workspace <workspace_dir>
All Options
- See
--help(inputs/outputs are taken from the unit runner when used via pipeline)
Examples
- Compile + produce report:
python .codex/skills/latex-compile-qa/scripts/run.py --workspace <ws>
Notes
- Uses
latexmk -xelatex -bibtexwhen available. - Always writes
output/LATEX_BUILD_REPORT.md(success or failure). - Report includes page count + warning summary when available.
Troubleshooting
Common Issues
Issue: latexmk not found
Symptom:
- Build report says âlatexmk not found in PATHâ.
Causes:
- LaTeX toolchain is not installed.
Solutions:
- Install a TeX distribution that includes
latexmk. - If you canât install tools, still use
latex-scaffoldto generatelatex/main.texand compile elsewhere.
Issue: Build fails with bib/ref errors
Symptom:
- Report shows missing citations/refs or BibTeX errors.
Causes:
citations/ref.bibmissing/miswired, or draft contains invalid cite keys.
Solutions:
- Ensure
latex/main.texpoints to../citations/ref.bib(or the correct relative path). - Ensure all citation keys exist in
citations/ref.bib.
Recovery Checklist
- Read
output/LATEX_BUILD_REPORT.mdtail for the first actionable error. - Confirm
latex/main.texexists and bibliography path is correct.