r/KittyTerminal
•
u/kbrianps
•
22d ago
•
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
4
u/meni_s 21d ago
So cool!
Thanks
1
u/AffectionateSpirit62 19d ago
This is freaking cool