所以,我一直在使用这个dramatist
软件包为学校项目排版剧本,使用 LaTeX。这个dramatist
软件包是否包含角色的出场、退场和退场命令?
这是该剧的一个场景:
\scene[--Delhi]
\StageDir{
\begin{center} Indira Gandhi International Airport\\\poi, \lem
\end{center}
}
\begin{drama}
\lemspeaks
So, let me get this straight, M. Poirot -- Rebecca has murdered Desmond, and is aware of the Prince's stay in Delhi, and the latter might be murdered by Rebecca because she wants the real ruby?\\
\poispeaks
Exactly. It seems as if both Desmond and Rebecca were competing to steal the ruby again, but Rebecca had murdered Desmond out of anger because of his betrayal. Oh goodness, it's the paparazzi!\\\\
\patspeaks
It's M. Poirot! He's arrived! Goodness, M. Poirot, did you solve the case? He must have! HURRAY!\\
\poispeaks
Now wait just a moment!\\
\patspeaks
It's his words, folks! 'Wait just a moment!'\\
\lemspeaks
Oh dear, I think we should go.\\\\
\divspeaks
STOP! WAIT! \direct{to the jostling mob} OUT! out -- all of you! \direct{to M. Poirot} M. Poirot, let me take you to the crime scene. Come here...
现在,在“因为他的背叛”和“哦,亲爱的,我想我们应该走了”之后,我添加了换行符,并想添加一个命令,这样我就可以轻松地显示
\itshape{Enter} PATIL \itshape{and other news reporters} %% or simply \pat as I have set. If you there is a way to integrate that into the function, that would be great.
和
\itshape{Enter} DIVAKAR %% or \div
答案1
包中没有定义这样的命令,但您可以自己添加。
在下面的 MWE 中,我定义了三个命令\enter
,\exit
和\exeunt
。该\enter
命令有一个可选的第一个参数来添加和 X输出。每个命令都以一个段落开始,然后包含一些基于dramatist
包的缩进和行距设置的间距命令,然后是模板文本(enter、exit、exeunt)和参数。命令之后继续上一个发言者。
梅威瑟:
\documentclass{article}
\usepackage{dramatist}
\newcommand{\enter}[2][]{
\par\vspace{\speechskip}\hspace{1.15\speaksindent}
\textit{Enter} #2 \if\relax\detokenize{#1}\relax\else\textit{and #1}\fi\par\vspace{\speechskip}
}
\newcommand{\exit}[1]{
\par\vspace{\speechskip}\hspace{1.15\speaksindent}
\textit{Exit} #1\par\vspace{\speechskip}
}
\newcommand{\exeunt}[1]{
\par\vspace{\speechskip}\hspace{1.15\speaksindent}
\textit{Exeunt} #1\par\vspace{\speechskip}
}
\begin{document}
\Character{M. Poirot}{poi}
\Character{Patil}{pat}
\Character{Divakar}{div}
\Character{Lunar Excursion Module}{lem}
\scene[--Delhi]
\StageDir{
\begin{center} Indira Gandhi International Airport\\\poi, \lem
\end{center}
}
\begin{drama}
\lemspeaks
So, let me get this straight, M. Poirot -- Rebecca has murdered Desmond, and is aware of the Prince's stay in Delhi, and the latter might be murdered by Rebecca because she wants the real ruby?\\
\poispeaks
Exactly. It seems as if both Desmond and Rebecca were competing to steal the ruby again, but Rebecca had murdered Desmond out of anger because of his betrayal. \enter[other news reporters]{\pat} Oh goodness, it's the paparazzi!\\
\patspeaks
It's M. Poirot! He's arrived! Goodness, M. Poirot, did you solve the case? He must have! HURRAY!\\
\poispeaks
Now wait just a moment!\\
\patspeaks
It's his words, folks! 'Wait just a moment!'\\
\lemspeaks
Oh dear, I think we should go.\enter{\div}\exit{\lem}
\divspeaks
STOP! WAIT! \direct{to the jostling mob} OUT! out -- all of you! \direct{to \poi} M. Poirot, let me take you to the crime scene. Come here...
\exeunt{reporters}
\end{drama}
\end{document}
结果: