O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – using line breaks

We will type the beginning of a famous poem by Edgar Allan Poe. As the author has specified where a verse has to end, we shall insert line breaks there.

  1. Create a document containing these lines:
    \documentclass{article}
    \begin{document}
    \emph{Annabel Lee}\\
    It was many and many a year ago,\\
    In a kingdom by the sea,\\
    That a maiden there lived whom you may know\\
    By the name of Annabel Lee
    \end{document}
  2. Typeset and view the output:
    Time for action – using line breaks

What just happened?

The very short command \\ ended a line; the following text was put to the next line. That's different to a paragraph break: we're still in the same paragraph. The command ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required