I am writing report and now improving look and feel of the report. I found that last section appears in last of page and its remaininng part on next page which does not look good.

How can i move sectinon2 and its content to next page dynamically.
I am writing report and now improving look and feel of the report. I found that last section appears in last of page and its remaininng part on next page which does not look good.

How can i move sectinon2 and its content to next page dynamically.
The needspace package provides a means to conditionally insert content based on the amount of space left on a page. In this instance, you might be after a setup like the following:
\documentclass{article}
\usepackage{needspace,lipsum}% http://ctan.org/pkg/{needspace,lipsum}
\begin{document}
\section{First section}\lipsum[1-4]
\needspace{6\baselineskip}% <--------- Need 6 lines of text, or insert a page break
\section{Another section}\lipsum[1-4]
\end{document}
Comment out the line containing \needspace in order to see the difference. You can vary this length to suit your needs, depending on the amount of text that follow \section{Another section}, to avoid seeing widowed lines of text.
:-)– hpesoj626 Jan 26 '13 at 15:37