# Vertically center text on a page

How do I vertically center the text on a page?

-

The memoir document class provides, among a lot of other excellent things, the vplace environment.

Try:

\begin{vplace}[0.7]
This is some text to be centred vertically.
\end{vplace}


[0.7] is an optional parameter specifying the ratio of space above to space below. The default value is [1].

-
This is great! I am using memoir, so I prefer this solution. –  Neil G Aug 27 '10 at 7:05
Fantastic! I think we ought to start a memoir fanclub... –  Brent.Longborough Aug 27 '10 at 11:49
I haven't tried your code above. But I am not sure your code will produce an exact vertically-centered object since I notice your code does not specify \topskip0pt right before \begin{vplace}[1]. For more details, see tex.stackexchange.com/questions/7286/… –  xport Dec 23 '10 at 2:30
@JoeCorneli Thanks for your suggested edit. I've left the brackets, simply to emphasise that it's an optional parameter, and reworded to clarify the rest. –  Brent.Longborough Mar 7 '13 at 9:52

This is what I found:

\begin{document}
\topskip0pt
\vspace*{\fill}
text
\vspace*{\fill}
%
\end{document}

-
Your code above does NOT produce an exactly vertically centered object. You need to put \topskip0pt before the first \vspace*{\fill} to correct your code. For the details, see tex.stackexchange.com/questions/7286/… –  xport Dec 23 '10 at 2:24