How to paste LaTeX into Google Docs and turn it into equations

By Jake Marsh · Updated

Google Docs shows pasted LaTeX as plain text full of dollar signs and backslashes. To turn it into equations, choose Extensions, Texwell, Convert LaTeX ($...$) in this document, click Find LaTeX in this document to see every piece of math it found, and click Convert all. Each one becomes an equation, sized and colored to match the text around it, and math that was on a line of its own is centered.

What counts as LaTeX

Written asBecomes
$x^2 + y^2 = r^2$An equation inside the sentence
\(x^2 + y^2 = r^2\)An equation inside the sentence
$$\int_0^1 f(x)\,dx$$A display equation
\[\int_0^1 f(x)\,dx\]A display equation

Dollar signs used for money are left alone. Texwell follows the usual Markdown rules for $, so "it costs $5 and $10" stays text.

Steps

  1. Paste the text into your Doc as you normally would. Notes, a Markdown file, or an answer copied from a chat assistant all work.
  2. Choose Extensions, Texwell, Convert LaTeX ($...$) in this document.
  3. Click Find LaTeX in this document. The sidebar lists every equation it found, drawn as it will look, and says how many have LaTeX errors. Those are left as text, so you can fix the typo and run it again.
  4. Click Convert all. Equations are converted from the end of the document back to the start, so nothing shifts while it works.
  5. Check a couple of them. Click any converted equation to see its LaTeX in the sidebar and fix it if needed.

Where it looks

Converting covers the body of the Doc: paragraphs, lists and tables. Each piece of math is checked again right before it's replaced, so text you edited after clicking Find isn't converted by mistake.

Trial and limits

Each converted equation counts as one equation in the free trial, which covers 50 equations or 14 days, whichever comes first. If a document has more than the trial has left, Texwell stops at the limit and leaves the rest as text, so nothing is half converted.

What it costs

Texwell is $6.99 a month or $65 a year per Google account. Free trial: 50 equations or 14 days, whichever comes first. No card needed. Every plan and the install link are on the Texwell page.

Texwell: LaTeX Equations for Docs and Slides

LaTeX equation editor for Google Docs and Slides, with live preview and click-to-edit equations $6.99 a month or $65 a year per Google account.


Questions

Is the original LaTeX lost?

No. Each converted equation keeps its LaTeX in its alt text, and the Doc's version history (File, Version history) has the document as it was before.

Does it work on LaTeX from Overleaf?

For the math, yes: inline and display math with the delimiters above converts. Document commands like \section or \begin{document} aren't math and are left as text.

What if the LaTeX has no dollar signs?

Paste it into the sidebar's equation box instead and press Insert. The box takes LaTeX with or without delimiters.

Can I convert only part of the document?

Find lists every equation in the document, and Convert all converts that list. To convert a few, paste each into the sidebar and insert it where it belongs.


More Texwell guides


More Google guides