So far I have the following code for some 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.

  • 5
    Which class are you using? Try amsart or article. Also you need some contents to produce some text and change the vertical spacing. – Sigur Dec 28 '12 at 12:01
  • 5
    Does this question help? If so, let us know, otherwise please add some more information to your question. – egreg Dec 28 '12 at 12:03
  • Try adding the lipsum package to your preamble (\usepackage{lipsum}) and issue a \lipsum after the \maketitle. This should output a few paragraphs of blind text, which should push the title up. LaTeX has some expectations about where text should be and is also very generous in the top spacing before the title, so it will not be all the way at the top (in a single column document). @egreg's comment should point you to a handful of very useful solutions to your current problem. – Ricardo Dec 28 '12 at 14:35

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:

      \Large\textbf{My title}\\
      \large\textit{A. Thor}

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

  • 5
    your example isn't going to work. \documentclass{...} must come before \begin{document}. – barbara beeton Dec 28 '12 at 21:47
  • 1
    Welcome to TeX.sx! I've taken the liberty of correcting the obvious mistake. – egreg Dec 28 '12 at 22:23
  • Yes, thanks. Didn't try the code. – alexraasch Dec 28 '12 at 23:55
  • I have experimented with the stretch values, however, whatever I try I can't seem to get it right to the top. I have managed to get it slightly above the center, but no higher? – CAF Dec 29 '12 at 10:46
  • If you want the title to go right below the top margin then simply leave the \vspace*{\stretch{...}} out of your code. Then the above code puts the title on the first line of the titlepage. – alexraasch Dec 29 '12 at 13:48

As commented, check if with enough text the title is still too low for you.

If this is true, think twice if you're right. Most "standard" classes have a well designed default style and change this probably is not as elegant as you think. Extra space before of the title emphasized it discrete but effectively. Maybe it is worth to check before similar document class (for example, for an article compare article, paper,scrartcl, etc) and reduce margins (a little) with package geometry.

If despite all you are decided to change the tile format, it is possible add a negative vertical space with \droptitle (that need the package titling) or simply add a \vspace inside the title without extra packages. Uncomment the corresponding lines of this example (remove the first % only of each line) to see the effect of each option:

\documentclass{article} % Try also "scrartcl" or "paper"
\usepackage{blindtext} % for dummy text
% \usepackage[margin=2cm]{geometry}   % to change margins
% \usepackage{titling}             % Uncomment both to   
% \setlength{\droptitle}{-2cm}     % change title position 
\title{%\vspace{-1.5cm}            % Another way to do
A Minimal Working Example}

Other packages as savetrees or wordlike have global effects in all the document (margins, spacing) but also raises the title.

Of course, you can also make a title from scratch. Redefining \maketitle to put a maximum of information in a page show some ways to do. See also Custom title page in report or book class?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.