ChatMathEquation

Select rendered equations in ChatGPT, Gemini, Claude, and similar sites to copy LaTeX, Markdown math, or visible equation text.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
zihang-huang
일일 설치 수
1
총 설치 수
2
평점
0 0 0
버전
0.1.0
생성일
2026-04-26
갱신일
2026-04-26
크기
14.6KB
라이선스
MIT
적용 사이트

ChatMathEquation

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:

  • The original LaTeX source when it is available in the page DOM
  • Markdown math syntax such as $...$ or $$...$$
  • The visible rendered equation text

Features

  • Works on common AI chat sites with rendered math
  • Detects KaTeX, MathJax, MathML, and similar equation markup
  • Shows a floating copy toolbar above or below the selected equation
  • Uses multiple clipboard strategies for better browser compatibility

Supported Sites

The current script metadata includes these matches:

You can expand the @match entries later if you want the script to run on more sites.

Installation

  1. Install a userscript manager such as Tampermonkey.
  2. Open Tampermonkey and create a new script.
  3. Replace the default template with the contents of tampermonkey-equation-copy.user.js.
  4. Save the script.
  5. Open or refresh ChatGPT, Gemini, Claude, or another matched site.

Usage

  1. Open a page containing a rendered math equation.
  2. Use your mouse to select part of the rendered equation.
  3. A floating toolbar will appear near the equation.
  4. Click one of the buttons:
  • Copy LaTeX
  • Copy Markdown
  • Copy Equation

If the page exposes the original TeX source, Copy LaTeX and Copy Markdown will use that source. If not, those options may be unavailable.

How It Extracts Equations

The script tries these sources in order:

  1. Hidden MathML or annotation nodes that store TeX
  2. KaTeX or MathJax assistive markup
  3. Data attributes such as data-latex, data-tex, aria-label, or title
  4. Nearby code or markdown text as a fallback

Limitations

  • Some sites do not preserve the original LaTeX in the DOM after rendering.
  • In those cases, Copy LaTeX may not be available.
  • Copy Equation depends on the rendered text being extractable from the visible equation markup.
  • Site DOM changes may require selector updates in the future.