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.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page