latex-semantic-linebreaks

Reflows LaTeX prose into one sentence per line while preserving rendered output.

4|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/AMindToThink/claude-code-settings --skill latex-semantic-linebreaks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: latex-semantic-linebreaks
Source: https://github.com/AMindToThink/claude-code-settings/tree/main/skills/latex-semantic-linebreaks
Command: npx skills add https://github.com/AMindToThink/claude-code-settings --skill latex-semantic-linebreaks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill fixes hard-to-edit LaTeX prose by turning long, multi-sentence paragraphs into one sentence per line while keeping the rendered PDF unchanged.

Core Features & Use Cases

  • Reflows paper source into semantic line breaks so each sentence is easy to edit and review.
  • Preserves math, comments, verbatim-like regions, citations, labels, and other opaque command arguments.
  • Uses a custom state-aware formatter and test suite to avoid the false breaks that common LaTeX reflow tools introduce.
  • Ideal for preparing a new paper, cleaning up an existing manuscript, or making large prose edits with smaller, review-friendly diffs.

Quick Start

Use this Skill to reformat the selected LaTeX source into one sentence per line and verify that the PDF output stays byte-identical.

Frequently Asked Questions about latex-semantic-linebreaks

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

FAQPage Schema
How do I format LaTeX source into one sentence per line without changing the PDF output?

To format LaTeX source into one sentence per line without changing the PDF output, you need a state-aware parser that inserts semantic linebreaks only at safe boundaries. This ensures the rendered PDF remains byte-identical while making prose easier to edit.

Why do common LaTeX reflow tools introduce false sentence breaks in my manuscript?

Common LaTeX reflow tools introduce false sentence breaks because they lack state-aware parsing of math, comments, skip environments, and opaque command arguments. A custom formatter specifically designed for LaTeX manuscript cleanup avoids these unsafe boundaries during sentence reflow.

How do I prepare a LaTeX paper for collaborative review using semantic linebreaks?

To prepare a LaTeX paper for collaborative review using semantic linebreaks, you reflow the .tex source into one sentence per line. This creates smaller, review-friendly diffs during large prose edits while preserving citations, labels, and math environments.

Does semantic linebreak formatting work with math environments and verbatim regions in .tex files?

Yes, semantic linebreak formatting works with math environments and verbatim regions in .tex files. The state-aware formatter specifically preserves math, comments, verbatim-like regions, citations, and opaque command arguments to ensure sentence breaks are inserted only at safe boundaries.

What is the best way to clean up an existing LaTeX manuscript for easier editing?

The best way to clean up an existing LaTeX manuscript for easier editing is to reflow the prose into semantic linebreaks. This process turns long, multi-sentence paragraphs into one sentence per line, keeping the rendered PDF unchanged while making the source highly review-friendly.

Are there limitations to reflowing LaTeX prose into one sentence per line?

A key limitation of reflowing LaTeX prose into one sentence per line is the risk of altering the rendered PDF if the parser is not state-aware. You must ensure the formatter correctly handles math, comments, and opaque command arguments to avoid false breaks that change output.