[OS X TeX] Avoiding page breaks

David Watson dewatson at mac.com
Mon Apr 14 12:06:43 EDT 2008


I think that your adding the \par is going to make that happen  
sometimes, you might also try replacing the center command with a  
{ \centering ... } declaration instead, which should prevent you from  
having to use the \vspace{-2 mm} as well.

On Apr 14, 2008, at 10:46 AM, Toke Lindegaard Knudsen wrote:

> 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
>
>
> -------------------------- Helpful Info --------------------------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> List Archive: http://tug.org/pipermail/macostex-archives/
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>




More information about the MacOSX-TeX mailing list