Latex Formatting

by lingzhi2279e6c085d65e3No license386 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 7 months ago

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.

Includes scriptsDocuments & Office
AI-generated overview

Sets up, checks and fixes LaTeX formatting and venue templates for academic paper submissions.

What it does
This skill handles LaTeX formatting for academic papers: it creates project structure and main.tex files for venues such as ICML, ICLR, NeurIPS, AAAI and ACL, checks submissions for word count, required sections, TODO markers, anonymization and mismatched environments, and fixes issues like unescaped special characters, math mode errors, float placement and cross-reference problems. It ships two Python scripts, latex_checker.py and clean_latex.py, and a venue-templates reference document. Outputs include cleaned or fixed .tex files and pre-submission check results.
When to use it
Use it when preparing an academic paper for submission and you need to set up a conference template, validate formatting and anonymization before submitting, or repair common LaTeX formatting problems in a .tex file.
Requirements
Python runtime to run the bundled scripts (scripts/latex_checker.py and scripts/clean_latex.py); a .tex file and, for citation validation, a .bib file. The skill ships executable scripts and reads references/venue-templates.md. No credentials or network access are stated.

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

Source and attribution

Source:lingzhi227/agent-research-skillsinskills/latex-formattingat commit9e6c085

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal