Time for action – centering verses
Let's reuse the fragment of the poem "Annabel Lee". This time we shall center all verses:
- 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}
- Typeset and see the output:
What just happened?
We began with
Get LaTeX Beginners Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.