How do I center my title (both horizontally and vertically)?

I'm trying to create a centred title, both horizontally and vertically on the page. I'm rather new to latex - so far, I've tried the code below without success:

\begin{center} \title{Title} \maketitle \end{center} 

Am I required to use special flags to centre the title?

I'm using:

\documentclass[12pt]{article} 

Replay

The code

\documentclass[11pt,a4paper]{book}

\title{title here}
\author{author here}
\date{date here}
\begin{document}
\maketitle
\end{document}

produces the output

How do I center my title (both horizontally and vertically)?

Edit: As pointed out by @Gonzalo Medina, if you want to use the article class, just change the first line of the code to \documentclass[titlepage]{article}.

Category: horizontal alignment Time: 2013-05-14 Views: 1

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.113 (s). 12 q(s)