[OS X TeX] Vertical center text alignment
Morten Høgholm
morten.hoegholm at gmail.com
Tue Nov 29 06:32:09 CET 2005
On Tue, 29 Nov 2005 02:01:11 +0100, Herbert Schulz
<herbs at wideopenwest.com> wrote:
> \documentclass{article}
> \title{Put the Title Here}
> \date{}
> \pagestyle{empty}
> \begin{document}
> \maketitle
> \thispagestyle{empty}
> % here's the page
> \pagebreak
Use \newpage if you know you want a new page. \pagebreak is for
encouraging LaTeX to break it there and can lead to warnings.
> \mbox{}% to get into horizontal mode
> \vfill
\vspace*{\fill} also works.
> \begin{center}
> Centered Info
> \end{center}
> \vfill
> \pagebreak
Same here.
> % end of page
> Some more text on the next page.
> \end{document}
>
> and there are probably much less dirty ways of doing it. Note: without
> that \mbox{} the vertical glue would disappear at the top of the page.
Yes, that's why LaTeX has the * version of \vspace where the space
inserted won't get discarded at a page break.
--
Morten
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list