LIMITED TIME50% OFFPro Annual, $49.98$24.99/yr
3d:21h:55m:22s
CLAIM 50% OFF →
← All posts

How to Export ChatGPT LaTeX Math Without Breaking Formulas

ChatGPT renders LaTeX math beautifully in your browser. But the moment you try to save that conversation, formulas collapse into raw $$ \int_0^\infty e^{-x^2} dx $$ source code, or worse, Unicode gibberish that prints sideways.

Here’s why your math breaks during export, and how to fix it for every format.

Why LaTeX breaks during export

ChatGPT’s web interface renders LaTeX using KaTeX, each formula becomes a <span> containing typeset SVG and HTML. The original LaTeX source lives on as a data- attribute attached to that span.

When you copy the rendered page or use Chrome’s “Print to PDF,” the browser only captures what’s visible on screen. Long display equations get clipped mid-formula. Inline symbols like \Sigma print as random Unicode if your system font doesn’t have the glyph. And those data attributes containing the actual LaTeX? Gone completely.

Copy-paste loses the math. Print to PDF mangles it. The solution is extracting the LaTeX source before rendering, then re-rendering it explicitly in your export.

Per-format playbook

PDF

Use ChatExport AI’s PDF export. It extracts every LaTeX block as raw source, renders it through bundled KaTeX into crisp SVG, then composes the final PDF. Inline math, display equations, matrices, big-O notation, integrals, all typeset perfectly.

Never use Chrome’s built-in Print to PDF for conversations containing math. The output is unusable for anything serious.

Word (.docx)

The .docx format includes a native equation type (Office Math). ChatExport AI’s Word export outputs LaTeX as monospace fenced text by default, Word can convert this to typeset equations using Insert → Equation → LaTeX. (Direct Office Math emission is coming soon.)

If you need typeset math in the document immediately, export as PDF first, then embed the PDF page as an image inside your .docx file.

Markdown

Simple, just preserve the delimiters. $inline$ and $$display$$ are standard CommonMark math conventions. ChatExport AI’s Markdown export preserves them byte-for-byte.

The exported .md renders math in:

  • Obsidian, native math support since v0.10.
  • MkDocs Material, with the pymdownx.arithmatex extension.
  • VitePress, via the markdown-it-mathjax3 plugin.
  • Quartz, built-in.
  • GitHub gists, yes, GitHub renders $..$ math in gists since 2022.

HTML (offline)

This format is bulletproof. ChatExport AI’s HTML export bundles KaTeX directly inside the file, so math renders even with zero internet connection. You get a single self-contained .html file you can email, archive on a USB stick, or open a decade from now.

JSON

For automated workflows: ChatExport AI’s JSON export preserves LaTeX source as a dedicated field per message (content_latex) alongside the rendered fallback. Perfect for RAG systems and fine-tuning datasets that need clean LaTeX strings.

Common pitfalls

Pitfall 1: “It looks perfect in the chat but breaks when I export.”, Exactly. The chat displays rendered output; the export captures source code. If your export tool doesn’t re-render, you get raw $$ delimiters.

Pitfall 2: “I copied math from ChatGPT to Word and it’s all wrong.”, Word doesn’t render LaTeX automatically. You need an export tool that handles the conversion.

Pitfall 3: “Why are my Greek letters showing as boxes?”, Your viewer’s font is missing those glyphs. KaTeX in HTML and PDF avoids this by rendering math as proper vector paths, not text characters.

When the math is too long to even render

Some matrices and proofs span wider than a printed page. ChatExport AI’s PDF export automatically shrinks display math to fit page width. If a matrix is genuinely too wide even then, it switches that specific block to landscape orientation.

For Markdown exports, you’ll need to break oversized matrices manually, there’s no portable way to express “scroll horizontally” in a static document format.

Try it

Install ChatExport AI free and your next math-heavy ChatGPT conversation will export with properly typeset formulas. The free tier includes 5 exports per day.

Try ChatExport AI

Free Chrome extension. No account.

Add to Chrome, It's Free