]> git.lyx.org Git - lyx.git/blob - lib/tex/hollywood.cls
40709a03948628b3e6b43672a28b98df922eb3ae
[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 \usepackage{fancyhdr}
155 \usepackage{extramarks}
156 \usepackage{ifthen}
157 \usepackage{lastpage}
158 \pagestyle{fancy}
159 % This stuff is for a shooting script
160 % \lhead{\ifthenelse{ \not \value{page} = 1}{CONTINUED:}{}}
161 % \rfoot{\ifthenelse{ \not \value{page}=\pageref{LastPage}}{(CONT'D)}
162 %  {\ifthenelse{\value{page}=\pageref{LastPage}}{(END)}{}}}
163
164
165 % This is what we want for a spec script
166 \rhead{\thepage.}
167 \cfoot{}
168 % \renewcommand{\headrulewitdh}{0pt}
169   % This one is needed to get real adobe courier, but you can use
170   % cmtt which is also correct
171   \renewcommand{\familydefault}{pcr}
172   % This is to negate the effect of the ~ that LyX adds everywhere
173  \let~=\space
174   % this protects you against the fact that TeX does not want to
175   % hyphenate in typewriter font. It is possible to enable
176   % hyphenation, but I do not remember how.
177   % That's good because we -do not- want any hyphenation.
178   \sloppy
179 \newcommand{\fadein}{\filbreak\raggedright\par FADE IN: }%
180 \newcommand{\fadeout}{\filbreak\raggedright\par FADE OUT }%
181 \newcommand{\interiorshot}{\filbreak\raggedright\par INT. }%
182 \newcommand{\exteriorshot}{\filbreak\raggedright\par EXT. }%
183 \newenvironment{dialogue}%
184 {\raggedright
185 \begin{list}{}{%
186         \setlength{\leftmargin}{1.2in}
187         \setlength{\rightmargin}{1.2in}
188 \setlength{\parsep}{0mm}
189 \setlength{\topsep}{0mm}}
190 \item[] \ignorespaces}
191 {\unskip \end{list}}
192
193 \newenvironment{narrative}%
194 {\filbreak
195 \raggedright
196 \begin{list}{}{%
197 \leftmargin \rightmargin
198 \setlength{\parsep}{2mm}
199 \setlength{\topsep}{2mm}}
200 \item[] \ignorespaces}
201 {\unskip \end{list}}
202
203 \newenvironment{speaker}%
204 {\filbreak
205 \begin{list}{}{%
206         \setlength{\leftmargin}{2.5in}
207 \setlength{\partopsep}{4mm}
208 \setlength{\parsep}{0mm}
209 \setlength{\topsep}{0mm}}
210 \item[] \ignorespaces}
211 {\unskip \end{list}}
212
213 \newenvironment{parenthetical}%
214 {\begin{list}{}{%
215         \setlength{\leftmargin}{2in}
216 \setlength{\parsep}{0mm}
217 \setlength{\topsep}{0mm}}
218         \item[](\ignorespaces}
219 {\unskip)\end{list}}
220
221
222
223
224 \endinput
225 %%
226 %% End of file `hollywood.cls'.