authorea.com/15913

How To Insert Mathematical Equations (With or Without LaTeX)

Authorea supports many input formats. Most users will write using our default rich text editor and can take advantage of our rich equation editor (see

Easy equation editor, below). But if you are writing a very technical paper with a lot of mathematical notation, you might want to use LaTeX or Markdown as your input format (seeAdvanced Equation editor, below). Find out how to easily switch between input formats.

Users writing in rich text can take advantage of our easy-to-use equation editor. When writing, click on the equation button in the toolbar (\(x^2\)) and type in your equation, like in the image below. Upon clicking “Insert” your formula will appear in its full glory, as \(H=-\int p\left(x+y\right)^2\)

If you are (or want to be) a power user, you should know that in the background, equations in Authorea are written using the LaTeX syntax. LaTeX is a powerful language to write mathematics. If you want to use the full power of LaTeX, you should write articles using LaTeX as your default format. Here is a simple equation: \[\label{eq:simple} 1+2=3\]

We wrote it using the following LaTeX syntax: ```
\begin{equation}
1+2=3
\end{equation}
```

Here’s another equation, a bit more complex: \[\label{eqn:schwarzschild1} \nabla_{\rm rad} = \frac{3F\kappa}{4acg}\frac{P}{T^4} > \nabla_{\rm ad}.\]

Which was written using: ```
\begin{equation}
\nabla_{\rm rad} = \frac{3F\kappa}{4acg}\frac{P}{T^4} > \nabla_{\rm ad}.
\end{equation}
```

I can refer to the first equation as Eq. \ref{eq:simple} using a label. And now I will refer to the second simpler identity as Eq. \ref{eqn:schwarzschild1}.

In Authorea we require labeling of equations to be in the following form: ```
\begin{equation}
\label{eqn:equation-name}
1+2=3
\end{equation}
```

Note the label format **eqn:**equation-name. In order to refer to this equation we would write in the text: `\ref{eqn:equation-name}`

.

Authorea keeps track of correctly numbering the labels, even after equations are moved around in the text (you might need to refresh the page though).

Bear in mind that if you want to write an inline equation, you can do so by enclosing the LaTeX math inside two dollar signs `$...$`

. It will be displayed inline such as \(e=mc^2\)

## Share on Social Media