SuperAPI AI 工具集

paper-compilation

写作与研究

查看项目

更新于 10-16 06:23

技能介绍

用途:将 LaTeX 论文编译为 PDF,并在编译前、中、后提供错误检测、引用校验与风格检查。输入为主 .tex 文件路径。

主要能力:运行完整 pdflatex → bibtex → pdflatex → pdflatex 流程;报告编译状态、页数、警告、引用/参考文献统计与风格问题;检测并自动修复 LaTeX 错误,如 LaTeX 中的 HTML 标签、环境不匹配、缺失图片;支持引用与图表校验。

使用方式:编译用 python ~/.claude/skills/paper-compilation/scripts/compile_paper.py paper/main.tex,可加 --check-style 或 --output paper/output.pdf;编译前校验引用用 validate_citations.py,指定 --tex、--bib、--check-figures、--figures-dir;修复错误用 fix_latex_errors.py,指定 --tex、--log、--output,支持 --dry-run、--auto-detect;自动修复重试可加 --auto-fix,最多 3 轮。工作流为先校验引用,再编译,失败后最多 5 轮修复,最后生成报告。

适用场景:学术论文写作的编译与质量检查,尤其适合需要反复编译、处理引用和风格问题的 LaTeX 项目。

限制:依赖本地 LaTeX 环境,如 pdflatex 未安装需先安装(macOS 用 brew install --cask mactex-no-gui,Ubuntu 用 sudo apt install texlive-full),或改用 latexmk -pdf -interaction=nonstopmode main.tex。其余功能或收费信息暂未提供。