In Moodle forums, LaTex formulas can be embedded as separate formulas or inline formulas.
For this purpose, the „Mathematics mode“ has to be activated. This can occur by doing the following:
Creation of an inline formula: write a $ sign before and after the formula.
Creation of a formula displayed in a separate line: write $$ before and after the formula.