How do I insert some text in exactly the vertical middle of the remainder of a page?
Something like \vspace{0.5\fill}
The following MWE currently adds the text to the end of the page.
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\lipsum[1-2]
\vfill
\centering{END OF DOCUMENT}
\end{document}
\vfil
instead of\vfill
because TeX insert\vfil
automatically on the end of outputted page.\centering
does not take an argument so the braces in\centering{END OF DOCUMENT}
are not doing anything. (or course as it's the end , it doesn't matter that the rest of the document is centred but it looks odd in the source.