答案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}