2

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}
4
  • What class are you using? book or report or article?If you use the book class then you only need to use \maketitle.
    – Sigur
    Commented May 14, 2013 at 23:38
  • I'm using article Commented May 14, 2013 at 23:44
  • @GonzaloMedina do you have an example I can see somewhere? I'm still very new at this :) Commented May 14, 2013 at 23:53
  • @blueberryfields, just change the first line of my code below.
    – Sigur
    Commented May 14, 2013 at 23:54

1 Answer 1

3

The code

\documentclass[11pt,a4paper]{book}

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

produces the output

enter image description here

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}.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .