Overflow Repair Skill

Fix LaTeX Overfull \hbox defects with minimal .tex source edits.

334|18|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/OpenRaiser/PaperFit --skill overflow-repair-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Overflow Repair Skill
Source: https://github.com/OpenRaiser/PaperFit/tree/main/skills/overflow-repair
Command: npx skills add https://github.com/OpenRaiser/PaperFit --skill overflow-repair-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It resolves LaTeX layout defects where content exceeds the allowed width, causing overfull hboxes in paragraphs, tables, long formulas, or URLs.

Core Features & Use Cases

  • Overfull hbox repair routing: Selects the appropriate fix strategy for D1 (paragraph/table/formula overflows), D2 (long formulas needing line breaks), and D3 (URL/identifier overflows) based on defect IDs from diagnostic agents.
  • Minimal, deterministic source edits: Applies the smallest safe .tex changes to improve line breaking or table layout while preserving academic meaning.
  • Recompile-validated outcomes: Uses the compile log to verify that the targeted Overfull \hbox issues are eliminated or significantly reduced after each attempted strategy.

Use case: After template migration or content updates, your paper compiles but shows overfull lines in the final PDF; use this skill to pinpoint and repair the exact overflow sites (e.g., a specific table cell or a too-long URL in references).

Quick Start

Use the orchestrator to run the overflow-repair workflow for the detected defect IDs D1, D2, and D3, feeding it the main .tex path, rule-engine report details, layout-detective confirmation, and the current .log.

Frequently Asked Questions about Overflow Repair Skill

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

FAQPage Schema
How do I fix LaTeX overfull hbox errors in paragraphs and tables?

To fix LaTeX overfull hbox errors, this skill edits the affected `.tex` sources to restore proper line breaking and alignment in overflowing paragraphs and table cells using minimal deterministic changes.

What is the best way to handle formula line breaking for long unbroken LaTeX equations?

Handling formula line breaking for long LaTeX equations requires inserting minimal safe edits into the `.tex` file. This skill applies targeted strategies to break formulas while preserving academic meaning.

How to repair overflowing URLs and long identifiers in LaTeX references?

To repair overflowing URLs and long identifiers in LaTeX references, this skill applies specific defect-driven strategies to edit the source and restore proper alignment without breaking hyperref links.

Does this LaTeX overflow repair approach validate fixes against compilation logs?

Yes, this LaTeX overflow repair approach validates fixes against updated compilation logs. It verifies that targeted overfull hbox issues are eliminated or significantly reduced after applying source edits.

Can I use this skill to repair LaTeX overflow after a template migration?

Yes, you can use this skill to repair LaTeX overflow after template migration or content updates. It pinpoints exact overflow sites in the final PDF and applies minimal safe `.tex` changes to fix them.

Why does my LaTeX paper compile but show overfull lines in the final PDF?

Your LaTeX paper shows overfull lines because content exceeds the allowed width. This skill resolves these layout defects by selecting appropriate fix strategies based on defect IDs to restore proper line breaking.