{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "nahumlitvin-prismantis--typeset-latex-formulas-in-claude-replies",
 "repo": "NahumLitvin/prismantis",
 "repo_url": "https://github.com/NahumLitvin/prismantis",
 "repo_slug": "nahumlitvin-prismantis",
 "title": "Show LaTeX formulas as typeset images in Claude Code",
 "page_title": "How to show LaTeX formulas as typeset images in Claude Code with Prismantis",
 "summary": "Install RaTeX's renderer, turn on latex, and draw display math as images in kitty or Ghostty.",
 "who": "A researcher, student or engineer who works with formulas in Claude Code and uses kitty or Ghostty.",
 "problem": "Formulas in Claude Code replies show as raw LaTeX text, which is hard to read.",
 "outcome": "Display math draws as a typeset image in the theme's diagram color, and its copy button copies the LaTeX source.",
 "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/bin` and then `install ratex-cli-*/render ~/.local/bin/ratex-render`.",
  "Set the `latex` option to `true` in the Prismantis configuration, then run `/reload` in the session. (inferred, check the README)",
  "Ask Claude for a formula in `$$` form and confirm it draws as an image in kitty or Ghostty."
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Advanced",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "LaTeX images only draw in kitty and Ghostty outside tmux, and everywhere else formulas stay as text in a math block.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "remote-script",
   "notice": "The steps download and install a binary from a GitHub release, so check the source and archive name before you run them."
  }
 ],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/nahumlitvin-prismantis/typeset-latex-formulas-in-claude-replies/",
 "md": "https://dedupedai.com/use-cases/nahumlitvin-prismantis/typeset-latex-formulas-in-claude-replies/index.md",
 "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 hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/nahumlitvin-prismantis--typeset-latex-formulas-in-claude-replies.json",
 "api_version": "v1"
}
