Back to Skills

latex-formatting

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.

256stars28forksUpdated 8/4/2026

Security Assessment

Safe(95/100)
Security Score95/100

About latex-formatting

LaTeX Formatting is a Claude Code skill for setting up and maintaining LaTeX projects for academic paper submissions. It addresses the recurring friction of preparing camera-ready or anonymized manuscripts for specific conferences: getting the right style file, meeting page and column limits, escaping special characters, and passing pre-submission checks. It offers three actions: setup (scaffold a venue-specific project structure and main.tex), fix (repair common LaTeX issues), and check (run pre-submission validation).

The skill bundles two Python helper scripts and a venue-templates reference. latex_checker.py validates a .tex file against a target venue, checking word/page count, required sections, leftover TODO markers, anonymization, mismatched environments, and content stats, with a --fix mode that applies cleanup and writes a fixed file. clean_latex.py replaces special or non-UTF8 characters with LaTeX equivalents while skipping math environments, with dry-run and tables-only flags. The venue-templates reference documents specs for major ML and NLP conferences (NeurIPS, ICML, ICLR, AAAI, ACL/EMNLP, CVPR/ICCV, and others) including page counts, columns, style files, and anonymization requirements, plus a recommended project layout, an essential-package list, common math macros, and an anonymization checklist. It also references a companion citation-management skill for validating citations and figures.

It targets researchers and graduate students preparing conference or arXiv submissions who want consistent formatting and to catch compliance issues before the deadline. Typical uses include scaffolding a new paper for a target venue, cleaning problematic characters, and running an anonymization and page-limit check before submitting.

FAQ

Which conference venues does it support?

The venue-templates reference documents NeurIPS, ICML, ICLR, AAAI, ACL/EMNLP, CVPR/ICCV, ICBINB, and arXiv, listing page counts, column layout, style file, and anonymization requirements for each.

What does the pre-submission checker validate?

latex_checker.py checks word count, required sections, leftover TODO markers, anonymization, mismatched environments, and content statistics against a chosen venue. Running it with --fix applies clean_latex.py fixes and writes a main_fixed.tex.

How does character cleaning avoid breaking math?

clean_latex.py replaces special and non-UTF8 characters with LaTeX equivalents but explicitly skips math environments. It also supports a --dry-run preview and a --tables-only mode.

Does it handle citations too?

Citation and reference validation is delegated to a companion citation-management skill, which the SKILL.md invokes to check the .tex against the .bib and verify figures. LaTeX Formatting focuses on templates, formatting, and compliance.

What are the three actions?

setup scaffolds a venue-specific project directory and main.tex from the template, fix repairs common issues like unescaped characters and float placement, and check runs the pre-submission validation for page count, anonymization, and required sections.

All Files

4 files
SKILL.md2.4 KB
View
scripts/latex_checker.py10.4 KB
View
scripts/clean_latex.py8.2 KB
View
references/venue-templates.md2.2 KB
View

Install latex-formatting

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill