Make an unbreakable block in TeX
A quick test reveals thatminipage
has this behavior, too.
\begin{minipage}{3in}
One contiguous chunk.
\end{minipage}
\begin{minipage}{3in}
Another contiguous chunk.
\end{minipage}
You could try:
\begin{samepage}
This is the first paragraph. This is the first paragraph.
This is the first paragraph. This is the first paragraph.
\nopagebreak
This the second. This the second. This the second.
This the second. This the second. This the second.
This the second. This the second.
\end{samepage}
samepage
prevents LaTeX from pagebreaking within one paragraph, i.e. within the samepage
environment, pagebreaks are only between paragraphs. Thus, you need nopagebreak
as well, to prevent LaTeX from pagebreaking between two paragraphs.