New Reply

Insert a new line in TeXShop

 
Share Thread Thread Tools
Nov21-10, 04:27 PM   #1
 

Insert a new line in TeXShop


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:
\[
 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
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Bird's playlist could signal mental strengths and weaknesses
>> Minus environment, patterns still emerge: Computational study tracks E. coli cells' regulatory mechanisms
>> Bacterium uses natural 'thermometer' to trigger diarrheal disease, scientists find
Nov21-10, 06:39 PM   #2
 
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:
\begin{align}
 p_y &= s \cos \alpha \\ 
 p_x &= s \sin \alpha
\end{align}
where the ampersands (&) are alignment markers.
This produces
[tex]\begin{align}
p_y &= s \cos \alpha \\
p_x &= s \sin \alpha
\end{align}[/tex]

For more details see
http://en.wikibooks.org/wiki/LaTeX/Mathematics
and
http://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics
Nov22-10, 08:49 AM   #3
 
Many thanks!
New Reply
Thread Tools


Similar Threads for: Insert a new line in TeXShop
Thread Forum Replies
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