format-latex

Reformat LaTeX files to match the style conventions of a reference research paper.

Updated Mar 21, 2026
One-click install
npx skills add https://github.com/pulak999/ai-tooling --skill format-latex-pulak999
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: format-latex
Source: https://github.com/pulak999/ai-tooling/tree/main/ai-assistant-kit/claude-skills/format-latex
Command: npx skills add https://github.com/pulak999/ai-tooling --skill format-latex-pulak999

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Academic writers often need to align a LaTeX document with an established house style, and manually enforcing preamble structure, sectioning patterns, and typographic conventions across a long .tex file is tedious and error-prone. ## Core Features & Use Cases - Style Matching: Rewrites a target .tex file to follow the conventions of a reference paper (v3.tex), covering preamble packages, theorem environments, custom commands, and bibliography setup. - Typographic Normalization: Applies consistent rules for thin-space units, non-breaking spaces before references, em-dashes, \emph{} usage, and \eqref/\ref citation patterns. - Content Preservation: Changes only formatting and style while preserving all mathematical content, theorems, and technical substance, and flags planning-doc sections that need prose expansion without fabricating content. - Use Case: You drafted a technical report with inconsistent formatting and want it restyled to match your lab's published paper style before sharing it with collaborators. ## Quick Start Format my paper.tex file to match the style conventions of v3.tex.

Frequently Asked Questions about format-latex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I format a LaTeX file to match another paper's style?

Provide the target .tex file and ask for it to be formatted against the v3.tex reference style. The skill reads both files, then rewrites the target's preamble, sectioning, and typography to match while keeping all technical content intact.

What LaTeX conventions does this formatting enforce?

It enforces booktabs tables, [H] float placement, thin-space units like 30\,kHz, non-breaking spaces before \ref, em-dashes as ---, \emph for emphasis, and \eqref for equation references, following the v3.tex research paper style.

Does reformatting a .tex file change the technical content?

No, the procedure explicitly preserves all mathematical content, theorems, and technical substance. Only formatting and style are changed, and sections needing prose expansion are flagged rather than rewritten with fabricated content.

Can I convert a planning document into paper-style LaTeX?

Yes, but with limits. Status macros, checklists, and planning language are removed, and sections that need prose expansion are flagged for you. The skill does not invent technical content to fill gaps.

What are the limitations of automated LaTeX style matching?

The style rules are specific to one reference paper (v3.tex), so they do not generalize to other journals or templates. It also cannot generate missing technical prose, only flag where expansion is needed.