Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a problem. I have several large equations within the text. And when LaTeX does not manage to put the equation on the same page and moves it to the next one, he spreads the paragraphs of the text in the first page. How could I prevent this? I know about \pagebreak and \newpage, but I do not want to force the \newpage, as the text may move (if I add something later or so on) and the pagebreaks may not be valid. I would like to make LaTeX not to spread the paragraphs over a page automatically. Is it possible?

I tried to make an example:

\documentclass[a4paper,12pt,twoside]{book}
\usepackage{amsmath}
\begin{document}

LaLaLa\\\

LaLaLa\\\

LaLaLa\\\

LaLaLa\\\

\begin{eqnarray}
123&+&123 \\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
\end{eqnarray}

LaLaLa\\\

LaLaLa\\\

\begin{eqnarray}
123&+&123 \\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
123&+&123 \nonumber\\\
\end{eqnarray}

\end{document}
share|improve this question
    
Have a look at the mathmode => \allowdisplaybreaks. –  Marco Daniel Nov 7 '11 at 16:08
1  
2  
You may consider switching from eqnarray to align \eqnarray vs. \align. –  Marco Nov 7 '11 at 16:13

1 Answer 1

up vote 16 down vote accepted

You can prevent this behaviour with using \raggedbottom.

By default the book class uses \flushbottom which fixes the bottom of the text and inserts variable space inbetween the paragraphs.

share|improve this answer
    
Thank you, that works! –  Natalia Nov 7 '11 at 16:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.