r/KittyTerminal • • Oct 28 '26 • Bravo 1

Using the kitty graphics protocol to render LaTeX formulas inside Claude Code

Small project built on the kitty graphics protocol: a Claude Code plugin that compiles the $$...$$ formulas the AI writes (latex + dvipng) and draws them inline in kitty instead of showing raw LaTeX source.

It sizes each image to whole terminal cells (rendered at 2x DPI, then fit to the cell grid) so it scrolls with the text. Also works in Ghostty and through tmux with passthrough.

Code (MIT): https://github.com/kbrianps/claude-latex-math

169 Upvotes

Duplicates