# [OS X TeX] Avoiding page breaks

Toke Lindegaard Knudsen toke_knudsen at brown.edu
Mon Apr 14 11:46:46 EDT 2008

Dear all,

I have a perhaps stupid question, but it is something that I have not
been able to solve, and so I am hoping that one of you will have a
hint.

I have defined the following:

\newenvironment{versetxt}[2]
{
\begin{center}$\sim$ {\sc #2} $\sim$\end{center}\vspace{-2 mm}
\par ({#1}) \begin{large}\begin{bf}
}
{
\end{bf}\end{large}\\
}

#1 gives the number of the verse in the Sanskrit text, while #2 gives a
brief description of its contents.  Then the translation follows.

The problem is this:  Sometimes the description ends up at the bottom
of a page while the translation begins on the next page.  This looks
rather silly and I would like for that to not happen.

I have tried to insert \nopagebreak and \samepage at various place, but
without success.

Would any of you have an idea about how I can avoid a page break
between the description and the translation?

With many, many thanks!

Sincerely,
Toke