I am trying to have a conditional page break for a section if there is not enough space in the bottom. To be clear, when an new section starts I want to check if there is enough space (25% of the text height) to start a new section. If there is not enough space then I want to start the new section in a new page. I am trying to use needspace with classicthesis style. Still no change in the output. Here is the relevant part of the code
\usepackage{needspace}
\newcommand*{\conditionalBreak}{%
\Needspace{5\baselineskip}
\noindent\section%
}
\begin{document}
\frenchspacing
\raggedbottom
\selectlanguage{american}
\pagenumbering{roman}
\pagestyle{plain}
enough
space?