Insert an equation in Docs
Insert an equation in Foxcolab Docs with LaTeX and a live preview, put math on its own line or inside a sentence, edit it later, and see how equations come out in Word, PDF and other downloads.
Updated 3 min read
In short
To insert an equation in Foxcolab Docs, choose Insert → Equation, type the math in LaTeX and click Insert. A preview draws the equation as you type, and buttons add fractions, powers, roots, sums, integrals, matrices and Greek letters. Turn off Display on its own line, or choose Inline equation, to put math inside a sentence. Click an equation to edit it.
Key takeaways
- Insert → Equation puts math on its own line. Inline equation puts it inside a sentence.
- You write equations in LaTeX, and the dialog previews the result as you type.
- Typing two dollar signs on each side of some LaTeX, as in $$x^2$$, makes an inline equation without opening the dialog.
- Click an equation to change it. Delete a displayed equation from its block handle.
- Print and PDF draw equations. Word and OpenDocument downloads hold each equation as a picture.
Last reviewed 5 December 2026
To insert an equation in Foxcolab Docs, click where it should go, choose Insert → Equation, type the math in LaTeX and click Insert. The dialog draws the equation as you type, so you see mistakes before they reach the page. Equations are part of your document, so they're end-to-end encrypted along with every other line of it.
Add an equation#
Place the cursor
Click where the equation belongs. For math on its own centered line, start on an empty line.
Open the equation dialog
Choose Insert → Equation, or Insert → Inline equation for math inside a sentence. You can also type / and pick Equation or Inline equation from the list.
Type the LaTeX
The Insert equation dialog says "Write in LaTeX. The preview updates as you type." Type in the box, or click a button below it, such as Fraction or Root, to add that piece.
Choose how it sits
Leave Display on its own line on for a centered equation. Turn it off to place the equation inside the current line of text.
Insert it
Click Insert, or press Ctrl+Enter (⌘↵ on a Mac).
The quadratic formula is a good first test:
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}Type an equation without the dialog#
If you know the LaTeX already, type it straight into the text. Wrap it in two dollar signs on each side, as in $$\pi r^2$$, and Docs turns it into an inline equation as soon as you type the last dollar sign. A line that holds nothing but LaTeX between three dollar signs on each side, as in $$$E = mc^2$$$, becomes an equation on its own line.
LaTeX you'll use most#
The buttons in the dialog add these pieces. Replace the sample letters with your own values.
| Button | LaTeX | Result |
|---|---|---|
| Fraction | \frac{a}{b} | a over b |
| Power | x^{2} | x squared |
| Subscript | x_{i} | x sub i |
| Root | \sqrt{x} | square root of x |
| Sum | \sum_{i=1}^{n} x_i | sum from 1 to n |
| Integral | \int_{a}^{b} f(x)\,dx | integral from a to b |
| Limit | \lim_{x \to \infty} | limit as x goes to infinity |
| Matrix | \begin{pmatrix} a & b \\ c & d \end{pmatrix} | a 2 × 2 matrix in parentheses |
| Greek | \alpha \beta \gamma \delta \pi \theta | Greek letters |
| Relations | \le \ge \ne \approx \pm \times | ≤ ≥ ≠ ≈ ± × |
To put words inside an equation, wrap them in \text{}, as in \text{profit} = R - C. Otherwise LaTeX sets them as a row of italic variables.
Fix common mistakes#
- Only the first digit is raised.
x^10raises just the 1. Put anything longer than one character in braces:x^{10}. - Part of the equation is red. That part isn't valid LaTeX. Look for a missing closing brace or a misspelled command, such as
\farcinstead of\frac. - A command shows as plain letters. It's missing its backslash.
frac{a}{b}shows as a row of italic letters instead of a fraction. Write\frac{a}{b}. - A lone symbol shows up. For a single character such as ≤ or °, special characters can be quicker than an equation.
Edit, move or delete an equation#
Click an equation to open it in the Edit equation dialog, change the LaTeX and click Update. To move or remove an equation on its own line, hover over it, click its dotted handle and choose Move up, Move down, Duplicate or Delete. An inline equation behaves like a single character: put the cursor right after it and press Backspace to remove it.
Equations in downloads and print#
Choose File → Download to save a copy. Docs creates every download on your device.
| Format | How equations come out |
|---|---|
| Print and PDF document (.pdf) | Drawn as they look on screen |
| Microsoft Word (.docx) and OpenDocument (.odt) | A picture of each equation, with its LaTeX as the alt text |
| Web page (.html) | Math that web browsers display |
| Markdown (.md) | The LaTeX between dollar signs |
| Plain text (.txt) | The LaTeX source |
A picture in Word can't be edited as a Word equation, so make changes in Docs and download again. Downloaded files aren't encrypted. Keep them somewhere safe, such as Foxcolab Drive. See Export a document from Docs for everything else each format keeps.
Related#
Frequently asked questions
Do I need to know LaTeX to add an equation?
A little helps, but the buttons under the box add the common pieces for you, such as Fraction, Power, Root, Sum and Matrix. Click one, then replace the letters a, b or x with your own values and watch the preview.
Can I edit an equation in Word after I download the document?
No. Word and OpenDocument files get a picture of each equation, with its LaTeX as the picture's alt text. Change the equation in Docs and download the file again.
Why does part of my equation show in red?
That part isn't valid LaTeX, usually because of a missing closing brace or a misspelled command name, such as farc instead of frac. Fix the source in the box and the preview redraws it.
Who can add equations?
The owner and anyone with edit access. The Equation and Inline equation menu items are turned off for people who can only comment or view.
Did this answer your question?
One click, no account needed.
Still need help?
Our support team can take it from here.