summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-04-05 21:58:59 +0000
committerKarl Berry <karl@freefriends.org>2022-04-05 21:58:59 +0000
commita09b7b6f7fd3f85f92905cbbadd3fdca7362dfe3 (patch)
tree77008c6d5514bf15c8ec804d7fd2f2807e05849a /Master/texmf-dist/tex
parent36595a910f2b8a3a56606d6f16c2626f44b29822 (diff)
stage (30mar22)
git-svn-id: svn://tug.org/texlive/trunk@62929 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/stage/stage.cls17
1 files changed, 8 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/stage/stage.cls b/Master/texmf-dist/tex/latex/stage/stage.cls
index 4756c8c89c5..1f225122643 100644
--- a/Master/texmf-dist/tex/latex/stage/stage.cls
+++ b/Master/texmf-dist/tex/latex/stage/stage.cls
@@ -1,6 +1,6 @@
%% stage.cls
%% Copyright 2005 Robert Jahrling
-%% Copyright 2017–2018 Reuben Thomas
+%% Copyright 2017–2022 Reuben Thomas
%
% This is a LaTeX2e class called stage, providing a class
% for stage play Manuscript Format.
@@ -23,7 +23,7 @@
%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{stage}[2018/05/14 v1.01 Manuscript Format for stage plays]
+\ProvidesClass{stage}[2022/03/29 v1.03 Manuscript Format for stage plays]
% The class is based on the default book class
\LoadClass[12pt,oneside]{book}
\PassOptionsToClass{\CurrentOption}{book}
@@ -86,13 +86,12 @@
% Counts scenes per act
\newcounter{scenecounter}[actcounter]
% \dialog sets the character's name above their speech
-\let\stageoldep=\everypar
\newlength{\saveparskip}
\newcommand{\dialog}[2]{%
\needspace{2\baselineskip}%
- {\begin{adjustwidth}{2.5in}{0in}\textsc{#1}\end{adjustwidth}\saveparskip=\parskip\parskip=0pt%
+ {\begin{adjustwidth}{2.5in}{0in}\textsc{#1}\saveparskip=\parskip\parskip=0pt\end{adjustwidth}%
\extramarks{}{}%
- {\begin{adjustwidth}{0in}{0in}\def\everypar{\parskip=\saveparskip\stageoldep}#2\end{adjustwidth}}%
+ {\begin{adjustwidth}{0in}{0in}\parskip=\saveparskip#2\end{adjustwidth}}%
\extramarks{\textsc{#1} (\continuedname)}{}}
}
@@ -121,16 +120,16 @@
% \stage sets the stage directions farther in than the box
% containing the dialog, and parenthesizes them.
\newcommand{\stage}[1]{%
- \begin{adjustwidth}{2in}{0in}
+ \begin{adjustwidth}{2in}{0in}%
(#1)%
- \end{adjustwidth}
+ \end{adjustwidth}%
}
% \charsd is like \paren in ScriptTeX, used for brief character
% stage directions. It's intended to set properly into a passage
% of dialog.
\newcommand{\charsd}[1]{%
- {\def\everypar{\parskip=0pt\stageoldep}%
- \stage{#1}\par\leavevmode}}
+ \parskip=0pt%
+ \stage{#1}\par\leavevmode\parskip=\saveparskip}
% Undocumented, for backwards compatibility
\newcommand{\initsd}[1]{\charsd{#1}}