Math & ScienceIs it possible to break lines in »align« environment?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Yue
Posts: 30
Joined: Sat May 08, 2010 9:58 pm

Is it possible to break lines in »align« environment?

Post by Yue »

Suppose I have a very long expression under a sum sign, how can I change lines so that it can be on the page?

If I have something like

Code: Select all

\begin{align}
x=\sum_{k}{ \left[ a + b + c + d + e    \right] }
\end{align}
can I somehow make a line change after b? I tried this, but this does not work:

Code: Select all

\begin{align}
x&=\sum_{k}{ \left[ a + b \\
 &+ c + d + e    \right] }
\end{align}
Is this possible at all?
Last edited by Yue on Tue Jul 06, 2010 3:55 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Is it possible to break lines in »align« environment?

Post by localghost »

Yue wrote:Suppose I have a very long expression under a sum sign, how can I change lines so that it can be on the page? [...]
I don't see a long expression as limit under the sum sign, only a single character. And behind there is a sum as usual. So you should clarify where you exactly want to have a line break.

Your example doesn't work because you need to have always a complete pair of adjusted delimiters. Invisible delimiters can be typeset by using a period instead of the delimiter symbol.

Code: Select all

\left[ \right.
\left. \right]
For some useful tips you can take a look at the »Math mode« document.


Thorsten
Post Reply