# [texhax] Re:\noalign{\nobreak} seems not work!

Ian Collier imc at comlab.ox.ac.uk
Mon Sep 1 23:24:37 CEST 2003

romeomedina at libero.it wrote:
>Ian Collier wrote:
>|I suppose if you want to prevent a line-break only at some places in
>|your alignment then you could hack it with something like:

>|\def\disallowbreak{\global\interdisplaylinepenalty=10000 }
>|\def\allowbreak{\global\interdisplaylinepenalty=100 }

>Your kind suggestion did work, actually, by typing
>\global\interdisplaylinepenalty=10000'
>just before \cr, at the end of the line after which I wanted to prevent the
>page break;
>but with a strange (for me) undesired side effect:
>the line was moved away onto the next page, and at its place a big empty
>space remained,
>without the current page was streched at all.

I don't know why that would be, but I suspect it depends on what was on
the page before the page break.  (Did you also get a message about
"underfull \vbox"?)  If it's just lots of lines of table then you'll
need to add some glue so that it can be stretched out.
--
---- Ian Collier : imc at comlab.ox.ac.uk : WWW page below
------ http://users.comlab.ox.ac.uk/ian.collier/imc.shtml
`