How to install latex-formatting
npx skills add https://github.com/lingzhi227/agent-research-skills --skill latex-formattingFull 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 using multi-perspective dialogue simulation. Generate diverse expert personas, conduct grounded Q&A conversations, and synthesize findings into structured knowledge. Use when starting a new research project or writing a survey section.
literature-search
Search academic literature using Semantic Scholar, arXiv, and OpenAlex APIs. Returns structured JSONL with title, authors, year, venue, abstract, citations, and BibTeX. Use when the user needs to find papers, check related work, or build a bibliography.
figure-generation
Generate publication-quality scientific figures using matplotlib/seaborn with a three-phase pipeline (query expansion, code generation with execution, VLM visual feedback). Handles bar charts, line plots, heatmaps, training curves, ablation plots, and more. Use when the user needs figures, plots, or visualizations for a paper.
citation-management
Manage BibTeX citations for LaTeX papers. Harvest missing citations from a draft using Semantic Scholar, validate cite keys against .bib files, deduplicate entries, and format bibliography. Use when working with references, BibTeX, or citations.
data-analysis
Generate statistical analysis code with 4-round review. Select appropriate statistical tests, interpret results, and produce analysis reports with p-values, effect sizes, and confidence intervals. Use when analyzing experimental data for a paper.
math-reasoning
Formal mathematical reasoning for research papers — derive equations, write proofs, formalize problem settings, select statistical tests, and generate LaTeX math notation. Use when the user needs mathematical derivations, theorem proofs, notation tables, or statistical analysis formalization.