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