[OS X TeX] poetry packages
Joshua Smith
jhs0807 at gmail.com
Wed Aug 21 14:24:16 CEST 2013
On Aug 21, 2013, at 2:21 AM, Scot Mcphee wrote:
> The line numbers have to start at arbitrary points (I'm quoting arbitrary sections from long epic poems) and only number every 5th line (i.e. where modulo 5 is equal to 0, not every fifth line from the starting line). Here for example is a block of verse quoted with hand formatting in verbatim (Vergil, Aeneid, Book 4 lines 129 - 142):
>
> \begin{verbatim}
> Oceanum interea surgens Aurora reliquit.
> 130 it portis iubare exorto delecta iuventus,
> retia rara, plagae, lato venabula ferro,
> Massylique ruunt equites et odora canum vis.
> reginam thalamo cunctantem ad limina primi
> Poenorum exspectant, ostroque insignis et auro
> 135 stat sonipes ac frena ferox spumantia mandit.
> tandem progreditur magna stipante caterva
> Sidoniam picto chlamydem circumdata limbo;
> cui pharetra ex auro, crines nodantur in aurum,
> aurea purpuream subnectit fibula vestem.
> 140 nec non et Phrygii comites et laetus Iulus
> incedunt. ipse ante alios pulcherrimus omnis
> infert se socium Aeneas atque agmina iungit.
> \end{verbatim}
>
> Any suggestions or ideas?
This is a (somewhat ugly) solution using the fancyvrb package. The challenge was getting the first number to appear where it should and I am not certain I got the size of the vertical space quite right:
\begin{Verbatim}[numbers=left, firstnumber=129, stepnumber=2]
Oceanum interea surgens Aurora reliquit.
it portis iubare exorto delecta iuventus,
\end{Verbatim}
%
\vspace*{-1.75\baselineskip} %
%
\begin{Verbatim}[numbers=left, firstnumber=131, stepnumber=5]
retia rara, plagae, lato venabula ferro,
Massylique ruunt equites et odora canum vis.
reginam thalamo cunctantem ad limina primi
Poenorum exspectant, ostroque insignis et auro
stat sonipes ac frena ferox spumantia mandit.
tandem progreditur magna stipante caterva
Sidoniam picto chlamydem circumdata limbo;
cui pharetra ex auro, crines nodantur in aurum,
aurea purpuream subnectit fibula vestem.
nec non et Phrygii comites et laetus Iulus
incedunt. ipse ante alios pulcherrimus omnis
infert se socium Aeneas atque agmina iungit.
\end{Verbatim}
Josh
More information about the macostex-archives
mailing list