Remote script. The steps download and install a binary from a GitHub release, so check the source and archive name before you run them.
Who it is forA researcher, student or engineer who works with formulas in Claude Code and uses kitty or Ghostty.
The problemFormulas in Claude Code replies show as raw LaTeX text, which is hard to read.
The outcomeDisplay math draws as a typeset image in the theme's diagram color, and its copy button copies the LaTeX source.
What you need first
- Claude Code version 2.1.287 or later
- A terminal that can show colors; kitty or Ghostty if you want LaTeX math drawn as images
- RaTeX's ratex-render binary, only if you want LaTeX math
Steps
- Run
gh release download -R erweixin/RaTeX -p 'ratex-cli-*-aarch64-apple-darwin.tar.gz'and pick the archive for your platform. - Run
tar -xzf ratex-cli-*.tar.gz. - Run
mkdir -p ~/.local/binand theninstall ratex-cli-*/render ~/.local/bin/ratex-render. - Set the
latexoption totruein the Prismantis configuration, then run/reloadin the session. (inferred, check the README) - Ask Claude for a formula in
$$form and confirm it draws as an image in kitty or Ghostty.
Prompt for your agent
On this machine, download the RaTeX ratex-cli archive for <platform>, install the file as ratex-render on the PATH, set the prismantis latex option to true, then run /reload in Claude Code. Expected output: a display formula drawn as an image. Verify that the test formula comes back and that the formula's copy button copies LaTeX text.
Caveat. LaTeX images only draw in kitty and Ghostty outside tmux, and everywhere else formulas stay as text in a math block.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for NahumLitvin/prismantis and "Show LaTeX formulas as typeset images in Claude Code"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer