Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!funic!santra!ngs!news From: pnr@ngs.fi (Pekka Nikander) Newsgroups: comp.text.tex Subject: Re: How do I prevent a page break at the beginning of a list in LaTeX? Message-ID: Date: 7 Dec 90 14:51:58 GMT References: <1990Dec7.033946.8347@csrd.uiuc.edu> Sender: news@ngs.fi (The news system) Distribution: comp Organization: Nixu Oy, Helsinki, Finland Lines: 30 In-reply-to: eijkhout@s41.csrd.uiuc.edu's message of 7 Dec 90 03:39:46 GMT In article <1990Dec7.033946.8347@csrd.uiuc.edu> eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) writes: >>The subject says it all. >>What do I do wrong? > Nothing. This is one of those cases where Lamport's macros > are quite strong, and overrule much everything that you try. > What happens is that the list environment places a penalty > \@beginparpenalty. Therefore, setting this to a high value > should do it. Thanks! That directed me the right way, I found the right place in the latex code. Now, if I want to prevent the page break only in some places (not everywhere), there seems to be another way: to place \@nobreaktrue just before the beginning of list. If \@nobreak is true, the penalty is not added but \@nbitem is executed. \@nbitem does not seem to be used anywhere else, so I think I can redifine it if I wish. In standard LaTeX \@nobreaktrue is only called after section and chapter headings. So, I went on and defined in own.sty a new macro: \def\nopgbrk{\@nobreaktrue} Thanks again! -- Pekka Nikander Internet: pnr@ngs.fi -or- Finnish Unix systems User Group (FUUG) Pekka.Nikander@ngs.fi Helsinki Unixversity of Technology