Posts

Showing posts with the label vertical-alignment

Vertically centering a title page

Image
Vertically centering a title page I'm trying to vertically center a title on a custom-sized page with latex. I've written the following code, but for some reason it doesn't center. Could someone please point me to what's wrong with it? Thanks! documentclass{article} setlength{pdfpagewidth}{88.184mm} setlength{pdfpageheight}{113.854mm} usepackage[margin=0.5cm, paperwidth=88.184mm, paperheight=113.854mm]{geometry} title{[[title]]} date{[[date]]} author{[[author]]} begin{document} vspace{fill} maketitle vspace{fill} newpage [[text]] end{document} 4 Answers 4 There are two small bugs in your code. First, if you want the vspace to work at the beginning or end of a page, you should use the starred version ( vspace* ). vspace vspace* This would work, but maketitle is a pretty complicated macro, and if used like in your example, it just puts the title at the second page...