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