Pagebreaks in an aligned environment.

Rolf Turner rolfturner at posteo.net
Sat Jan 4 23:30:26 CET 2025


On Sat, 4 Jan 2025 01:03:04 +0000
David Carlisle <d.p.carlisle at gmail.com> wrote:

> On Fri, 3 Jan 2025 at 05:07, Rolf Turner <rolfturner at posteo.net>
> wrote:
> 
> >
> >   In order to get the break
> > to come after the third displayed equation, I have to put the
> > \displaybreak command after the *second* equation.  This makes no
> > sense to me.
> >
> > Can anyone explain to me what I am missing?  Or do I just have to
> > say "Them's the breaks"? 🙂️
> >
> 
> your  test file uses \pagebreak (which does not cause a break at all
> here) not \displaybreak

Aaarghhh!  That was clumsy of me.  Sorry 'bout that!

> Your described result presumably means you had
> 
> \documentclass{article}
> \usepackage{amsmath}
> \allowdisplaybreaks
> \begin{document}
> \begin{align*}
> x &= 1 \\
> y &= 2 \\
>  \displaybreak z &= 3 \\
> a &= 4 \\
> b &= 5 \\
> c &= 6 \\
> \end{align*}
> \end{document}
> 
> 
> \displaybreak sets the penalty at the next \\ to force a page break
> if that is possible (and warns if not.)

OK.  I understand the syntax now.  Thanks.

<SNIP>

cheers,

Rolf


-- 
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
         +64-9-373-7599 ext. 89622
Home phone: +64-9-480-4619



More information about the texhax mailing list.