---
title: "LaTeX Unit Macro - (Cloud)"
canonical: "https://support.appfire.com/space/LM/297337215/LaTeX%20Unit%20Macro%20-%20(Cloud)"
format: markdown
---
> Macro (aura-html)

This macro implements the **LaTeX Unit** mode. Formulas or symbols that are part of a paragraph are written in Inline math mode (e.g., "\tau"). 

> ℹ️ To work with *LaTeX Unit*, you must install the *LaTeX Math* application. For more information, see [Installation](https://appfire.atlassian.net/wiki/spaces/LM/pages/77038624).

### Understanding Components

Every component in the below image is marked with a number to help you identify it. 

![image](media://e368a7e9-fbcf-407a-a676-6cf9c9526d98)

The following table describes the components:

| **Number** | **Component** | **Description** |
| --- | --- | --- |
| 1 | Syntax | This box allows you to enter the syntax in the latex-formatted math and the preview is generated in the *Equation* box.<br>![image](media://d044b4f4-6caa-4fab-aeb8-20ad3290a9ef) |
| 2 | Equation | This box allows you to view the equation and you can edit the equation. The same is reflected in the *Syntax* box.<br>![image](media://13e5de69-cd95-49d1-9dca-ef583806375c) |
| 3 | Most Used | This section contains the most used formulas from a particular subject. If you may require any of the formulas simply click on it.<br>![If you may require any of the formulas simply click on it](media://173f1bd3-05fe-4fcb-8ab2-2f23f9cccbd2) |
| 4 | Search box | This box allows you to search for the latex commands. |
| 5 | Undo | This option will reverse the typing action that you made recently. |
| 6 | Redo | This option will repeat the typing action that you made recently. |
| 7 | Help | This option will direct you to the documentation. |
| 8 | Insert/Save | This option will insert the macro along with the change you made to your page. |
| 9 | Cancel | This option will close the macro window without saving. |

### Creating LaTeX Unit Macro

To create a *LaTeX Unit*, Perform the following steps:

1. Create a new page or **Edit** the page where you want to create an equation.

2. Type / or click the + icon and search for the *LaTeX Unit* macro.

![image](media://1fe87a1b-a5f7-451b-8c05-fab93cff3d33)

3. Select *LaTeX Unit* and Click **Insert**. The *Insert* '*LaTeX Unit' Macro *window is displayed.

4. Type the syntax in the latex formatted math. For more information, see [Understanding Components](https://appfire.atlassian.net/wiki/spaces/LM/pages/297337215/LaTeX+Unit+Macro+-+Cloud#Understanding-Components).

5. Click the** Insert **button.

### Adding Multi-line Equations in the LaTeX Unit Macro

In LaTeX formats equations, the double backslash command \\ is used to create a new line or initiate a line break. 

```
<equation 1> \\
<equation 2> \\
<equation 3
```

![image](media://a36cdbe4-0535-4ae9-8ba3-41f5d8490c5c)

> ℹ️ Note:  
> ℹ️ The `\\` command is used to create a new line and automatically aligns equations to the right. To have equations left-aligned, place the `&` symbol before each equation when entering them.

![To have equations left-aligned, place the & symbol before each equation when entering them](media://cf9a6f06-6a77-4dbb-abd2-12332e65fe62)

### Editing LaTeX Unit Macro

To edit a *LaTeX Unit, *perform the following:

> ℹ️ You must be in the **Edit** mode to edit a macro.

![image](media://6ef26f13-7239-4662-b898-8e5732b1c528)

1. Click the :edit-pencil: icon. The **Edit LaTeX Unit*** Macro *window is displayed.

2. Make the required changes and then click the **Save **button.

### Deleting LaTeX Unit Macro

To delete a *LaTeX Unit*, select the macro and click the :delete: icon. 

![Deleting LaTeX Unit Macro To delete a LaTeX Unit , select the macro and click the icon](media://6ef26f13-7239-4662-b898-8e5732b1c528)

> ℹ️ You must be in the **Edit** mode to delete a macro.