]> git.lyx.org Git - lyx.git/blobdiff - lib/tex/broadway.cls
Include lyx2lyx test in tarball
[lyx.git] / lib / tex / broadway.cls
index bd223a88de34b1a753f7e2a631e50f716830cbc3..0b2e5b4ec16c1dd78d8375664132a9017a857ea7 100644 (file)
@@ -1,16 +1,11 @@
 %% Author: Garst R. Reese  reese@isn.net
-%% This is file `broadway.cls', which provides the current
-%% preferred format for submission of "spec" scripts
-%% It is a pretty dull and uninteresting format, but it sells
+%% This is file `broadway.cls', which provides a format for writing
+%% plays.
 %% Derived from report.cls. There is probably still a lot of stuff
-%% that could be deleted. 
+%% that could be deleted.
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{broadway} [1999/02/09 v1.0 uses broadway.layout]
-\newcounter{act}
-%\newcounter{scene}[act]
 \renewcommand{\ref}[1]{#1}
-\renewcommand{\theact}{\Roman{act}}
-%\renewcommand{\thescene}{SCENE\arabic{scene}}
 \newcommand\@ptsize{}
 \newif\if@restonecol
 \newif\if@titlepage
 \@beginparpenalty -\@lowpenalty
 \@endparpenalty   -\@lowpenalty
 \@itempenalty     -\@lowpenalty
-%\renewcommand\theenumi{\@arabic\c@enumi}
-%\newcommand\labelenumi{SCENE\theenumi.}
-%\renewcommand\p@enumii{\theenumi}
-%\newcommand\labelitemi{\textbullet}
 \newenvironment{titlepage}
     {%
       \if@twocolumn
 \else
   \onecolumn
 \fi
+\usepackage{fancyhdr}
+\usepackage{extramarks}
+\usepackage{ifthen}
+\usepackage{lastpage}
+\pagestyle{fancy}
+\lhead{\TheTitle}
+\chead{\TheAuthor}
+\cfoot{}
+\rhead{\thepage}
+% We do not want any hyphenation
+  \sloppy
+\newcommand{\TheAuthor}{}
+\newcommand{\Author}[1]{\renewcommand{\TheAuthor}{#1}}
+\newcommand{\TheTitle}{}
+\newcommand{\Title}[1]{\renewcommand{\TheTitle}{#1}}
 
-\newenvironment{atrise}%
-{\begin{list}{}{%
-\leftmargin \rightmargin}
-\item[]AT RISE:\ignorespaces}
-{\unskip \end{list}}
-
-\newenvironment{scene}%
-{
-%\stepcounter{scene}
-\begin{center}{}{%
-\center}
-\item[]SCENE \ignorespaces}
-{\unskip \end{center}}
+\newcommand{\dialogue}[1]%
+{\raggedright
+\hspace{1in}
+\parbox{4in}{#1}
+}
 
-\newenvironment{act}%
-{
-\stepcounter{act}
-%\setcounter{scene}{0}
-\begin{center}{}{%
-\center}
-\item[]ACT \theact \ignorespaces}
-{\unskip \end{center}}
+\newcommand{\narrative}[1]%
+{\filbreak
+\raggedright{#1}
+}
 
-\newenvironment{dialogue}%
-{\raggedright
-\begin{list}{}{%
-       \setlength{\leftmargin}{.5in}
-       \setlength{\rightmargin}{.5in}
-\setlength{\parsep}{0mm}
-\setlength{\topsep}{0mm}}
-\item[] \ignorespaces}
-{\unskip \end{list}}
+\newcommand{\speaker}[1]%
+{\filbreak
+\vspace{12pt}
+\hspace{2.25in}{#1}
+\vspace{6pt}
+}
 
-\newenvironment{narrative}%
+\newcommand{\parenthetical}[1]%
 {\raggedright
-\fontshape{it}\selectfont{}
-\begin{list}{}{%
-       \setlength{\leftmargin}{0in}
-       \setlength{\rightmargin}{0in}
-\setlength{\parsep}{2mm}
-\setlength{\topsep}{2mm}}
-\item[] \ignorespaces}
-{\unskip \end{list}}
-
-\newenvironment{speaker}%
-{\begin{center}{}{%
-\center
-\setlength{\parsep}{0mm}
-\setlength{\topsep}{2mm}}
-\item[] \ignorespaces}
-{\unskip \end{center}}
+\hspace{1.75in}
+\parbox{3in}{(#1)}
+\vspace{6pt}}
 
-\newenvironment{parenthetical}%
-{\fontshape{it}\selectfont{}
-\begin{center}{}{%
-\center
-\setlength{\parsep}{0mm}
-\setlength{\topsep}{0mm}}
-       \item[](\ignorespaces}
-{\unskip)\end{center}}
+\newcounter{actctr}
+\newcounter{scenectr}[actctr]
+\renewcommand{\theactctr}{\Roman{actctr}}
+\renewcommand{\thescenectr}{\arabic{scenectr}}
+\providecommand{\atrise}[1]{\par\raggedright AT RISE: #1 }%
+\providecommand{\scenestar}[1]{\filbreak\par\centering SCENE #1 }%
+\providecommand{\scene}{%
+\filbreak\par\stepcounter{scenectr}\centering SCENE \thescenectr}%
+\providecommand{\act}{%
+\stepcounter{actctr}\filbreak\setcounter{scenectr}{0}\par\centering ACT \theactctr\par}%
+\providecommand{\curtain}{\filbreak\par\centering CURTAIN \par}%
 
 \endinput
 %%