Possible Duplicate:
How can I get \maketitle to create a separate title page with the article class?
Hi I am new to Latex and am trying to create a latex document with the following preamble and content.
While, the code produces the desired output, somehow all the output comes on page 2, leaving page 1 totally blank.
\documentclass[a4paper,12pt]{article}
\topmargin 0pt
\advance \topmargin by -\headheight
\advance \topmargin by -\headsep
\textheight 8.9in
\usepackage{enumerate}
\oddsidemargin 0pt
\evensidemargin \oddsidemargin
\marginparwidth 0.5in
\textwidth 6.5in
\begin{document}
\title{ MISC \\
Homework II \\
Computer Science \\Fall 2011\\}
\date{ September 17, 2011 }
\begin{center}
\begin{Large}
\maketitle{All the code here is entirely mine}\\
\end{Large}
\end{center}
\end{document}
Could someone help me in figuring out what I am doing wrong.
P.S. If I dont center my title, the output does show on a single page, but the formatting is not very presentable.
centerenvironment as it adds vertical space. Instead use\centering. See Should I use center or centering for figures and tables?. – Peter Grill Sep 17 '12 at 05:48\caption. In the above example it is correct to use the environmentcenter– Sep 17 '12 at 06:05