DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to show LaTeX formulas as typeset images in Claude Code with Prismantis

Install RaTeX's renderer, turn on latex, and draw display math as images in kitty or Ghostty.

Short answer: Run gh release download -R erweixin/RaTeX -p 'ratex-cli-*-aarch64-apple-darwin.tar.gz' and pick the archive for your platform; then run tar -xzf ratex-cli-*.tar.gz; run mkdir -p ~/.local/bin and then install ratex-cli-*/render ~/.local/bin/ratex-render. All steps.

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

  1. Run gh release download -R erweixin/RaTeX -p 'ratex-cli-*-aarch64-apple-darwin.tar.gz' and pick the archive for your platform.
  2. Run tar -xzf ratex-cli-*.tar.gz.
  3. Run mkdir -p ~/.local/bin and then install ratex-cli-*/render ~/.local/bin/ratex-render.
  4. Set the latex option to true in the Prismantis configuration, then run /reload in the session. (inferred, check the README)
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer