Perhaps the answer is trivial, and I am facing the scenario as part of a larger macro. I faced a situation where I found that \vfill
does not work inside minipage
environment.
The extracted code from the bigger picture can be minimized to the following.
\documentclass{article}
\begin{document}
\begin{minipage}{0.7\textwidth}
As far as the laws of mathematics refer to reality, they are not
certain; and as far as they are certain, they do not refer to
reality.\vfill
Mathematics, rightly viewed, possesses not only truth, but supreme
beauty - a beauty cold and austere, like that of
sculpture.
\end{minipage}
\end{document}
The \vfill
above behaves as if it is not there.
Perhaps the design is such that minipage
s shall remain as mini pages and will not fill up the whole page. But I would like to know the answer.
And while we are on the issue, is there a way I can make \vfill
work in a situation like the above. Use of minipage
in my macro is (almost) unavoidable.
Best Answer
It is the vertical analogue of
compare with
stretchable glue stretches if needed but has a natural length.
\vfill
is\vspace{0pt plus 1fill}
so has a natural length of zero.If you used the optional argument to specify a forced height for your minipage, the
\vfill
would stretch to fill the specified space.