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

This macro implements the LaTeX equation math mode. The output is displayed on its line with the selected horizontal alignment. 

> ℹ️ To work with *LaTeX Math Block*, 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 image below is marked with a number to help you identify it. 

![Understanding Components Every component in the image below is marked with a number to help you identify it](media://f29b730a-8d09-4554-b6ea-fa493d6d34d6)

The following table describes the components:

| **Number** | **Parameter Name** | **Description** |
| --- | --- | --- |
| 1 | Syntax | This box allows you to enter the syntax in the latex-formatted math and generate the preview in the *Equation* box.<br>![image](media://8ace6755-a13e-4965-83c2-d99b3879e79a) |
| 2 | Equation | This box allows you to view and edit the equation. The same is reflected in the *Syntax* box.<br>![image](media://feb39452-92ee-4acc-a4d5-c56c559b4ece) |
| 3 | Most Used | This section contains the most used formulas from a particular subject. If you require any of the formulas, simply click on it.<br>![image](media://570208e3-d56a-4ba4-9ed8-f8d1102169db) |
| 4 | Search box | This box allows you to search for the latex commands. |
| 5 | Align left | This option aligns the equation to the left. |
| 6 | Align center | This option aligns the equation to the center. |
| 7 | Align right | This option aligns the equation to the right. |
| 8 | Undo | This option will reverse the typing action that you made recently. |
| 9 | Redo | This option will repeat the typing action that you made recently. |
| 10 | Anchor name | An anchor tag within any page connects and references equations on different pages.  
Click the **Anchor** button in the editor or use the keyboard shortcut **Ctrl+K **to** **open the popup. Now, type the anchor name and press **Enter** to save the reference. This reference can now be used with any [LaTeX Math Block Reference](https://appfire.atlassian.net/wiki/spaces/LM/pages/297337025) macro.<br>![This reference can now be used with any LaTeX Math Block Reference macro](media://5a377010-30b4-4151-b7f8-fa4888353d21) |
| 11 | Help | This option will direct you to the documentation. |
| 12 | Insert/Save | This option will insert the macro along with the change you made to your page. |
| 13 | Cancel | This option will close the macro window without saving. |

### Creating LaTeX Math Block Macro

To create a *LaTeX Math Block*, Perform the following steps:

1. Create a new page or** Edit** an existing page where you want to create an equation.
2. Type / or click the + icon on your page.

![image](media://2d1a028f-5eb9-4603-986c-aedfb010229c)

3. Select *LaTeX Math Block* and Click **Insert**. The *LaTeX Math Block 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/297336970/LaTeX+Math+Block+Macro+-+Cloud#Understanding-Components).
5. Click **Insert**.

### Adding Multi-line Equations in the LaTeX Math Block Macro

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

**Syntax:**

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

![image](media://f81e6483-7076-42af-9f87-1d3562d2d7b3)

> ℹ️ 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://de74d59f-8b5a-4330-86a2-6c27836c83c6)

### Editing LaTeX Math Block Macro

To edit a *LaTeX Math Block,* do the following:

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

![image](media://69396a2a-acc8-4542-ba65-badcb636eb23)

1. Click the Edit :edit-pencil: icon. The *LaTeX Math Block Macro *window is displayed.
2. Make the required changes and then click the **Save **button.

### Deleting LaTeX Math Block Macro

To delete a *LaTeX Math Block*, select the block and click the Delete(:delete:) icon. 

![Deleting LaTeX Math Block Macro To delete a LaTeX Math Block , select the block and click the Delete( ) icon](media://69396a2a-acc8-4542-ba65-badcb636eb23)

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