Tex Figure Table Section Fix
Overview
Use this skill for localized quality remediation. Keep scope tight: one target area at a time, evidence first, patch second.
Executable Entry Points
- •
scripts/verify_content_targets.py: verifies one target scope at a time (figures,tables, orsection) and outputs JSON issues.
Example commands:
bash
python scripts/verify_content_targets.py --project-root . --main-tex main.tex --target figures --pretty python scripts/verify_content_targets.py --project-root . --main-tex main.tex --target tables --pretty python scripts/verify_content_targets.py --project-root . --main-tex main.tex --target section --section-name Introduction --pretty
Project Adaptation
- •Identify commands or scripts used to run figure/table/section checks.
- •Confirm local conventions (caption length, label format, booktabs policy, section style requirements).
- •Confirm whether visual verification is available (PDF render + vision review).
Workflow
- •Choose one target scope:
- •figures
- •tables
- •specific section
- •Run verify-first checks via
scripts/verify_content_targets.pyand capture explicit issues. - •Typical figure/table checks:
- •missing labels/captions
- •unreferenced labels
- •overflow width or placement issues
- •table formatting problems (for example missing booktabs style)
- •Typical section checks:
- •weak structure or flow
- •unsupported claims / missing citations
- •TODO markers and placeholder text
- •Generate minimal unified diffs with precise context.
- •Apply through approval flow.
- •If layout risk remains, run visual verification loop and patch only confirmed issues.
- •Re-analyze and stop when residual issues are acceptable.
Inputs and Outputs
- •Input: parsed structure facts, target scope, optional user instruction.
- •Output: scoped patch set and post-fix quality findings.
Common Mistakes
- •Skipping verify and jumping straight to free-form edits.
- •Combining figures/tables/sections into one broad patch batch.
- •Ignoring visual verification for layout-sensitive issues.
- •Continuing auto-fix after repeated quality regression.