1 of 5

# How can I limit the maximum number of lines in a page?

My university's masters thesis template which I have to follow, limits the maximum number lines per page to 25 lines.

I used setspace package but it didn't help me.

\documentclass[12pt,a4paper]{book}
\usepackage{xcolor}
\usepackage{lipsum}
\usepackage{setspace}

\renewcommand{\baselinestretch}{1.5}

\begin{document}
\lipsum[1]
{\setstretch{1.0}\color{blue}
\lipsum[2]
}
\lipsum[3]
\end{document}