How to Split Long Equations Across Pages in LaTeX
By default, LaTeX treats display math environments as unbreakable blocks — an align environment with ten equations will never split across a page boundary, often leaving large awkward gaps at the bottom of pages. For long derivations and proofs, you need to explicitly allow page breaks within equation groups. Bibby AI handles page flow intelligently and lets you preview exact page breaks in real time, unlike Overleaf where you have to recompile to see pagination effects.
Using \allowdisplaybreaks
The simplest fix: place \allowdisplaybreaks in your preamble to let LaTeX break any display math across pages. Use the optional penalty argument to control how eagerly it breaks:
\documentclass{article}
\usepackage{amsmath}
% Allow page breaks in ALL display math (globally)
\allowdisplaybreaks
% Or with penalty: [1] = reluctant, [4] = eager
% \allowdisplaybreaks[1]
\begin{document}
\begin{align}
a_1 &= b_1 + c_1 \\
a_2 &= b_2 + c_2 \\
a_3 &= b_3 + c_3 \\
% ... many more lines ...
a_{10} &= b_{10} + c_{10}
\end{align}
\end{document}Controlling Breaks Line by Line
For fine-grained control, use \\* to prevent a break after a specific line, or \displaybreak to force a break at a specific point:
\allowdisplaybreaks
\begin{align}
f(x) &= a_0 + a_1 x \\* % No break here (keep with next line)
&\quad + a_2 x^2 \\ % Normal break allowed
&\quad + a_3 x^3 \\ % Normal break allowed
&= g(x) \displaybreak[4] \\ % Force a page break here
h(x) &= b_0 + b_1 x \\* % No break here
&\quad + b_2 x^2
\end{align}Local allowdisplaybreaks for Specific Environments
If you don't want global breaks, wrap \allowdisplaybreaks in a group or use it inside a specific environment:
% Only allow breaks in this specific align block
\begingroup
\allowdisplaybreaks
\begin{align}
E_1 &= \frac{p_1^2}{2m} + V(r_1) \\
E_2 &= \frac{p_2^2}{2m} + V(r_2) \\
E_3 &= \frac{p_3^2}{2m} + V(r_3) \\
E_{\text{total}} &= E_1 + E_2 + E_3
\end{align}
\endgroup
% This align block will NOT break across pages
\begin{align}
x &= y + z \\
a &= b + c
\end{align}💡 Tips
- •\allowdisplaybreaks takes an optional argument [0]–[4]: 0 means breaks are discouraged, 4 means breaks are strongly encouraged.
- •Use \\* (backslash-backslash-star) to prevent page breaks between lines that logically belong together.
- •\displaybreak[0] at a specific line allows a break there but doesn't encourage it — useful for 'ok if needed' points.
- •Bibby AI shows page break positions in the live preview, so you can strategically place \displaybreak commands.
Try This in Bibby AI
Write LaTeX faster with AI auto-complete and instant compilation.
Start Writing Free