# How do I add mathematical notation in the Rich-Text Editor?

If **MathJax** is enabled in the site where you are working, and you enter a properly formatted LaTeX expression in the Rich-Text Editor, the appropriate symbol or formula will be rendered in your published content.

Site administrators can enable **MathJax** by following the steps in the Help article How do I enable and use LaTeX math in my site?

Once **MathJax** is enabled in the site, you can either:

## Enter LaTeX expressions in the editor as text.

Type or paste your LaTeX expression in the editor, surrounding the symbol or formula with **$** to place it inline with other text, or **$$** to place the symbol or formula centered on its own line. Below are a few examples of LaTeX formulas properly formatted for use in the editor.

### Inline LaTeX

Sample LaTeX formulas that would display inline with surrounding text:

$x=\frac{1+y}{1+2z^2}$

$\int_0^\infty e^{-x^2} dx=\frac{\sqrt{\pi}}{2}$

$\sqrt{2} \sin x$, $\sqrt{2}\,\sin x$

## Add LaTeX using the Math button.

The **Math** button allows you to insert a LaTeX symbol or formula in your text and view and modify it within the editor.

### Position your cursor in the editor.

Place your cursor at the position in the editor where you want the symbol or formula to appear.

### Enter the LaTeX expression.

A *Mathematics in TeX* dialog window will pop up. In this window:

- Type or paste your LaTeX expression in the
*Write your TeX here*box. Unlike when entering LaTeX directly in the editor, the symbol or formula should**not**be surrounded by special notation. Here are some sample formulas:

x=\frac{1+y}{1+2z^2}

\int_0^\infty e^{-x^2} dx=\frac{\sqrt{\pi}}{2}

\sqrt{2} \sin x$, $\sqrt{2}\,\sin x

- A preview of the symbol or formula will display.
- Select
**OK**to confirm adding the expression in the editor.

### Edit the formula(s) or symbol(s).

You can use the editor's tools to format or change the expression as follows.