Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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 9 '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 9 '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 Answer 1

up vote 12 down vote accepted

\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}
share|improve this answer
    
Thank you, it's working fine –  Emir Dec 9 '12 at 15:47
    
@Emir The best way to thank the answerer is to accept the answer (and upvote it). –  Ethan Bolker Dec 9 '12 at 16:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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