TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there an equivalent of \hfill for vertical spacing?

share|improve this question
up vote 9 down vote accepted

Did you try \vfill?

Sometimes you need to put in "invisible" objects to get it to work if there is only one thing on the page:

\documentclass{minimal}

\begin{document}

% An invisible object that \vfill can push to the top of the page
\hbox{}\vfill

% Your content
blah blah blah

% Another object that \vfill can push to the bottom of the page
\vfill\hbox{}

\end{document}
share|improve this answer
\documentclass{minimal}

\begin{document}
\vspace*{\fill}% the star version for the beginning of a page

Without a star the command is ignored

\vfill% an abbreviation for \vspace{\fill}
bar

\newpage
baz
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.