Math & ScienceHow can I make a page break within an align environment?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

How can I make a page break within an align environment?

Post by Mini »

When I'm using \begin{align*} etc if the set of equations to be aligned are too long then the WHOLE environment is displayed on the next page. How can I make it continue on to the next page?

Thanks

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

How can I make a page break within an align environment?

Post by Stefan Kottwitz »

Hi Mini,

you could use

Code: Select all

\allowdisplaybreaks[1]
in your preamble. Instead of 1 you could use 2, 3 or 4 to increase permissiveness. Another command, which you could use within the formula right before \\, is \displaybreak. It also understands an optional argument with values 1, ..., 4.
If you would like to read more: both commands are explained in the amsmath user's guide.

Stefan
LaTeX.org admin
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

Re: align

Post by Mini »

Thanks for that. One more question regarding align.

I've noticed that whenever I used the align environment, it intents it. How would I make it so that it's in alignment with the text on the page?

Thanks again.

EDIT: Another (last) question, whenever I used enumerate and I have the align environment on the first line, the environment starts from the next line. How would I make it so that it starts from the first line (ie. the line with the number on it)?

Thanks again
User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

How can I make a page break within an align environment?

Post by Stefan Kottwitz »

Hi Mini,
Mini wrote:How would I make it so that it's in alignment with the text on the page?
You probably use the fleqn option. Then you may modify the length \mathindent:

Code: Select all

\setlength{\mathindent}{0pt}
Mini wrote:Another (last) question, whenever I used enumerate and I have the align environment on the first line, the environment starts from the next line. How would I make it so that it starts from the first line (ie. the line with the number on it)?
It doesn't have to be the last one. ;-)

Within an enumerate item, you could use the aligned environment instead. For example, with top alignment:

Code: Select all

\item $\begin{aligned}[t] ... \end{aligned}$
aligned works within inline math mode, thus there's no paragraph break.

Stefan
LaTeX.org admin
Post Reply