---
title: "How to write LaTeX"
canonical: "https://support.appfire.com/space/LM/77038300/How%20to%20write%20LaTeX"
format: markdown
---
> Macro (aura-html)

LaTeX's math mode makes it simple to write arithmetic in plain text. To enter math mode in LaTeX, you must use one of several commands:

> For example:
> 
> "$$ E = mc2 $$"

The LaTeX Math macro handles this for you. You only need to enter the math; the equation is rendered automatically.

> ℹ️ For more information, see [https://en.wikibooks.org/wiki/LaTeX/Mathematics](https://en.wikibooks.org/wiki/LaTeX/Mathematics) , [https://www.overleaf.com/learn](https://www.overleaf.com/learn) .

To help you started, here are a few LaTeX math examples.

| LaTeX | Output |
| --- | --- |
| ```
E = mc^2
``` | > Macro (mathinline) |
| ```
\pi = \frac c d
``` | > Macro (mathinline) |
| ```
\frac{a + b}{2}
``` | > Macro (mathinline) |
| ```
e = \lim_{x\to\infty} \left(1+\dfrac{1}{n}\right)^n
``` | > Macro (mathinline) |
| ```
\begin{matrix}
a & b & c \\
d & e & f \\
g & h & i
\end{matrix}
``` | > Macro (mathinline) |
| ```
\begin{align*}
 f(x) &= (x+a)(x+b) \\
      &= x^2 + (a+b)x + ab
\end{align*}
``` | > Macro (mathinline) |