Claude prompt to show math in plain text without LaTeX

Anthropic’s instruction for getting Claude to write math answers in plain text, without LaTeX markup.

Model
Claude
Task
Study
Source
Official example from Anthropic

Anthropic’s prompting guide notes that Claude’s latest models default to LaTeX for mathematical expressions, equations and technical explanations, which shows up as symbols like $ and \frac{}{} when your app or notes do not render it. Paste this instruction into your message, a project’s instructions or a system prompt, and Claude is asked to write math with ordinary characters such as / for division and ^ for exponents. It suits homework help pasted into plain-text notes or chat apps.

The prompt is quoted from Prompting best practices - Claude API Docs.

Prompt
Format your response in plain text only. Do not use LaTeX, MathJax, or any markup notation such as ( ), $, or \frac{}{}. Write all math expressions using standard text characters (e.g., "/" for division, "*" for multiplication, and "^" for exponents).
What it produces
Tells Claude to write equations and math explanations with ordinary characters instead of LaTeX markup.
Parameters
None; add it to your message, project instructions or system prompt
Source link
platform.claude.com
Added

Questions

Why does Claude show dollar signs and backslashes in math answers?
Anthropic says Claude’s latest models default to LaTeX for mathematical expressions; where LaTeX is not rendered, you see the raw markup.
Where do I put this instruction?
Anthropic’s guide says to add it to your prompt. You can paste it at the start of a chat or keep it as a standing instruction, for example in a system prompt.
What does Claude use instead of LaTeX?
Standard text characters, for example “/” for division, “*” for multiplication and “^” for exponents.

See also

Sources: each prompt is quoted from the official example or the public post linked on its page. Promptline is not affiliated with OpenAI, Anthropic, Google or Midjourney.

Promptline

What are you looking for?

Search by headline, topic or keyword.