# [texhax] nopagebreak not working

Paul Tremblay phthenry at iglou.com
Sat Apr 8 20:06:35 CEST 2006

The \nopagebreak is not working for me in the memoir class when I have
the following code:

% start example

\vspace{18pt}
\fontsize{18}{23}\selectfont
}{0pt}\bfseries
}{\end{sloppypar}}
2.8. Product Manufacturers and Modernize Main Street
\par
\nopagebreak[4]
\normalsize

\newenvironment{id2252200}{\flushright }{}
\begin{id2252200}

It is only natural that the buying public should expect our stores
and shops to be as inviting, interesting and up-to-date as the
products on the shelves.
\par

\end{id2252200}

% end of example

What I am trying to do is keep my heading (title) together with the
text that comes after. What commands are used when LaTeX uses the
\section command to achive no page breaking, and also to ensure that
there is a good amount of text will be kept with the title?

Thanks

Paul

--

************************
*Paul Tremblay         *
*phthenry at iglou.com    *
************************