Latex: how to break a line inside $$

Guy picture Guy · Dec 23, 2009 · Viewed 51.5k times · Source

I want to manually break a line inside $$:

$$something something <breakline> something else$$

I tried \\, \newline, and \linebreak but none work. Ideas?

Answer

Rob Hyndman picture Rob Hyndman · Dec 23, 2009

A couple of people have suggested eqnarray which will work, but a better approach is the align environment in the amsmath package.

\begin{align*}
something \\
something else
\end{align*}

If you want the two parts aligned in some way, use an & as described in the amsmath documentation.