I. Intro

The **Equation** function helps you insert or edit complicated math formulas in a Doc, so you can view them clearly. You can edit formulas with LaTeX syntax, and preview or present formulas in real-time.

*Note:** The formula engine in Docs is KaTeX. **Click here** to learn more about grammatical rules.*II. Steps

Insert formulas

You have 2 methods of using the **Equation **function:

**Step 1**:** **Hover your cursor over the **+ toolbar** and select **Equation** to insert a formula input box.

**Step 2**: Enter matrix into the formula input box. (E.g. \begin{matrix}1&2\\3&4\\ \end{matrix}.)

- You can use the
** $$...$$** syntax to describe a formula to automatically convert the text into the formula format. For example, directly type **$$E=mc^2$$**** **in a doc to insert the function.

Edit formulas

To edit a formula, simply click on the inserted formula. All edits will be shown in your doc in real-time.

Layout and alignment

A formula will be displayed in a single line. Same as aligning texts, you can use the = toolbar to align it to the left, center or right.

III. FAQs

Q: What's LaTex?

A: LaTex is a TeX-based layout system and is often used in math formulas layout with LaTex syntax.

Q: Are there any function examples?

A: Check out the following TeX syntax examples for your reference. You can also click here to learn more supported functions. IV. Related

*Click here** to learn more about functions supported by KaTeX.*