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

This macro is designed to execute 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/77038471).

> ⚠️ **Limitation with draw.io** 
> ⚠️ 
> ⚠️ The [draw.io](https://marketplace.atlassian.com/apps/1210933/draw-io-diagrams-whiteboards?hosting=cloud&tab=overview) macro does not render mathematical content properly if any of the *LaTeX Math* app macros are present on the same page. This occurs due to the different versions of the MathJax library used by both the apps.

### Parameters

The following table provides you with a description of every parameter in the LaTex Math Editor:

![image](media://f7a9fbc7-3c6d-4e03-9bd6-8e45a3ea0497)

| **Number** | **Parameter Name** | **Description** |
| --- | --- | --- |
| 1 | Syntax | You can enter the syntax in the latex-formatted math in the *Syntax* box, and the preview is generated in the *Equation* box. |
| 2 | Equation | This box displays a preview of the equation you entered in the *Syntax* box.   
You can also directly edit the equation in this box, which is reflected in the *Syntax* box. |
| 3 | Most Used | This section contains the most used formulas from a particular subject/field.   
You can simply click on the required formulas/equations, which will appear on the Syntax and Equation boxes. |
| 4 | Search box | Use the search box to search for any latex commands. |
| 5 | Align left | Align the equation to the left. |
| 6 | Align center | Align the equation to the center. |
| 7 | Align right | Align the equation to the right. |
| 8 | Undo | Reverse the typing action that you made recently. |
| 9 | Redo | Repeat the typing action that you made recently. |
| 10 | Anchor name | Give a name to the equation so you can refer to this equation on different pages using the [LaTeX Math Block Reference](https://appfire.atlassian.net/wiki/spaces/LM/pages/297337025) macro.<br>> ℹ️ - You must specify Anchor to use the equation as a reference on any other page or in the existing page.
> ℹ️ - The Math Block macro supports numbering. When you specify *Anchor*, numbering is enabled.
> ℹ️ - To change parameter configuration, refer to [Configuration](https://appfire.atlassian.net/wiki/spaces/LM/pages/77038461). |
| 11 | Help | This option will direct you to our detailed help documentation. |
| 12 | Save | Click *Save* to insert the macro along with the change you made on your page. |
| 13 | Cancel | Click *Cancel* to 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** where you want to insert an equation.
2. Click the **+** icon and search for the *LaTeX Math Block* macro.

![image](media://f3e30c63-e7cc-42d2-baab-4676101f8305)

Alternatively, type* ****{ latex ***in your page to display a list of LaTex macro suggestions. You can select the *LaTeX Math Block* macro.

![image](media://cf422fdd-9d0a-47a2-8d2b-343cbebc63a5)

3. Select *LaTeX Math Block *from the list. The **LaTeX Math Block Macro*** *window is displayed.
4. Type the syntax in the LaTex formatted math in the Syntax box. For more information, see the [Parameters](https://appfire.atlassian.net/wiki/spaces/~7120203c8eea836c1748a591c0e3f897f706a6/pages/592773925) section.
5. Click **Save/Insert**.

### Editing LaTeX Math Block Macro

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

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

![image](media://f41d538a-cc3f-44a3-aef5-b4686e078027)

1. Select the block and click **Edit**. The *LaTeX Math Block Macro *window is displayed.
2. You can change any of the parameters as required and then click the **Save **button.

![You can change any of the parameters as required and then click the Save button](media://303c6c95-227b-4c58-b3ae-d03e3fc21f6b)

### Deleting LaTeX Math Block Macro

To delete a *LaTeX Math Block*, select the block and click the **Remove** button.

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

![image](media://f58cf23d-1c53-4d39-a60b-cad6c494b340)