使用 Verse 包将诗歌置于中心

使用 Verse 包将诗歌置于中心

我正在尝试将一首诗放在文档的中心,并使用该verse包在诗歌上添加行号。这是我的代码:

    \section{Poem}
    \poemtitle{Another Day}
    \begin{verse}[\versewidth]
    \poemlines{2}
    \begin{altverse}
    having the low down blues and going \\ 
into a restraunt to eat.\\ 
you sit at a table.\\ 
the waitress smiles at you.\\ 
she's dumpy. her ass is too big.\\ 
she radiates kindess and symphaty.\\ 
live with her 3 months and a man would no real agony.\\ 
o.k., you'll tip her 15 percent.\\ 
you order a turkey sandwich and a\\ 
beer. the man at the table across from you\\ 
has watery blue eyes and\\ a head like an elephant.\\ 
at a table further down are 3 men\\ 
with very tiny heads\\ 
and long necks\\ 
like ostiches.\\ 
they talk loudly of land development.\\ 
why, you think, did I ever come\\ 
in here when I have the low-down\\ 
blues?\\ 
then the the waitress comes back eith the sandwich\\ 
and she asks you if there will be anything\\ 
else?\\ 
snd you tell her, no no, this will be\\ 
fine.\\ 
then somebody behind you laughs.\\ 
it's a cork laugh filled with sand and\\ 
broken glass.\\ 
\vspace{0.4cm}
you begin eating the sandwhich.\\ 
\vspace{0.4cm} 
it's something.\\ 
it's a minor, difficult,\\ 
sensible action\\ 
like composing a popular song\\ 
to make a 14-year old\\ 
weep.\\ 
you order another beer.\\ 
jesus,look at that guy\\ 
his hands hang down almost to his knees and he's\\ 
whistling.\\ 
well, time to get out.\\ 
pivk up the bill.\\ 
tip.\\ 
go to the register.\\ 
pay.\\ 
pick up a toothpick.\\ 
go out the door.\\ 
your car is still there.\\ 
and there are 3 men with heads\\
and necks\\
like ostriches all getting into one\\
car.\\
they each have a toothpick and now\\
they are talking about women.\\
they drive away first\\
they drive away fast.\\
they're best i guess.\\
it's an unberably hot day.\\
there's a first-stage smog alert.\\
all the birds and plants are dead\\
or dying.\\
\vspace{0.4cm}
you start the engine.
\end{altverse}
\end{verse}

得出以下结论:

截图 1 截图 2

我希望它像诗歌标题一样居中。可以解决这个问题吗?

3in在代码中添加了[\versewidth]以下内容:

片段 3

但我希望它看起来更像这样:

在此处输入图片描述

答案1

我发现无法使用该包的功能来实现诗句居中。因此,我所做的就是将每行设置为\makebox固定(但经过调整)的大小,如宏所定义的那样\CC。因此,您需要将每行包装在包装器中\CC,这是缺点。

\documentclass{article}
\def\CC#1{\makebox[4in]{#1}}
\usepackage{verse}
\begin{document}
    \section{Poem}
    \poemtitle{Another Day}
    \begin{verse}[\textwidth]
\vgap=0pt\relax
    \poemlines{2}
    \begin{altverse}
%
\CC{having the low down blues and going}\\ 
\CC{into a restraunt to eat.}\\ 
\CC{you sit at a table.}\\ 
\CC{the waitress smiles at you.}\\ 
\CC{she's dumpy. her ass is too big.}\\ 
\CC{she radiates kindess and symphaty.}\\ 
\CC{live with her 3 months and a man would no real agony.}\\ 
\CC{o.k., you'll tip her 15 percent.}\\ 
\CC{you order a turkey sandwich and a}\\ 
\CC{beer. the man at the table across from you}\\ 
\CC{has watery blue eyes and}\\ \CC{a head like an elephant.}\\ 
\CC{at a table further down are 3 men}\\ 
\CC{with very tiny heads}\\ 
\CC{and long necks}\\ 
\CC{like ostiches.}\\ 
\CC{they talk loudly of land development.}\\ 
\CC{why, you think, did I ever come}\\ 
\CC{in here when I have the low-down}\\ 
\CC{blues?}\\ 
\CC{then the the waitress comes back eith the sandwich}\\ 
\CC{and she asks you if there will be anything}\\ 
\CC{else?}\\ 
\CC{snd you tell her, no no, this will be}\\ 
\CC{fine.}\\ 
\CC{then somebody behind you laughs.}\\ 
\CC{it's a cork laugh filled with sand and}\\ 
\CC{broken glass.}\\ 
\vspace{0.4cm}
\CC{you begin eating the sandwhich.}\\ 
\vspace{0.4cm} 
\CC{it's something.}\\ 
\CC{it's a minor, difficult,}\\ 
\CC{sensible action}\\ 
\CC{like composing a popular song}\\ 
\CC{to make a 14-year old}\\ 
\CC{weep.}\\ 
\CC{you order another beer.}\\ 
\CC{jesus,look at that guy}\\ 
\CC{his hands hang down almost to his knees and he's}\\ 
\CC{whistling.}\\ 
\CC{well, time to get out.}\\ 
\CC{pivk up the bill.}\\ 
\CC{tip.}\\ 
\CC{go to the register.}\\ 
\CC{pay.}\\ 
\CC{pick up a toothpick.}\\ 
\CC{go out the door.}\\ 
\CC{your car is still there.}\\ 
\CC{and there are 3 men with heads}\\
\CC{and necks}\\
\CC{like ostriches all getting into one}\\
\CC{car.}\\
\CC{they each have a toothpick and now}\\
\CC{they are talking about women.}\\
\CC{they drive away first}\\
\CC{they drive away fast.}\\
\CC{they're best i guess.}\\
\CC{it's an unberably hot day.}\\
\CC{there's a first-stage smog alert.}\\
\CC{all the birds and plants are dead}\\
\CC{or dying.}\\
\vspace{0.4cm}
\CC{you start the engine.}
\end{altverse}
\end{verse}
\end{document}

在此处输入图片描述

相关内容