-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdramatist-mods.sty
46 lines (43 loc) · 1.12 KB
/
dramatist-mods.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
\ProvidesPackage{dramatist-mods}
\makeatletter
\@namedef{drama*}{%
\@drversetrue
\if@poemscol
\begin{poem}
\setcounter{verselinenumber}{\value{storelineno}}
\setcounter{printlineindex}{\value{storeprintlineindex}}
\else
\begin{verse}
\fi
\ifx\poemlines\@undefined\else
\setcounter{poemline}{\value{storelineno}}
\fi
\list{}{%
\labelwidth\speakswidth
\itemindent\speaksindent
\itemsep\speechskip
\parsep\Dparsep
\labelsep\Dlabelsep
\let\makelabel\speakslabel}
}
\@namedef{enddrama*}{%
\endlist
\ifx\poemlines\@undefined\else
\setcounter{storelineno}{\value{poemline}}
\fi
\if@poemscol
\end{poem}
\setcounter{storelineno}{\value{verselinenumber}}
\setcounter{storeprintlineindex}{\value{printlineindex}}
\else
\end{verse}
\fi
\@drversefalse}
\def\@character#1#2{%
\@namedef{#2}{{\namefont #1}\xspace}
\n@me@ppend@nddef{#2}{\@ppendname}{%
\item[\speaksfont{#1}\speaksdel\hfill]
}
}
\makeatother
\def\stagedir#1{\item\begin{quote}\em #1\end{quote}}