]> git.lyx.org Git - lyx.git/blob - lib/tex/hollywood.cls
update to the aa class
[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 \usepackage{fancyhdr}
10 \usepackage{extramarks}
11 \usepackage{ifthen}
12 \usepackage{lastpage}
13 \pagestyle{fancy}
14 \renewcommand{\ref}[1]{#1}
15 \newcommand\@ptsize{}
16 \newif\if@restonecol
17 \newif\if@titlepage
18 \@titlepagetrue
19 \newif\if@openright
20 \DeclareOption{letterpaper}
21    {\setlength\paperheight {11in}%
22     \setlength\paperwidth  {8.5in}}
23 \DeclareFontFamily{OT1}{pcr}{\hyphenchar\font=-1}
24 \DeclareFontShape{OT1}{pcr}{m}{n}{<12>  pcrr7t}{}
25 \DeclareFontFamily{T1}{pcr}{\hyphenchar\font=-1}
26 \DeclareFontShape{T1}{pcr}{m}{n}{<12> pcrr8t}{}
27 \DeclareOption{12pt}{\renewcommand\@ptsize{0}}
28 \DeclareOption{12pt}{\renewcommand\@ptsize{1}}
29 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
30 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
31 \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
32 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
33 \DeclareOption{final}{\setlength\overfullrule{0pt}}
34 \DeclareOption{titlepage}{\@titlepagetrue}
35 \DeclareOption{notitlepage}{\@titlepagefalse}
36 \DeclareOption{openright}{\@openrighttrue}
37 \DeclareOption{openany}{\@openrightfalse}
38 \DeclareOption{onecolumn}{\@twocolumnfalse}
39 \ExecuteOptions{letterpaper,12pt,oneside,onecolumn,final,openany}
40 \ProcessOptions
41 \input{size1\@ptsize.clo}
42 \setlength\lineskip{1\p@}
43 \setlength\normallineskip{1\p@}
44 \renewcommand\baselinestretch{}
45 \setlength\parskip{0\p@ \@plus \p@}
46 \@lowpenalty   51
47 \@medpenalty  151
48 \@highpenalty 301
49 \setcounter{topnumber}{2}
50 \renewcommand{\headrulewidth}{0pt}
51 \renewcommand\topfraction{.7}
52 \setcounter{bottomnumber}{1}
53 \renewcommand\bottomfraction{.3}
54 \setcounter{totalnumber}{3}
55 \renewcommand\textfraction{.2}
56 \renewcommand\floatpagefraction{.5}
57 \setcounter{dbltopnumber}{2}
58 \renewcommand\dbltopfraction{.7}
59 \renewcommand\dblfloatpagefraction{.5}
60   \def\ps@headings{%
61     \let\@oddfoot\@empty
62     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
63     \let\@mkboth\markboth
64 }
65 \def\ps@myheadings{%
66     \let\@oddfoot\@empty\let\@evenfoot\@empty
67     \def\@evenhead{\thepage\hfil\slshape\leftmark}%
68     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
69     \let\@mkboth\@gobbletwo
70     }
71   \if@titlepage
72 \newcommand{\address}{\renewcommand{\@address}}
73 \newcommand{\@address}{}
74   \newcommand\maketitle{\begin{titlepage}%
75   \let\footnotesize\small
76   \let\footnoterule\relax
77   \let \footnote \thanks
78   \null\vfil
79   \vskip 60\p@
80   \begin{center}%
81 %%    { \underline{\@title} \par}%
82     { \@title \par}%
83     \vskip 3em%
84     {\lineskip .75em%
85       \begin{tabular}[t]{c}%
86         \@author
87       \end{tabular}\par}%
88       \vskip 1.5em%
89   \end{center}\par
90 \raggedleft
91 \vfill
92 \begin{tabular}{l}%
93 \ignorespaces
94 \@address
95 \end{tabular}\par%
96   \@thanks
97 %  \vfil\null
98   \end{titlepage}%
99   \setcounter{footnote}{0}%
100   \global\let\thanks\relax
101   \global\let\maketitle\relax
102 % \global\let\@address\@empty
103   \global\let\@thanks\@empty
104   \global\let\@author\@empty
105   \global\let\@date\@empty
106   \global\let\@title\@empty
107 % \global\let\address\relax
108   \global\let\title\relax
109   \global\let\author\relax
110   \global\let\date\relax
111   \global\let\and\relax
112 }
113 \fi
114   \setlength\leftmargini  {2.5em}
115 \leftmargin  \leftmargini
116 \setlength  \labelsep  {.5em}
117 \setlength  \labelwidth{\leftmargini}
118 \addtolength\labelwidth{-\labelsep}
119 \@beginparpenalty -\@lowpenalty
120 \@endparpenalty   -\@lowpenalty
121 \@itempenalty     -\@lowpenalty
122 \renewcommand\theenumi{\@arabic\c@enumi}
123 \newcommand\labelenumi{\theenumi.}
124 \renewcommand\p@enumii{\theenumi}
125 \newcommand\labelitemi{\textbullet}
126 \newenvironment{titlepage}
127     {%
128       \if@twocolumn
129         \@restonecoltrue\onecolumn
130       \else
131         \@restonecolfalse\newpage
132       \fi
133       \thispagestyle{empty}%
134       \setcounter{page}\@ne
135     }%
136     {\if@restonecol\twocolumn \else \newpage \fi
137      \if@twoside\else
138         \setcounter{page}\@ne
139      \fi
140     }
141 \setlength\tabbingsep{\labelsep}
142 \skip\@mpfootins = \skip\footins
143 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
144 \DeclareOldFontCommand{\sl}{\normalfont\ttfamily}{\mathtt}
145 \newcommand\@pnumwidth{1.55em}
146 \newcommand\@tocrmarg{2.55em}
147 \newcommand\@dotsep{4.5}
148 \setcounter{tocdepth}{2}
149 \setlength\columnsep{10\p@}
150 \setlength\columnseprule{0\p@}
151 \pagestyle{plain}
152 \pagenumbering{arabic}
153 \if@twoside
154 \else
155   \raggedbottom
156 \fi
157 \if@twocolumn
158   \twocolumn
159   \sloppy
160   \flushbottom
161 \else
162   \onecolumn
163 \fi
164 % This stuff is for a shooting script
165 % \lhead{\ifthenelse{ \not \value{page} = 1}{CONTINUED:}{}}
166 % \rfoot{\ifthenelse{ \not \value{page}=\pageref{LastPage}}{(CONT'D)}
167 %  {\ifthenelse{\value{page}=\pageref{LastPage}}{(END)}{}}}
168
169
170 % This is what we want for a spec script
171 \rhead{\thepage.}
172 \cfoot{}
173   % This one is needed to get real adobe courier, but you can use
174   % cmtt which is also correct
175   \renewcommand{\familydefault}{pcr}
176   % This is to negate the effect of the ~ that LyX adds everywhere
177  \let~=\space
178   % this protects you against the fact that TeX does not want to
179   % hyphenate in typewriter font. It is possible to enable
180   % hyphenation, but I do not remember how.
181   % That's good because we -do not- want any hyphenation.
182   \sloppy
183 \newcommand{\fadein}[1]{\filbreak\raggedright\par FADE IN: \uppercase{#1}}%
184 \newcommand{\fadeout}{\filbreak\raggedright\par FADE OUT }%
185 \newcommand{\interiorshot}[1]{\filbreak\raggedright\par INT. \uppercase{#1}}%
186 \newcommand{\exteriorshot}[1]{\filbreak\raggedright\par EXT. \uppercase{#1}}%
187
188 \newcommand{\dialogue}[1]%
189 {\raggedright
190 \hspace{1in}
191 \parbox{4in}{#1}
192 \vspace{6pt}
193 }
194
195 \newcommand{\narrative}[1]%
196 {\filbreak
197 \vspace{6pt}
198 \raggedright{#1}
199 \vspace{6pt}
200 }
201
202
203 \newcommand{\speaker}[1]%
204 {\filbreak
205 \vspace{12pt}
206 \hspace{2.25in}{#1}
207 \vspace{6pt}
208 }
209
210 \newcommand{\parenthetical}[1]%
211 {\raggedright
212 \hspace{1.75in}
213 \parbox{1.5in}{(#1)}
214 \vspace{6pt}}
215
216 \endinput
217 %%
218 %% End of file `hollywood.cls'.