Re: Pagebreaks in an aligned environment.

Rolf Turner <[email protected]>
Newsgroups gmane.comp.tex.texhax
Message-ID <20250105113026.56f85b5f@new-hp>
On Sat, 4 Jan 2025 01:03:04 +0000
David Carlisle <[email protected]> wrote:

> On Fri, 3 Jan 2025 at 05:07, Rolf Turner <[email protected]>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.