in this chapter of org-mode manual, there is a tutorial on how to export a latex file with some features of verse
package, such as line-counting and centralization. The example given is a poem by Shakespeare:
#+ATTR_LATEX: :center t :latexcode \color{red} :lines 5
#+ATTR_LATEX: :versewidth Feed’st thy light’s flame with self-substantial fuel,
#+BEGIN_VERSE
From fairest creatures we desire increase,
That thereby beauty’s rose might never die,
But as the riper should by time decease
His tender heir might bear his memory
But thou, contracted to thine own bright eyes,
Feed’st thy light’s flame with self-substantial fuel,
Making a famine where abundance lies,
Thyself thy foe, to thy sweet self too cruel.
Thou that art now the world’s fresh ornament,
And only herald to the gaudy spring,
Within thine own bud buriest thy content,
And, tender churl, mak’st waste in niggardly.
Pity the world, or else this glutton be,
To eat the world’s due, by the grave and thee.
#+END_VERSE
This, however, doesn't work when I try it. I of course added #+LATEX_HEADER: \usepackage{verse}
before it, but still... doesn't work. I also tried #+LATEX_HEADER: \usepackage{verse.sty}
instead, but then it displays: file [...] wasn't produced "See "Org PDF LaTEx Output" for details".