Insert a new line in TeXShop

by Mantaray
Tags: insert, line, texshop
Mantaray is offline
Nov21-10, 04:27 PM
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
Phys.Org News Partner Science news on
Cougars' diverse diet helped them survive the Pleistocene mass extinction
Cyber risks can cause disruption on scale of 2008 crisis, study says
Mantis shrimp stronger than airplanes
Simon_Tyler is offline
Nov21-10, 06:39 PM
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)
 p_y &= s \cos \alpha \\ 
 p_x &= s \sin \alpha
where the ampersands (&) are alignment markers.
This produces
p_y &= s \cos \alpha \\
p_x &= s \sin \alpha

For more details see
Mantaray is offline
Nov22-10, 08:49 AM
P: 17
Many thanks!

Register to reply

Related Discussions
How do you insert a break using latex??? Calculus & Beyond Homework 18
How do I insert an image on a LaTex doc? Math & Science Software 8
Insert Dielectric Introductory Physics Homework 3
how do you insert equations on the forum Introductory Physics Homework 1
insert image Forum Feedback & Announcements 0