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 doesn't work. How can I get it done?

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

Use the double backslash:

\title{First line of title \\
Second line of title}\maketitle

Use the line break operator \\.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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