# Insert a new line in TeXShop

by Mantaray
Tags: insert, line, texshop
 P: 17 I'm having the following problem in TeXShop - how can I put two equations in two separate lines? Thus far I have something like: $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
 P: 313 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) \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 http://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics
 P: 17 Many thanks!

 Related Discussions Calculus & Beyond Homework 18 Math & Science Software 8 Introductory Physics Homework 3 Introductory Physics Homework 1 Forum Feedback & Announcements 0