# Equations with LaTeX

Mathematical equations may be created using LaTeX notation.

While editing a chapter, select Insert > LaTeX Equation (Block) . In the resulting box, type your equation between the double-dollar signs.

You can continue to edit the formula in the editor (provided that you do not remove the double-$ symbols). When saved, the example equation will render like this:

Here is a more sophisticated example:

Which will render like this:

## Inline Equations

Equations may be typed directly into text, such as \(E=mc^2\), by placing them within slash parentheses. You can also insert an inline equation by right-clicking and choosing Insert > LaTeX Equation (Inline).

## Multi-Line Equations

For multi-line equations, you must encapsulate your equation in a \displaylines{} function and separate each line with a double-slash:

If you need assistance writing LaTeX equations, there are many online tools that can help you do this such as the Online LaTeX Equation Editor.

All rendering is performed courtesy of MathJax and CodeDogs.

**CC BY:** This work is released under a CC BY license, which means that
you are free to do with it as you please as long as you properly
attribute it.