Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Insert a new line in TeXShop

  1. Nov 21, 2010 #1
    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. jcsd
  3. Nov 21, 2010 #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 (Text):
     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
    Last edited: Nov 21, 2010
  4. Nov 22, 2010 #3
    Many thanks!
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Insert a new line in TeXShop
  1. TexWorks or TexShop (Replies: 1)