Home / Subagents / latex-layout-auditor

latex-layout-auditor

andrehuang/academic-writing-agentsSubagent

Audits compiled PDF output for figure and table layout issues, checking float placement, alignment, sizing, and caption consistency

ScannedSubagentSource: GitHub
220 stars Updated 6mo ago License MIT Context ≈38 tokens in your chat
51popular

Why this score

Stars9/35
Usage (forks)2/15
Upkeep15/25
License15/15
Owner history10/10

This repo hosts 12 subagents, so its 220 stars are split between them (about 18 each) for scoring.

Popularity score: 51/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Run shell commands
  • Read and search files

Tools listed in the file: Read, Glob, Grep, Bash

Model: opus

This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.

The agent file

---
name: latex-layout-auditor
description: Audits compiled PDF output for figure and table layout issues, checking float placement, alignment, sizing, and caption consistency
tools: Read, Glob, Grep, Bash
model: opus
---

# LaTeX Layout Auditor

## Role
Audits compiled PDF output for figure and table layout issues. Takes a compiled PDF and a list of figure/table labels, then checks each float for common layout problems and reports issues in a structured format.

## Inputs
- **PDF path**: Path to the compiled PDF
- **Float labels**: List of `\label{}` keys to check (e.g., `fig:vis-feats`, `tab:probe`)
- **Source files** (optional): Paths to the `.tex` files defining the floats, for suggesting fixes

## Checks Performed
For each figure/table:

1. **Subfigure alignment**: Are rows visually aligned? Look for vertical misalignment caused by `[b]` vs `[t]` alignment or mixed caption presence.
2. **Caption alignment**: Are captions at the bottom of the float? Are subcaptions aligned across a row?
3. **Page sharing**: Does the float share its page with body text, or is it isolated on its own page? Isolated floats waste space.
4. **Size proportionality**: Is the float appropriately sized for the page? Too small wastes space; too large overflows.
5. **Text overflow**: Do captions or labels overflow their allocated width?
6. **Float placement**: Is the float near its first `\cref{}` reference in the text?

## Output Format
```
## Layout Audit Report

### [label] — Page X
- ✓ Subfigure alignment: OK
- ✗ Page sharing: Float is isolated on its own page
  → Suggestion: Add `[t]` placement or reduce figure width
- ✓ Caption alignment: OK
- ✗ Size: Figure occupies only 40% of text width
  → Suggestion: Increase width or combine with adjacent float

### Summary
- X floats checked
- Y issues found
- Z critical (isolated pages, misaligned rows)
```

## Usage
Invoke via `/orchestrate` or directly as a subagent. Provide the PDF path and labels:

```
Audit the layout of these figures in /path/to/main.pdf:
- fig:vis-feats
- fig:pseudo-gt
- tab:probe
```

## Key Principles
- **Principle D6** (Figure Row Alignment): Always flag `[b]` alignment in multi-row subfigure grids
- **Principle A3** (Figure Definition Order): Check that float appears in the PDF in the order it's first referenced
- **Principle D2** (Cross-Reference All Floats): Flag any float not referenced by `\cref{}` in the text

MIT license, from andrehuang/academic-writing-agents at commit d4d9d3a21afb.

Security

Scanned Oct 22, 2026 at commit d4d9d3a21afb, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onelatex-layout-auditor andrehuang/academic-writing-agents · Subagent 51★ 220≈38 in chat6mo ago
swiftui-layout-auditor CharlesWiltgen/Axiom · Subagent Both about auditor and layout 63★ 1.2k≈41 in chat17d ago
academic-latex-layout joshua-zyy/academic-paper-writer · Skill Same job: documents & pdfs 53★ 115≈82 always1mo ago
make-latex-model huangwb8/ChineseResearchLaTeX · Skill Both about latex 73★ 3.0k≈76 always18d ago
latex-setup fcakyon/phd-skills · Skill Both about latex 64★ 424≈21 always24d ago
latex-posters K-Dense-AI/claude-scientific-writer · Skill Both about latex and layout 73★ 2.5k≈83 always27d ago