戲劇家詩句演講前綴如何與演講放在同一行?

戲劇家詩句演講前綴如何與演講放在同一行?

使用verse環境dramatist包中,我希望將語音前綴與語音放在同一行,因為它們適用於散文環境。

有許多用於自訂格式的掛鉤,但我不知道如何使用它們來執行此操作。

這與這個問題,但我並不想混合散文和詩歌,所以我希望有一個更簡單的解決方案。我正在排版一部長詩劇,因此必須將每個演講都包裝在自己的環境中會非常不方便。

答案1

前綴的排版方式由內部命令控制\@character,預設情況下,如果使用環境,則將它們設定在自己的行中drama*;如果使用環境的非星號版本,則將它們設為行;這是最初的定義:

\def\@character#1#2{%
    \@namedef{#2}{{\namefont #1}\xspace}
    \n@me@ppend@nddef{#2}{\@ppendname}{%
        \if@drverse
            {\speakstab\speaksfont{#1}\speaksdel\par\nobreak\addvspace{-\parskip}}
        \else
            \item[#1\speaksdel]
        \fi}
}

如果您希望兩個環境以相同的方式處理前綴,則可以省略條件分支:

\documentclass{memoir}    
\usepackage{dramatist}

\makeatletter
\def\@character#1#2{%
    \@namedef{#2}{{\namefont #1}\xspace}
    \n@me@ppend@nddef{#2}{\@ppendname}{%
            \item[#1\speaksdel]
}
}
\makeatother

\begin{document}

\Character[Poe Prose]{POE}{poe}
\Character[Frost Verse]{FROST}{frost}

\begin{drama*}
\frostspeaks Some say the world will end in fire; \\
Some say in ice. \\ 
From what I've tasted of desire \\
I hold with those who favor fire. \\ 
But if it had to perish twice, \\
I think I know enough of hate \\ 
To know that for destruction ice \\ 
Is also great  \\
And would suffice.
\end{drama*}

\begin{drama}
\poespeaks For the most wild, yet most homely narrative which I am about to pen, I neither expect nor solicit belief. Mad indeed would I be to expect it, in a case where my very senses reject their own evidence.
\end{drama}

\end{document}

在此輸入影像描述

相關內容