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?

Werner
  • 603,163
Emir
  • 483
  • Could you please provide a more detailed (formatted) mockup of what you would like to achieve? It may narrow down the possible solutions. – Peter Jansson Dec 09 '12 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 09 '12 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 '13 at 18:40

1 Answers1

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}
Werner
  • 603,163
  • Do you know how to reduce the space between the some text at the very top and the TITLE? Thanks – Fraïssé Oct 22 '15 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 '15 at 17:52