Force a maximum number of pages in LaTeX

latex

Solution

No. LaTeX optimizes text at page level but not document level. So there is no way to automatically squeeze the text into a maximum number of pages. However, there are lots of ways to squeeze things in order to reduce the number of pages. See this blog post on "Squeezing space with LaTeX".

Problem

Is there a way to give LaTeX a hint on the maximum number of pages I would like the document to have, so LaTeX at least tries to not exceed this maximum if possible?

Original source