kbrianps

Claude LaTeX Math — Development skill for Claude Code

Development community

Claude Code mod that draws LaTeX formulas as images in the terminal (Ghostty, kitty, tmux).

How to install Claude LaTeX Math

This entry records only its repository, not the path inside it, so there is no exact command to give. Open kbrianps/claude-latex-math and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude LaTeX Math does

Claude Code mod that draws LaTeX formulas as images in the terminal (Ghostty, kitty, tmux).

Alternatives in Development

  • Spreadsheet — Create, edit, analyze, and visualize spreadsheets with formulas 14.6k ★
  • Calyx — A native macOS terminal app built on Ghostty for running and supervising coding agents 298 ★
  • Mulmoterminal — Run multiple Claude Code and Codex sessions in parallel — a browser terminal grid that shows which agent needs 187 ★

README

latex-math

A Claude Code mod that draws LaTeX formulas as images in your terminal, instead of raw `$$\frac{...}{...}$$` source.

![Before and after: display formulas drawn as images in Ghostty](assets/demo.gif)

Display math in Claude's replies, `$$...$$` and `\[...\]`, is compiled with your local LaTeX (`latex` + `dvipng`) and drawn in place. Everything else stays text.

Requirements

  • LaTeX with amsmath and dvipng on your PATH:
    • Debian/Ubuntu: sudo apt install texlive-latex-base dvipng
    • Fedora: sudo dnf install texlive-scheme-basic texlive-dvipng
    • macOS: brew install --cask basictex, then sudo tlmgr install dvipng
  • Claude Code 2.1.287 or newer (mods support).

Without LaTeX the mod does nothing and you see the formulas as text.

Install

At the prompt of a Claude Code terminal session:

/plugin install latex-math --marketplace kbrianps/claude-latex-math

Answer `y` to add the marketplace, then pick a scope (user scope loads it in every session).

From a shell:

claude plugin install latex-math --marketplace kbrianps/claude-latex-math

Terminals

Terminal Result
Ghostty image
kitty image
tmux with passthrough (see below) image
iTerm2 3.5+ in fullscreen rendering image, per the Claude Code docs (not tested yet)
GNOME Terminal, Ptyxis, VS Code terminal the LaTeX source as text

The picture uses the kitty graphics protocol. Where the terminal can't draw it, you get the original text.

tmux

Add to `~/.tmux.conf` and restart tmux:

set -g allow-passthrough on
set -g focus-events on

What it does not do

  • Inline math ($x^2$ inside a sentence) stays text: an image takes whole terminal rows.
  • Formulas inside code blocks stay text.
  • A formula LaTeX can't compile stays text.
  • The formula is drawn in light gray, for dark terminal themes. On a light theme it is hard to read.
  • The first render of each formula takes about a second (one latex run). Resul