Insert equations in Docs

Insert equations in Docs

4 min read
Desktop
Mobile
more
I. Intro
You can insert LaTeX equations (powered by KaTeX) into a document to render clear and easy-to-read equations. This article provides instructions on how to add equations. For a list of supported functions, see Supported equation functions in Docs.
II. Steps
  1. Open the document and bring up the equation editor using one of the following methods:
  • Enter /eq at the beginning of a line or after a space and press Enter.
  • Enter / at the beginning of a line or after a space, then find and click Equation.
  • Hover over the beginning of a blank line, click the + icon on the left, then find and click Equation.
  • Enter four consecutive "$" symbols in a row anywhere in the document.
  • Note: Add "$$" symbols before and after the text to convert it into an equation (Example: $$A=b+c_{i+j}^2$$). There should be no space between the "$$" symbols and the text.
250px|700px|reset
250px|700px|reset
  1. Enter the equation in the equation editor and press ESC. For more details on writing equations, see Supported equation functions in Docs.
  1. After inserting an equation, you can perform the following actions as needed:
  • Update an equation: Click the equation, edit it in the pop-up box, then press Esc when you're done.
  • Share or comment: Hover over the equation and click the Share Link or Comment icons that appear above.
  • Delete an equation: Select the equation and press Backspace (Windows) or Delete (Mac).
250px|700px|reset
250px|700px|reset
III. FAQs
After I paste an equation enclosed with "$$" symbols, it is displayed as plain text instead of an equation. What should I do?
Press Ctrl + Shift + V (Windows) or Command + Shift + V (Mac) to paste or delete the "$" symbol at the end of the equation, and then re-enter the "$" symbol.
Equations with multiple lines have been automatically numbered. How do I remove the numbering?
You can add \nonumber or \notag at the end of the equation to remove automatic numbering. See example below:
Example 1:
\begin{equation}
\begin{split} a &=b+c\\
&=e+f
\end{split}\nonumber
\end{equation}
Example 2:
\begin{equation}
\begin{split} a &=b+c\\
&=e+f
\end{split}\notag
\end{equation}
How do I enter superscripts or subscripts in an equation?
Enter ^ for superscript and enter _ for subscript. If a superscript or subscript contains multiple characters, such as decimals, two-digit numbers, and negative numbers, they need to be enclosed in "{ }". For example, enter A=b+c_{i+j}^{-2.5} and A=b+c_{i+j}^{12} to get the equations shown in the figure below.
250px|700px|reset
Written by: Lark Help Center
Updated on 2024-11-19
How satisfied are you with this content?
Thank you for your feedback!
Need more help? Please contact Support.
0
rangeDom
rangeDom
rangeDom
rangeDom