<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: vladimirrotariu</title>
    <description>The latest articles on DEV Community by vladimirrotariu (@vladimirrotariu).</description>
    <link>https://dev.to/vladimirrotariu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1108799%2F4aba53d9-5185-40bc-abc0-1520bb5b362c.jpeg</url>
      <title>DEV Community: vladimirrotariu</title>
      <link>https://dev.to/vladimirrotariu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vladimirrotariu"/>
    <language>en</language>
    <item>
      <title>Your terminal can't render LaTeX. Here's a 10-second fix for Claude Code and Codex</title>
      <dc:creator>vladimirrotariu</dc:creator>
      <pubDate>Sat, 18 Jul 2026 01:36:22 +0000</pubDate>
      <link>https://dev.to/vladimirrotariu/your-terminal-cant-render-latex-heres-a-10-second-fix-for-claude-code-and-codex-1adf</link>
      <guid>https://dev.to/vladimirrotariu/your-terminal-cant-render-latex-heres-a-10-second-fix-for-claude-code-and-codex-1adf</guid>
      <description>&lt;p&gt;Ask Claude Code or Codex to explain some math and your terminal shows this:&lt;/p&gt;

&lt;p&gt;H(p) = $-\sum_{i} p_{i} \log p_{i}$&lt;/p&gt;

&lt;p&gt;That 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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feotbayi7mxmwwc0xc9ss.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feotbayi7mxmwwc0xc9ss.gif" alt="claude-math: raw LaTeX versus readable Unicode" width="800" height="293"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix is not "render the LaTeX"
&lt;/h2&gt;

&lt;p&gt;That 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.&lt;/p&gt;

&lt;p&gt;Unicode 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:&lt;/p&gt;

&lt;p&gt;before:  H(p) = $-\sum_{i} p_{i} \log p_{i}$&lt;br&gt;
after:   H(p) = − ∑ᵢ pᵢ · log pᵢ&lt;/p&gt;

&lt;h2&gt;
  
  
  claude-math
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/vladimirrott/claude-math" rel="noopener noreferrer"&gt;&lt;code&gt;claude-math&lt;/code&gt;&lt;/a&gt; does exactly that. It has no runtime; it is a &lt;code&gt;SKILL.md&lt;/code&gt; the 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.&lt;/p&gt;

&lt;p&gt;npx claude-math install          # Claude Code&lt;br&gt;
npx claude-math install --codex  # Codex CLI&lt;br&gt;&lt;br&gt;
Restart your agent and math comes back as text you can read.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;One caveat, stated plainly:&lt;/strong&gt; 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.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/vladimirrott/claude-math" rel="noopener noreferrer"&gt;https://github.com/vladimirrott/claude-math&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If the Unicode mapping ever looks wrong, that is exactly the kind of issue I want to hear about.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>claude</category>
      <category>cli</category>
    </item>
  </channel>
</rss>
