views:

333

answers:

6

I want to manually break a line inside $$:

$$something something <breakline> something else$$

I tried "//", "\newline", and "\linebreak[]" but none work. Ideas?

A: 

You could use an eqnarray* instead.

Brian
sorry, don't understand how you're suggesting to use this. Can you add an example.
Guy
Avoid eqnarray! http://www.tug.org/pracjourn/2006-4/madsen/
las3rjock
+4  A: 

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.)

Seth Johnson
(After loading amsmath, of course.)
Will Robertson
A: 

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.

Dima
this doesn't work, and it adds a redundant (1) at the side of the page. Thanks
Guy
A: 

The \newline command can be used only in paragraph mode.

Try \\* (start a new line but not a new paragraph.)

source

jbochi
this doesn't work..
Guy
+2  A: 

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.

Rob Hyndman
+1  A: 
Norman Ramsey