I want to make template for texts of different length with minipage having maximum height of 62 mm. If text isn't very long, minipage must have its natural height. Is it a way to do it?
\documentclass{book}
\usepackage{adjustbox}
\usepackage{lipsum}
\pagenumbering{gobble}
\begin{document}
Foo
\vfill
\noindent\adjustbox{center,fbox}{
\begin{minipage}[t][62mm][t]{\textwidth}
\lipsum
\end{minipage}
}
\newpage
Foo
\vfill
\noindent\adjustbox{center,fbox}{
\begin{minipage}[t][62mm][t]{\textwidth}
Bar
\end{minipage}
}
\end{document}
Best Answer
Maybe this is what you want: