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 從公開儲存庫中收錄這些內容。

檢舉或申請下架