# How to make a title of two or more lines?

My document has a long title, so I want the title spans two lines.

I've use this:

\title{my title that must be in two or more lines}


but it not works. How can I get it done?

-

## migrated from stackoverflow.comMay 17 '12 at 12:09

This question came from our site for professional and enthusiast programmers.

possible duplicate of How do I put multiple lines in a title? – Werner May 17 '12 at 15:51
I don't think this is a duplicate -- the other question is about the apa6 class and its somewhat peculiar titles behaviour. – lockstep May 17 '12 at 17:52
@Werner I agree with lockstep – egreg May 17 '12 at 22:01
All: I've edited the other question to highlight that it is focussed on APA6, which is then distinct from this general question. – Joseph Wright May 18 '12 at 6:22

Use the double backslash:

\documentclass{article}
\begin{document}
\title{First line of title \\
Second line of title}\maketitle
\end{document}

-

Use the line break operator \\.

-