...
The following steps demonstrate how to create Create a math algorithm using the LaTeX Math Block macro and LaTeX Math Block Reference macro features:
1️⃣  Step 1Create an equation Navigate to the project page and click edit. Go to the content where you need to insert the formula. Type ‘/' and search for the LaTeX Math Block macro or use the '+’ option in the main toolbar and search for the LaTeX Math Block macro. Select the LaTeX Math Block macro. Type the equation in LaTeX formatted math. A preview is generated. Specify an anchor. By specifying the anchor you can refer equation on a different page or the same page. Click Insert.
Note 

Specify the right names for each of the anchor that is created across the page so that you can reference them on a different page or the same page. 
 

2️⃣  Step 2Follow step one. Create algorithm formulas in as many steps as you want.  

3️⃣  Step 3Link the equation Add the LaTeX Math Block Reference macros to refer to the formula on the different page(s): Navigate to the location where you want to refer to the formula. Type ‘/' and searchforthe LaTeX Math Block Reference macro or use the '+’ option in the editor’s main toolbar and search for the LaTeX Math Block Reference macro. Select the LaTeX Math Block Reference macro. Specify the anchor of the equation that you mentioned earlier in step one.
You must remember the anchor of the equation. Make sure you mention the relevant anchor name so you can refer to them whenever required.Select the Confluence page. In this example, we refer to the formula from the same page, hence we leave the parameter blank. The reference link is automatically created.
 

4️⃣  Step 4Follow step three. Link the formulas in as many locations as you want.  
...