仅在选定的环境中抑制诗歌行数编号

仅在选定的环境中抑制诗歌行数编号

我只想删除一首诗的诗歌行编号,从而迫使它的行为与verse我的文档环境定义的一般设置不同。

请考虑以下 MWE

\documentclass{article}
\usepackage{verse}

\begin{document}

% Global setting
\verselinenumbersleft
\setlength{\vrightskip}{-3em}
\poemlines{2}


\poemtitle{Garden}
\begin{verse}
I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!
I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!
\end{verse}

\poemtitle{No Poem Lines for this enviroment!}
\begin{verse}
I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!
I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!
\end{verse}



\end{document}

答案1

您可以设置\poemlines为零:

\documentclass{article}
\usepackage{verse}

\begin{document}

% Global setting
\verselinenumbersleft
\setlength{\vrightskip}{-3em}
\poemlines{2}


\poemtitle{Garden}
\begin{verse}
I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!
I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!
\end{verse}

\poemtitle{No Poem Lines for this enviroment!}
\poemlines{0}
\begin{verse}
I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!
I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!
\end{verse}

\poemtitle{Garden}
\poemlines{2}
\begin{verse}
I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!
I used to love my garden \\
But now my love is dead \\
For I found a bachelor's button \\
In black-eyed Susan's bed.\\!
\end{verse}

\end{document}

在此处输入图片描述

相关内容