[tex-eplain] Poetry environment

Adam Fenn acwfenn at ntlworld.com
Wed Jan 13 14:59:42 CET 2010


On 13 Jan 2010, at 12:09, John Frampton wrote:

>
> Sorry, I didn't get what you wanted.  How about?
>
> \def\poem{\line\bgroup
>    \hfil
>    \vtop\bgroup
>       \halign\bgroup ##\hfil\cr
> }
> \def\midpoem{\egroup\egroup \hfil
>    \vtop\bgroup
>       \halign\bgroup ##\hfil\cr
> }
> \def\endpoem{\egroup\egroup \hfil\egroup}
>
> \poem
> I wandered lonely as a cloud\cr
> That floats on high o'er vales and hills,\cr
> When all at once I saw a crowd,\cr
> A host, of golden daffodils;\cr
> Beside the lake, beneath the trees,\cr
> Fluttering and dancing in the breeze.\cr
> \midpoem
> Continuous as the stars that shine\cr
> And twinkle on the milky way,\cr
> They stretched in never-ending line\cr
> Along the margin of a bay:\cr
> Ten thousand saw I at a glance,\cr
> Tossing their heads in sprightly dance.\cr
> \endpoem

Yes, that works very well, and because I am bone idle I added
\let\par=\cr \obeylines
so that I need not type \cr after every line.

Thanks very much.
Adam.



More information about the tex-eplain mailing list