[Tex/LaTex] How to have the title at the top of a LaTeX document

titles

So far I have the following code for some document;

\begin{document}

\title{..}

\author{..}

\maketitle

\end{document}

When I create the file, the title is always centred but at the middle of the page. Is there any way to move the title (and author) to the top of the page?

Apologies if I am missing something simple – at this stage I am simply experimenting with the software which I will use extensively next semester.

Best Answer

Another way of doing this is not to use \maketitle at all. Instead typeset the author and title in any font you like and enclose the material in stretches:

\documentclass{article}
\begin{document}
\begin{titlepage}
   \vspace*{\stretch{1.0}}
   \begin{center}
      \Large\textbf{My title}\\
      \large\textit{A. Thor}
   \end{center}
   \vspace*{\stretch{2.0}}
\end{titlepage}
\end{document}

\begin{titlepage} gives you an empty page. The stretches align the enclosed material vertically. In this case, the whitespace below is twice the size of the whitespace above. Experiment with the two stretch values to fit your needs.