1. Home
  2. Guides
  3. Math not rendering

Claude LaTeX not rendering: find the cause

Locate where the formula turns into source text, then repair the syntax or choose an output that can display equations.

If Claude shows dollar signs or backslashes instead of a formula, first check whether you are looking at the chat, pasted text, or an exported document. In the chat, ask for a simple equation outside a code block, then check unmatched delimiters and commands in the failing expression. In pasted text and exports, check whether the destination understands the math format: raw LaTeX can be the intended output.

Find where the formula breaks

Compare the same equation at its source and destination before asking Claude to rewrite a whole answer. A formula that looks correct in the chat but becomes text after copying needs a different repair from one that never rendered in the chat.

Where you see raw mathWhat to check firstUseful next step
Inside the Claude conversationCode fences, delimiters, and formula syntaxRequest one simple equation outside a code block.
After pasting into a documentWhether the paste created text or an equationUse the destination’s equation input or a suitable export.
In a downloaded fileThe file format and the program opening itCompare the file with its expected math behavior.

Keep one failing expression as your example throughout the check. That makes it easier to see whether a change repaired the formula, changed its meaning, or merely moved the same source text somewhere else.

Remove fences around rendered math

A code box is useful when you want to copy LaTeX into another editor. Backslashes, braces, and dollar signs inside it can be exactly what you asked Claude to produce, especially after a request for “the code” or “LaTeX source.”

John MacFarlane’s CommonMark specification explains the general Markdown rule: “The content of a code fence is treated as literal text, not parsed as inlines.” That preserves the source characters you need to copy from a Markdown code block.

Ask for the equation outside the code block when you want it displayed in the conversation. If you need both views, request the rendered equation first and a separately labeled source block afterward, so you can distinguish the display from the material to copy.

Check one delimiter pair

Math delimiters mark where an expression begins and ends. An opening marker without its matching closing marker, a missing brace in a fraction, or an escaped delimiter can leave source characters visible or prevent the expression from being interpreted as intended.

Delimiter conventions vary between tools. For example, MathJax documents inline math with backslash-parentheses and display math with backslash-brackets or double dollar signs by default. Single dollar signs require configuration. Check the destination’s delimiter rules before changing the formula.

Check the pair around one formula and keep the expression inside it consistent. Avoid replacing every dollar sign in the answer, because some may represent prices or intentionally escaped characters. For a wider explanation of source syntax, see the Claude LaTeX math guide.

Simplify the failing expression

Start with a short fraction or exponent before testing a long derivation. If the simple expression displays correctly while the original fails, reduce the original one part at a time to find the troublesome command, missing brace, or undefined macro.

The following is an illustrative diagnostic prompt you can copy. Replace the final formula with your own failing expression when needed. The supplied fraction gives you a complete starting example.

Help me diagnose a math display problem in this conversation.
First show the equation x + 1 = 2 as rendered math outside any code block.
Next show the formula below as rendered math outside any code block.
Then give its literal LaTeX source in a separate code block.
Check for unmatched delimiters, missing braces, and undefined macros.
Preserve the mathematics. Explain any command you simplify.
Formula: f(x)=\frac{x^2+1}{x-1}

For this fraction, substituting x = 2 gives 5, while x = 1 is undefined. Check both after a rewrite to catch a changed denominator or a lost restriction.

A custom command may depend on a definition elsewhere in a LaTeX document. Ask Claude to expand that command into ordinary math notation, preserving its meaning. If the source is a complete LaTeX document with package declarations and document structure, use a LaTeX editor or compiler for that document rather than expecting the conversation to process it as a full project.

If even the simple equation stays literal outside a code block, stop editing the complex formula. Compare another response and the target viewer to determine whether the problem follows the expression or the place displaying it. Keep the source available while you choose a destination that supports the needed math.

Repair pasted text and exports

A copied formula can lose its displayed form because the receiving editor gets text rather than an equation object. Pasting the same characters repeatedly will not make that editor interpret them differently. Use its equation entry feature for a small correction, or choose a file format suited to the result you need.

DocMyChat for Claude exports one conversation or one reply from your own Claude chat in desktop Chrome. Its PDF output typesets math, its Word output uses native editable Office Math equations, and its Markdown output keeps LaTeX between dollar signs. Its Copy output leaves math as LaTeX text in Google Docs because clipboard output cannot deliver equations there.

Choose Claude to PDF for a readable typeset document or Claude to Word when the equations need further editing. A Markdown export preserves source for a compatible viewer, so visible dollar signs in a plain text editor do not by themselves indicate a failed export.

Published native Docs and decks appear as titles and links in the conversation export. Use their own export controls when you need their contents.

Check the mathematics separately

Successful rendering only tells you that the notation can be displayed. Check signs, exponents, fractions, subscripts, and any assumptions that could have changed during a rewrite, especially when a command was expanded or simplified.

Anthropic’s guidance on calculations recommends verifying complex or mission-critical calculations with specialized mathematical software or manual methods. Apply that check to the mathematical result as well as the appearance of the equation.

Repair one formula first

Take one expression that currently shows raw code and try the diagnostic prompt in the conversation. If it renders there, follow the paste or export path. If only the complex formula fails, simplify its syntax before revisiting the full answer. Once that one equation survives the complete route, apply the same approach to the remaining formulas.

Questions

Why does Claude show a formula inside a code box?

A code box presents source text literally. Ask Claude to put the equation outside the code block when you want a rendered formula, or keep the block when you need copyable LaTeX source.

Should I replace every dollar sign with a backslash delimiter?

No. Dollar signs may mark math, represent currency, or be escaped characters. Check one equation and the destination’s supported delimiters before changing the rest.

Why does a rendered equation become LaTeX when pasted into Google Docs?

The clipboard can carry text without carrying an equation object. DocMyChat’s Copy output keeps Google Docs math as LaTeX text. Its Word download uses native editable Office Math equations.

Why are dollar signs still visible in my Markdown download?

Markdown can store the LaTeX source between dollar signs. Whether that source displays as an equation depends on the Markdown viewer and its math support.

What if even a simple formula will not render?

If a simple equation outside a code block also remains literal, rewriting the complex expression may not help. Compare the chat with the destination and use a math-capable viewer, an equation editor, or a typeset export for the required result.