{"slug": "your-terminal-can-t-render-latex-here-s-a-10-second-fix-for-claude-code-and", "title": "Your terminal can't render LaTeX. Here's a 10-second fix for Claude Code and Codex", "summary": "A developer created claude-math, a SKILL.md file that teaches Claude Code and Codex to output Unicode math symbols instead of raw LaTeX in terminal environments. The tool maps LaTeX commands to plain Unicode characters like ∑, ∫, and √, making mathematical expressions readable in terminals that lack LaTeX rendering. It is available as an npm package and works with both Claude Code and Codex CLI.", "body_md": "Ask Claude Code or Codex to explain some math and your terminal shows this:\n\nH(p) = $-\\sum_{i} p_{i} \\log p_{i}$\n\nThat is LaTeX. A browser renders it into a clean equation. A terminal renders it into dollar-sign noise, because a TUI has no math engine to run. The more math-heavy your work (ML, statistics, optimization, proofs), the worse the output gets exactly where you need it clear.\n\nThat is the hard, unsolved path: it needs a graphics backend like Kitty or SIXEL, plus a fallback for SSH and tmux. There is a cheaper move. The model does not have to output LaTeX at all.\n\nUnicode already has most inline math: ∑, ∫, √, ≤, ≥, ∈, α, β, σ, x², pᵢ, set notation, even small matrices. A terminal renders all of it, because it is just text. So you teach the model to skip LaTeX and emit the Unicode directly:\n\nbefore: H(p) = $-\\sum_{i} p_{i} \\log p_{i}$\n\nafter: H(p) = − ∑ᵢ pᵢ · log pᵢ\n\n[ claude-math](https://github.com/vladimirrott/claude-math) does exactly that. It has no runtime; it is a\n\n`SKILL.md`\n\nthe agent loads, with a glyph cheatsheet so the mapping stays consistent. It is copy- and search-safe (plain Unicode, not the \"mathematical alphanumeric\" styling codepoints that break find-in-page), and the same file works in Claude Code and Codex.npx claude-math install # Claude Code\n\nnpx claude-math install --codex # Codex CLI\n\nRestart your agent and math comes back as text you can read.\n\n**One caveat, stated plainly:** this is a workaround, not native rendering. A dense derivation is still clearer as typeset math, and on a GUI surface that already renders LaTeX you want the LaTeX, not Unicode. claude-math is deliberately a terminal tool. Buh that fills an agent's answers, it is an immediate improvement.\n\nRepo: [https://github.com/vladimirrott/claude-math](https://github.com/vladimirrott/claude-math)\n\nIf the Unicode mapping ever looks wrong, that is exactly the kind of issue I want to hear about.", "url": "https://wpnews.pro/news/your-terminal-can-t-render-latex-here-s-a-10-second-fix-for-claude-code-and", "canonical_source": "https://dev.to/vladimirrotariu/your-terminal-cant-render-latex-heres-a-10-second-fix-for-claude-code-and-codex-1adf", "published_at": "2026-07-18 01:36:22+00:00", "updated_at": "2026-07-18 01:58:02.673450+00:00", "lang": "en", "topics": ["developer-tools", "large-language-models", "natural-language-processing"], "entities": ["Claude Code", "Codex", "claude-math", "Unicode", "LaTeX"], "alternates": {"html": "https://wpnews.pro/news/your-terminal-can-t-render-latex-here-s-a-10-second-fix-for-claude-code-and", "markdown": "https://wpnews.pro/news/your-terminal-can-t-render-latex-here-s-a-10-second-fix-for-claude-code-and.md", "text": "https://wpnews.pro/news/your-terminal-can-t-render-latex-here-s-a-10-second-fix-for-claude-code-and.txt", "jsonld": "https://wpnews.pro/news/your-terminal-can-t-render-latex-here-s-a-10-second-fix-for-claude-code-and.jsonld"}}