About latex-formatting
latex-formatting is a skill for setting up and checking LaTeX formatting in academic papers. It helps researchers prepare papers for venue requirements by creating project structures, addressing common issues, and running pre-submission checks.
Key features
- 01Create project structure and main.tex for a venue
- 02Check word count, required sections, and anonymization
- 03Detect TODO markers and environment errors
- 04Clean special characters and write a fixed copy
Use cases
- 01Set up a LaTeX project for a specified venue
- 02Check paper formatting and anonymization before submission
- 03Fix common LaTeX issues such as special characters
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ lingzhi227/ agent-research-skills --skill latex-formattingAfter installing, type/latex-formattingin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/venue-templates.mdscripts/clean_latex.pylatex_checker.pyDetails
From the project READMELaTeX Formatting
Set up and manage LaTeX formatting for academic papers.
Input
$0— Action:setup,fix,check$1— Venue name (forsetup) or.texfile path (forfix/check)
Scripts
Pre-submission format checker
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
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)
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
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