overfull-hbox

Replace LaTeX words with shorter synonyms to resolve overfull hbox warnings.

134|21|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/letta-ai/skills --skill overfull-hbox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: overfull-hbox
Source: https://github.com/letta-ai/skills/tree/main/ai/benchmarks/letta/terminal-bench-2/trajectory-feedback/overfull-hbox
Command: npx skills add https://github.com/letta-ai/skills --skill overfull-hbox

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a methodical, constraint-aware approach to reducing LaTeX overfull hbox warnings by substituting only allowed synonyms from a predefined list.

Core Features & Use Cases

  • Constraint-driven editing: Only replace words present in the synonyms file.
  • Line-by-line assessment: Identify problematic lines and plan safe replacements.
  • Iterative validation: Recompile and verify after each change.

Quick Start

Example: replace the longest overfull word in a paragraph with an allowed synonym and recompile to verify the warning disappears.

Frequently Asked Questions about overfull-hbox

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

FAQPage Schema
How do I fix LaTeX overfull hbox warnings?

Overfull hbox warnings occur when LaTeX text extends beyond the line margin. This Skill fixes them by replacing long words with shorter synonyms from a constrained list, reducing line overflow without manual rewriting.

Can I use synonym replacement to resolve LaTeX compilation warnings?

Yes. This Skill identifies overfull lines, finds candidate words present in a synonyms file, computes character savings, applies grammatically safe replacements, and recompiles to verify the warnings are resolved.

What constraints apply when replacing words in LaTeX documents?

Replacements must come from a predefined synonyms list and respect grammatical rules—notably article and agreement constraints—to avoid introducing syntax errors or unintended meaning changes.

How does this Skill validate that fixes actually work?

After each word substitution, the Skill recompiles the LaTeX document and checks that the overfull hbox warning disappears, confirming the edit resolved the problem.

Do I need a prepared synonyms file to use this approach?

Yes. The Skill requires a synonyms file containing allowed word replacements. It parses this file to build bidirectional mappings used for identifying safe, shorter alternatives.