I want to manually break a line inside $$:
$$something something <breakline> something else$$
I tried "//", "\newline", and "\linebreak[]" but none work. Ideas?
I want to manually break a line inside $$:
$$something something <breakline> something else$$
I tried "//", "\newline", and "\linebreak[]" but none work. Ideas?
Instead of using the TeX-style $$ commands, consider using the align* or gather* environments. Inside those, you can use the line break command \\.
(You will need to load the amsmath package to use those; but if you're doing any math at all, you should be loading that package regardless.)
Ok, \begin{equation}...\end{equation} won't work. But \begin{eqnarray}...\end{eqnarray} should. Also, using an asterisk like this \begin{eqnarray*}...\end{eqnarray*} will suppress the equation numbering.
Alternatively, you can wrap your equation in a table.
The \newline command can be used only in paragraph mode.
Try \\* (start a new line but not a new paragraph.)
A copy 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.