latex-formatting
lingzhi227/agent-research-skills
Set up conference LaTeX templates and fix formatting issues for academic paper submission.
What is latex-formatting?
Handles LaTeX formatting, templates, and styling for academic papers across major venues (ICML, ICLR, NeurIPS, AAAI, ACL). Use this skill when you need to create a venue-specific template, fix formatting errors, or validate a paper before submission.
- Set up venue-specific project structure and main.tex templates (ICML, ICLR, NeurIPS, AAAI, ACL)
- Fix common LaTeX issues: unescaped special characters, math mode errors, float placement, and cross-reference problems
- Run pre-submission validation: check word count, required sections, anonymization, and TODO markers
- Clean LaTeX text by replacing special/non-UTF8 characters with proper LaTeX equivalents
- Validate citations and references against bibliography files and check figure references
How to install latex-formatting
npx skills add https://github.com/lingzhi227/agent-research-skills --skill latex-formatting- Python installed locally
- Access to paper LaTeX files (.tex) and bibliography files (.bib)
- Venue name or file path to process
How to use latex-formatting
- 1.Run `setup` action with a venue name (e.g., neurips) to create the project structure and template
- 2.Use `fix` action on your main.tex file to automatically correct common LaTeX formatting issues
- 3.Run `check` action to validate anonymization, word count, required sections, and TODO markers before submission
- 4.Optionally use `clean_latex.py` separately to handle special character replacement with dry-run flag first
Use cases
- Create a new paper project with conference-compliant template and directory structure
- Fix formatting errors and special character issues in an existing LaTeX document before submission
- Validate anonymization and check for TODO markers before blind review submission
- Clean up non-UTF8 characters and ensure consistent LaTeX encoding across a multi-file paper
- Check page count, required sections, and venue-specific compliance requirements
- Academic researchers preparing papers for conference submission
- Graduate students setting up LaTeX projects for the first time
- Authors needing to convert papers between different conference templates
- Teams ensuring venue compliance before final submission
latex-formatting FAQ
ICML, ICLR, NeurIPS, AAAI, and ACL. Templates and venue-specific requirements are in the references/venue-templates.md file.
Yes, use the `fix` action on your existing .tex file to automatically correct common issues like unescaped characters, math mode errors, and float placement problems.
Run the `check` action with the `--check-anon` flag to validate anonymization compliance for blind review submission.
It replaces special and non-UTF8 characters with proper LaTeX equivalents while skipping math environments. Use `--dry-run` to preview changes before applying them.
Yes, use the citation validation script with your .tex and .bib files to check for missing references and figure citations.
Full instructions (SKILL.md)
Source of truth, from lingzhi227/agent-research-skills.
name: latex-formatting description: 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. argument-hint: [venue-or-file]
LaTeX 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
Related skills
More from lingzhi227/agent-research-skills and the wider catalog.

literature-review
Conduct comprehensive literature reviews through multi-perspective expert dialogue and systematic paper synthesis.

literature-search
Search academic literature across Semantic Scholar, arXiv, and OpenAlex with structured results and BibTeX export.

math-reasoning
Formal mathematical reasoning for research papers—derive equations, write proofs, and generate publication-quality LaTeX.

novelty-assessment
Assess research idea novelty through systematic literature search and harsh critic evaluation.

paper-assembly
Orchestrate end-to-end paper pipelines with state management, checkpointing, and phase dependencies.

paper-compilation
Compile LaTeX papers to PDF with automatic error detection, style checking, and citation validation.