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

Please help Alignment of very very long equations in latex

  1. Apr 3, 2013 #1
    Please help!! Alignment of very very long equations in latex

    Hi all,

    I need to type very long equations in LATEX.

    \begin{equation} x = x'' + y'' + blah blah blah + z'' + blah ...\end {equation}

    When I compile and create the pdf , the equations(the long ones) run into the edge of the page and beyond.

    I want the RHS to start in the
     
  2. jcsd
  3. Jul 1, 2013 #2
    You should use "eqnarray" instead of "equation". Eg.
    \begin{eqnarray}
    blah blah blah 1 \nonumber\\
    blah blah blah 2 \nonumber\\
    ...
    blah blah blah end
    \end{eqnarray}
     
  4. Jul 2, 2013 #3
    I prefer using "align" for most things. While I'm not as fanatical as some, align is just more consistent and generally looks nicer. (Although I'm not entirely happy about the lack of space after the + in the second row on the board.)

    [tex]\begin{align}
    x &= x'' + blah blah \nonumber\\
    &+ y''+ blah blah
    \end{align}[/tex]
     
  5. Jul 9, 2013 #4

    wle

    User Avatar

    I think the recommendation for multi-line equations nowadays is to use the multline environment where it works, and use the IEEEeqnarray environment (provided by the IEEEtrantools package) for everything else. IEEEeqnarray is an environment for the display of aligned equations that's more flexible than either align or eqnarray, without the formatting problems of the eqnarray environment.

    The Not So Short Introduction to LaTeX2e recommends IEEEeqnarray this way in its math section as of a couple of years ago. There's also a more detailed overview available here.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Please help Alignment of very very long equations in latex
Loading...