37

I want my page to look something like this (using \documentclass{article}):

text

title

text

but I can't get it right, it puts my title on the next page leaving my first text paragraph on separate page. What should I do?

3
  • Could you please provide a more detailed (formatted) mockup of what you would like to achieve? It may narrow down the possible solutions. Dec 9, 2012 at 15:25
  • I have some text at the beginning of my article I defined \title{Naslov Prvog Zadatka} \author{} \date{} \maketitle and some text after this but when I compile it, title begins on a new page leaving text on first page..
    – Emir
    Dec 9, 2012 at 15:28
  • This also works for moving my title lower on the title-page. \vspace*{...} before \maketitle actually moves the title now, instead of just inserting a blank page before the title :)
    – Judy
    Dec 11, 2013 at 18:40

1 Answer 1

43

\maketitle inserts a \newpage since the title is usually meant to be displayed at the top of the page. To avoid this, you can make \newpage a "no-op":

{\let\newpage\relax\maketitle}

Placing it inside a group {} makes the change local. Here's a quick view on what the outcome of this modification is using a minimal working example (MWE):

enter image description here

\documentclass{article}
\title{Title}\author{Author}
\begin{document}
Some text

{\let\newpage\relax\maketitle}

Some text
\end{document}
2
  • Do you know how to reduce the space between the some text at the very top and the TITLE? Thanks
    – Fraïssé
    Oct 22, 2015 at 23:53
  • @FenceJumper: The default \maketitle macro (in the form used above) inserts a 2em vertical skip before setting the title in a center environment. To see this, issue \maketletter\show\@maketitle\makeatother somewhere before calling \maketitle. You can either patch \@maketitle and remove this (with the help of etoolbox), or just issue \vspace{-2em} before the call to \maketitle. See this paste.
    – Werner
    Oct 24, 2015 at 17:52

You must log in to answer this question.

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