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

Cut of euations in Latex

  1. May 24, 2009 #1

    I got a very long equation that I´m writing in Latex, it is so long that the equation reference can´t fit on the same line.

    How do I write to cut the equation so it continues on the next line?

  2. jcsd
  3. May 24, 2009 #2


    User Avatar
    Staff Emeritus
    Science Advisor

    Use http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-223.html [Broken].
    Last edited by a moderator: May 4, 2017
  4. May 25, 2009 #3
    http://www.ams.org/tex/amslatex.html" [Broken] for more information.
    Last edited by a moderator: May 4, 2017
  5. May 26, 2009 #4


    User Avatar
    Science Advisor

    Like lars, I prefer to use the split environment. Using it, it looks something like this
    Code (Text):

    x &= start of long equation \\
    & second half of long equation
    The two backslashes indicate the end of the line, and the ampersands on each line are aligned underneath each other.
  6. Jun 7, 2009 #5


    User Avatar
    Homework Helper

    The use of eqnarray is no longer suggested, since the spacing leaves much to be desired. as las3rjock noted, there are much better options available.

    One more note: this link is a little dated, but the advice found there is good.

  7. Jun 8, 2009 #6
    Thanks for the help!

    I got a follow up question..

    If I have "\left(" command on the first line of the equation and the closing "\right)" command on the second line it wont work!

    Any tips on how to make it work?
  8. Jun 8, 2009 #7
    Could you be more precise in what wont work???

    If you have a one line equation that you break at some point, why do you use \left( instead of just (???

    I only use the \left( when I have multi line math environment, like a matrix.

  9. Jun 8, 2009 #8
    My equation has one breaking point. At the first line i got the "\left[" command
    and then that line is cut off with \\
    Then on the second line I got "\right]".

    Then when I should quick build my pdf file I get an error message:
    "Missing \right inserted"

    below is my input


    w_{h}^{''}(x) & =2 \lambda^{2} \left[ cosh \lambda x (E cos \\
    \lambda x - D sin \lambda x ) + sinh \lambda x (B cos \lambda x - A sin \lambda x )\right] \label{winkler_homo8910} \\


    I hope I made it more clear ?
  10. Jun 8, 2009 #9


    User Avatar
    Science Advisor

    There was JUST a post that addressed this. Basically each individual line in latex needs both a left and a right. In order to resolve this with multi-line equations, you use the dummy \left. and \right. constructs. Basically these act as ghost braces to end the current one.
    Code (Text):

    x =& \left[ the start of the equation \right. \\
    \left. &second half of the equation \right]
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook