Latex Formatting

作者 lingzhi2279e6c085d65e3无许可证386 个星标收录于 2026年10月8日更新于 2026年10月8日仓库7个月前更新

Handle LaTeX formatting, templates, and styling for academic papers. Set up conference templates (ICML, ICLR, NeurIPS, AAAI, ACL), fix formatting issues, manage packages, and ensure venue-specific compliance. Use when the user needs to set up a paper template, fix LaTeX formatting, or prepare for submission.

包含脚本Documents & Office
AI 生成的概览

为学术论文投稿设置、检查并修复 LaTeX 格式与会议模板。

功能
该技能处理学术论文的 LaTeX 格式:为 ICML、ICLR、NeurIPS、AAAI、ACL 等会议创建项目目录结构和 main.tex,检查投稿的字数、必需章节、TODO 标记、匿名化和环境不匹配问题,并修复未转义特殊字符、数学模式错误、浮动体位置和交叉引用等问题。它附带两个 Python 脚本 latex_checker.py 和 clean_latex.py,以及一份会议模板参考文档。产出包括清理或修复后的 .tex 文件以及投稿前检查结果。
适用场景
在准备学术论文投稿时使用,例如需要设置会议模板、在提交前校验格式与匿名化,或修复 .tex 文件中常见的 LaTeX 格式问题。
运行要求
需要 Python 运行环境以执行随附脚本(scripts/latex_checker.py 和 scripts/clean_latex.py);需要一个 .tex 文件,若校验引用还需 .bib 文件。该技能附带可执行脚本,并读取 references/venue-templates.md。未说明需要凭据或网络访问。

LaTeX Formatting

Set up and manage LaTeX formatting for academic papers.

Input

  • $0 — Action: setup, fix, check
  • $1 — Venue name (for setup) or .tex file path (for fix/check)

Scripts

Pre-submission format checker

bash
python ~/.claude/skills/latex-formatting/scripts/latex_checker.py paper/main.tex --venue neurips --check-anon

Checks: word count, required sections, TODO markers, anonymization, mismatched environments, content stats.

Validate citations and references

bash
python ~/.claude/skills/citation-management/scripts/validate_citations.py \  --tex paper/main.tex --bib paper/references.bib --check-figures

Clean LaTeX text (fix special characters)

bash
python ~/.claude/skills/latex-formatting/scripts/clean_latex.py \  --input paper/main.tex --output paper/main_cleaned.tex

Replaces special/non-UTF8 characters with LaTeX equivalents, skips math environments. Key flags: --dry-run, --tables-only

Auto-fix after checking

bash
python ~/.claude/skills/latex-formatting/scripts/latex_checker.py paper/main.tex --venue neurips --fix

Runs checks then applies clean_latex.py fixes, writing to main_fixed.tex.

References

  • Venue specs, project structure, packages, commands: ~/.claude/skills/latex-formatting/references/venue-templates.md

Action: setup

Create the project directory structure and main.tex for the specified venue. Use the template from references/venue-templates.md.

Action: fix

Fix common LaTeX issues: unescaped special chars, math mode errors, float placement, overfull/underfull boxes, cross-reference issues.

Action: check

Run latex_checker.py for pre-submission validation. Check page count, anonymization, required sections, TODO markers.

Related Skills

  • Upstream: paper-writing-section, table-generation
  • Downstream: paper-compilation
  • See also: citation-management

来源与署名

来源:lingzhi227/agent-research-skills位于skills/latex-formatting提交9e6c085

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架