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.

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 get it?

share|improve this question

migrated from stackoverflow.com May 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
2  
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
add comment

2 Answers 2

up vote 11 down vote accepted

Use the double backslash:

\documentclass{article}
\begin{document}
\title{First line of title \\
Second line of title}\maketitle
\end{document}
share|improve this answer
add comment

Use the line break operator \\.

share|improve this answer
add comment

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.