4

Here's what I have:

\documentclass{article}

\begin{document}

\title{This is the document title}

\maketitle

\end{document}

I'd like something like this:

\documentclass{article}

\begin{document}

\title{This is 
the document title}

\maketitle

\end{document}

How can I manually add a line break in the document title?

Adam Smith
  • 2,584
  • 2
  • 20
  • 34

1 Answers1

4

Simply add a line break:

\documentclass{article}

\begin{document}

\title{This is\\ 
the document title}

\maketitle

\end{document}
user2310909
  • 116
  • 8
  • Surely it works, the problem should be another. If you send the code that doesn't work maybe someone in the community can explain why. Also works with bold in the title. – user2310909 Feb 06 '18 at 09:03
  • 4
    `Package hyperref Warning: Token not allowed in a PDF string (Unicode): removing `\\' on input line 311.` :( – Frederick Nord Jun 21 '19 at 07:58