Select rendered equations in ChatGPT, Gemini, Claude, and similar sites to copy LaTeX, Markdown math, or visible equation text.
ChatMathEquation is a Tampermonkey userscript that helps you copy equations from AI chat interfaces such as ChatGPT, Gemini, and Claude.
When you select a rendered equation with your mouse, the script shows a floating toolbar near the equation. From that toolbar, you can copy:
$...$ or $$...$$The current script metadata includes these matches:
https://chatgpt.com/*https://chat.openai.com/*https://gemini.google.com/*https://claude.ai/*https://*.openai.com/*You can expand the @match entries later if you want the script to run on more sites.
tampermonkey-equation-copy.user.js.Copy LaTeXCopy MarkdownCopy EquationIf the page exposes the original TeX source, Copy LaTeX and Copy Markdown will use that source. If not, those options may be unavailable.
The script tries these sources in order:
data-latex, data-tex, aria-label, or titleCopy LaTeX may not be available.Copy Equation depends on the rendered text being extractable from the visible equation markup.