]> git.lyx.org Git - lyx.git/blob - lib/tex/broadway.cls
Initial revision
[lyx.git] / lib / tex / broadway.cls
1 %% Author: Garst R. Reese  reese@isn.net
2 %% This is file `broadway.cls', which provides the current
3 %% preferred format for submission of "spec" scripts
4 %% It is a pretty dull and uninteresting format, but it sells
5 %% Derived from report.cls. There is probably still a lot of stuff
6 %% that could be deleted. 
7 \NeedsTeXFormat{LaTeX2e}
8 \ProvidesClass{broadway} [1999/02/09 v1.0 uses broadway.layout]
9 \newcounter{act}
10 %\newcounter{scene}[act]
11 \renewcommand{\ref}[1]{#1}
12 \renewcommand{\theact}{\Roman{act}}
13 %\renewcommand{\thescene}{SCENE\arabic{scene}}
14 \newcommand\@ptsize{}
15 \newif\if@restonecol
16 \newif\if@titlepage
17 \@titlepagetrue
18 \newif\if@openright
19 \DeclareOption{letterpaper}
20    {\setlength\paperheight {11in}%
21     \setlength\paperwidth  {8.5in}}
22 \DeclareOption{12pt}{\renewcommand\@ptsize{0}}
23 \DeclareOption{12pt}{\renewcommand\@ptsize{1}}
24 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
25 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
26 \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
27 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
28 \DeclareOption{final}{\setlength\overfullrule{0pt}}
29 \DeclareOption{titlepage}{\@titlepagetrue}
30 \DeclareOption{notitlepage}{\@titlepagefalse}
31 \DeclareOption{openright}{\@openrighttrue}
32 \DeclareOption{openany}{\@openrightfalse}
33 \DeclareOption{onecolumn}{\@twocolumnfalse}
34 \ExecuteOptions{letterpaper,12pt,oneside,onecolumn,final,openany}
35 \ProcessOptions
36 \input{size1\@ptsize.clo}
37 \setlength\lineskip{1\p@}
38 \setlength\normallineskip{1\p@}
39 \renewcommand\baselinestretch{}
40 \setlength\parskip{0\p@ \@plus \p@}
41 \@lowpenalty   51
42 \@medpenalty  151
43 \@highpenalty 301
44 \setcounter{topnumber}{2}
45 \renewcommand\topfraction{.7}
46 \setcounter{bottomnumber}{1}
47 \renewcommand\bottomfraction{.3}
48 \setcounter{totalnumber}{3}
49 \renewcommand\textfraction{.2}
50 \renewcommand\floatpagefraction{.5}
51 \setcounter{dbltopnumber}{2}
52 \renewcommand\dbltopfraction{.7}
53 \renewcommand\dblfloatpagefraction{.5}
54   \def\ps@headings{%
55     \let\@oddfoot\@empty
56     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
57     \let\@mkboth\markboth
58 }
59 \def\ps@myheadings{%
60     \let\@oddfoot\@empty\let\@evenfoot\@empty
61     \def\@evenhead{\thepage\hfil\slshape\leftmark}%
62     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
63     \let\@mkboth\@gobbletwo
64     }
65   \if@titlepage
66 \newcommand{\address}{\renewcommand{\@address}}
67 \newcommand{\@address}{}
68   \newcommand\maketitle{\begin{titlepage}%
69   \let\footnotesize\small
70   \let\footnoterule\relax
71   \let \footnote \thanks
72   \null\vfil
73   \vskip 60\p@
74   \begin{center}%
75     { \underline{\@title} \par}%
76     \vskip 3em%
77     {\lineskip .75em%
78       \begin{tabular}[t]{c}%
79         \@author
80       \end{tabular}\par}%
81       \vskip 1.5em%
82   \end{center}\par
83 \raggedleft
84 \vfill
85 \begin{tabular}{l}%
86 \ignorespaces
87 \@address
88 \end{tabular}\par%
89   \@thanks
90 %  \vfil\null
91   \end{titlepage}%
92   \setcounter{footnote}{0}%
93   \global\let\thanks\relax
94   \global\let\maketitle\relax
95 % \global\let\@address\@empty
96   \global\let\@thanks\@empty
97   \global\let\@author\@empty
98   \global\let\@date\@empty
99   \global\let\@title\@empty
100 % \global\let\address\relax
101   \global\let\title\relax
102   \global\let\author\relax
103   \global\let\date\relax
104   \global\let\and\relax
105 }
106 \fi
107   \setlength\leftmargini  {2.5em}
108 \leftmargin  \leftmargini
109 \setlength  \labelsep  {.1em}
110 \setlength  \labelwidth{\leftmargini}
111 \addtolength\labelwidth{-\labelsep}
112 \@beginparpenalty -\@lowpenalty
113 \@endparpenalty   -\@lowpenalty
114 \@itempenalty     -\@lowpenalty
115 %\renewcommand\theenumi{\@arabic\c@enumi}
116 %\newcommand\labelenumi{SCENE\theenumi.}
117 %\renewcommand\p@enumii{\theenumi}
118 %\newcommand\labelitemi{\textbullet}
119 \newenvironment{titlepage}
120     {%
121       \if@twocolumn
122         \@restonecoltrue\onecolumn
123       \else
124         \@restonecolfalse\newpage
125       \fi
126       \thispagestyle{empty}%
127       \setcounter{page}\@ne
128     }%
129     {\if@restonecol\twocolumn \else \newpage \fi
130      \if@twoside\else
131         \setcounter{page}\@ne
132      \fi
133     }
134 \setlength\tabbingsep{\labelsep}
135 \skip\@mpfootins = \skip\footins
136 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
137 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
138 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
139 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
140 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
141 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
142 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
143 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
144 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
145 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
146 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
147 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
148 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
149 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
150 \newcommand\@pnumwidth{1.55em}
151 \newcommand\@tocrmarg{2.55em}
152 \newcommand\@dotsep{4.5}
153 \setcounter{tocdepth}{2}
154 \setlength\columnsep{10\p@}
155 \setlength\columnseprule{0\p@}
156 \pagestyle{plain}
157 \pagenumbering{arabic}
158 \if@twoside
159 \else
160   \raggedbottom
161 \fi
162 \if@twocolumn
163   \twocolumn
164   \sloppy
165   \flushbottom
166 \else
167   \onecolumn
168 \fi
169
170 \newenvironment{atrise}%
171 {\begin{list}{}{%
172 \leftmargin \rightmargin}
173 \item[]AT RISE:\ignorespaces}
174 {\unskip \end{list}}
175
176 \newenvironment{scene}%
177 {
178 %\stepcounter{scene}
179 \begin{center}{}{%
180 \center}
181 \item[]SCENE \ignorespaces}
182 {\unskip \end{center}}
183
184 \newenvironment{act}%
185 {
186 \stepcounter{act}
187 %\setcounter{scene}{0}
188 \begin{center}{}{%
189 \center}
190 \item[]ACT \theact \ignorespaces}
191 {\unskip \end{center}}
192
193 \newenvironment{dialogue}%
194 {\raggedright
195 \begin{list}{}{%
196         \setlength{\leftmargin}{.5in}
197         \setlength{\rightmargin}{.5in}
198 \setlength{\parsep}{0mm}
199 \setlength{\topsep}{0mm}}
200 \item[] \ignorespaces}
201 {\unskip \end{list}}
202
203 \newenvironment{narrative}%
204 {\raggedright
205 \fontshape{it}\selectfont{}
206 \begin{list}{}{%
207         \setlength{\leftmargin}{0in}
208         \setlength{\rightmargin}{0in}
209 \setlength{\parsep}{2mm}
210 \setlength{\topsep}{2mm}}
211 \item[] \ignorespaces}
212 {\unskip \end{list}}
213
214 \newenvironment{speaker}%
215 {\begin{center}{}{%
216 \center
217 \setlength{\parsep}{0mm}
218 \setlength{\topsep}{2mm}}
219 \item[] \ignorespaces}
220 {\unskip \end{center}}
221
222 \newenvironment{parenthetical}%
223 {\fontshape{it}\selectfont{}
224 \begin{center}{}{%
225 \center
226 \setlength{\parsep}{0mm}
227 \setlength{\topsep}{0mm}}
228         \item[](\ignorespaces}
229 {\unskip)\end{center}}
230
231 \endinput
232 %%
233 %% End of file `broadway.cls'.