Vertically Center title page : Article

How can I vertically center the text on a title page ?

My MWE :

\documentclass[]{article}
\title{Project Title}
\date{2016-31-01}
\author{Author Name}
\begin{document}
\pagenumbering{gobble}
\maketitle
\end{document}

• Sorry to reopen this but is there a way to do this while also centering an abstract below the title? Jan 16 at 16:20

You can do that with the titling package:

\documentclass[]{article}
\title{Project Title}
\date{2016-31-01}
\author{Author Name}
\usepackage[showframe]{geometry}

\usepackage{titling}
\renewcommand\maketitlehooka{\null\mbox{}\vfill}
\renewcommand\maketitlehookd{\vfill\null}

\begin{document}

\begin{titlingpage}
\maketitle
\end{titlingpage}

\end{document}


• Thanks, this worked just fine, although why was the graphicx package used ? Jan 31, 2016 at 22:59
• Oh! For nothing. I started with an existing preamble, and didn't notice I had forgotten to remove it. There's also a spurious amsymb. It's removed from the code now. Jan 31, 2016 at 23:02
• So then I wouldn't need these lines as well right ? \includegraphics[width=4cm]{sendak.jpg} \vfill PUBLISHING HOUSE} Jan 31, 2016 at 23:04
• Good gracious! One more forgotten.. You can safely remove it (unless you want some funny effect…) Jan 31, 2016 at 23:09
• I don't understand the mess in the code I posted. I guessed it's a problem with my clipboard manager. Please see the corrected code, which is very short. Jan 31, 2016 at 23:14

I know some time has passed, but there is a simpler solution. You just need to use "titlepage" in the documentclass:

\documentclass[titlepage]{article}

\begin{document} \
\begin{titlepage} \
\title{test} \
\author{testauthor} \
\maketitle \
\end{titlepage} \
\end{document}

• what are all the \  for? Jan 16 at 16:24