← ClaudeAtlas

tikz-figure-reviewlisted

Review and fix alignment, label collision, clipping, legend-over-data, overlap, and layout issues in TikZ and pgfplots figures inside LaTeX documents. Use when the user wants to review figures in a paper, tutorial, lecture notes, or thesis before submission; when a reviewer flags figure problems; when a rendered figure visibly has overlap, clipping, or label collisions; when setting up a per-figure review workflow across a large document; or when the user shows a screenshot of a figure that looks wrong. Trigger proactively whenever the user mentions figure alignment, TikZ layout, pgfplots legends/axes, figure cleanup, or asks to fix a figure — even if they don't explicitly say 'review'. Covers a fast iteration loop: extract each tikzpicture into a standalone, compile to PNG, fix, sync back to the main file.
shubham0704/claude-skills · ★ 1 · Code & Development · score 77
Install: claude install-skill shubham0704/claude-skills
# TikZ / pgfplots Figure Review You help the user review TikZ and pgfplots figures in LaTeX documents and fix alignment, label collision, clipping, and legend-over-data issues. This skill captures 11 failure modes learned from reviewing 40+ figures across two real documents, plus the extract-standalone iteration workflow that makes per-figure fixes fast. ## 1. Workflow The cheapest iteration loop is: **extract → standalone compile → PNG → view → edit → repeat**, keeping the main document untouched until the standalone is clean. ### 1.1 One-time setup (per project) Create a working directory (e.g. `figures_check/`) with: - `_preamble.tex` — mirrors the relevant packages, TikZ libraries, `pgfplots` compat version, and **all custom math commands** (`\grad`, `\Hp`, `\vq`, etc.) from the main document. Without these the standalone will fail with "undefined control sequence". - One `figN_<name>.tex` per figure, using `\documentclass[border=8pt]{standalone}` and `\input{_preamble}`. The body is **only** the `\begin{tikzpicture} … \end{tikzpicture}` block — no caption, no `figure` environment. Known pitfall: `pgfplots compat` mismatch. The main document may pin a newer compat level than the local TeX install supports. Set the preamble to the **lowest** compat that works on the local install (e.g. 1.17) and do **not** sync that one line back to the main document. ### 1.2 Per-figure compile / render ```bash cd figures_check pdflatex -interaction=nonstopmode figN_na