# Insert a new line in TeXShop

1. Nov 21, 2010

### Mantaray

I'm having the following problem in TeXShop - how can I put two equations in two separate lines?
Thus far I have something like:

Code (Text):
$p_y = s \cos \alpha \\ p_x = s \sin \alpha$
But I still get the two on the same line..
Help would be very much appreciated

2. Nov 21, 2010

### Simon_Tyler

You need to use one of the multiline environments.
The most basic of which is array (used inside )
The best is probably (as long as you're using the amsmath package)
Code (Text):
\begin{align}
p_y &= s \cos \alpha \\
p_x &= s \sin \alpha
\end{align}
where the ampersands (&) are alignment markers.
This produces
\begin{align} p_y &= s \cos \alpha \\ p_x &= s \sin \alpha \end{align}

For more details see
http://en.wikibooks.org/wiki/LaTeX/Mathematics
and