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 – centering verses

Let's reuse the fragment of the poem "Annabel Lee". This time we shall center all verses:

  1. Create a document containing these lines:
    \documentclass{article}
    \usepackage{url}
    \begin{document}
    \noindent This is the beginning of a poem
    by Edgar Allan Poe:
    \begin{center}
        \emph{Annabel Lee}
    \end{center}
    \begin{center}
        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{center}
    The complete poem can be read on
    \url{http://www.online-literature.com/poe/576/}.
    \end{document}
  2. Typeset and see the output:
    Time for action – centering verses

What just happened?

We began with

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