]> git.lyx.org Git - lyx.git/blob - lib/tex/hollywood.cls
InsetText draw-update fixes, implemented edit-table-menu, patch from Baruch.
[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 \DeclareFontFamily{OT1}{pcr}{\hyphenchar\font=-1}
19 \DeclareFontShape{OT1}{pcr}{m}{n}{<12>  pcrr7t}{}
20 \DeclareFontFamily{T1}{pcr}{\hyphenchar\font=-1}
21 \DeclareFontShape{T1}{pcr}{m}{n}{<12> pcrr8t}{}
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{\headrulewidth}{0pt}
46 \renewcommand\topfraction{.7}
47 \setcounter{bottomnumber}{1}
48 \renewcommand\bottomfraction{.3}
49 \setcounter{totalnumber}{3}
50 \renewcommand\textfraction{.2}
51 \renewcommand\floatpagefraction{.5}
52 \setcounter{dbltopnumber}{2}
53 \renewcommand\dbltopfraction{.7}
54 \renewcommand\dblfloatpagefraction{.5}
55   \def\ps@headings{%
56     \let\@oddfoot\@empty
57     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
58     \let\@mkboth\markboth
59 }
60 \def\ps@myheadings{%
61     \let\@oddfoot\@empty\let\@evenfoot\@empty
62     \def\@evenhead{\thepage\hfil\slshape\leftmark}%
63     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
64     \let\@mkboth\@gobbletwo
65     }
66   \if@titlepage
67 \newcommand{\address}{\renewcommand{\@address}}
68 \newcommand{\@address}{}
69   \newcommand\maketitle{\begin{titlepage}%
70   \let\footnotesize\small
71   \let\footnoterule\relax
72   \let \footnote \thanks
73   \null\vfil
74   \vskip 60\p@
75   \begin{center}%
76     { \underline{\@title} \par}%
77     \vskip 3em%
78     {\lineskip .75em%
79       \begin{tabular}[t]{c}%
80         \@author
81       \end{tabular}\par}%
82       \vskip 1.5em%
83   \end{center}\par
84 \raggedleft
85 \vfill
86 \begin{tabular}{l}%
87 \ignorespaces
88 \@address
89 \end{tabular}\par%
90   \@thanks
91 %  \vfil\null
92   \end{titlepage}%
93   \setcounter{footnote}{0}%
94   \global\let\thanks\relax
95   \global\let\maketitle\relax
96 % \global\let\@address\@empty
97   \global\let\@thanks\@empty
98   \global\let\@author\@empty
99   \global\let\@date\@empty
100   \global\let\@title\@empty
101 % \global\let\address\relax
102   \global\let\title\relax
103   \global\let\author\relax
104   \global\let\date\relax
105   \global\let\and\relax
106 }
107 \fi
108   \setlength\leftmargini  {2.5em}
109 \leftmargin  \leftmargini
110 \setlength  \labelsep  {.5em}
111 \setlength  \labelwidth{\leftmargini}
112 \addtolength\labelwidth{-\labelsep}
113 \@beginparpenalty -\@lowpenalty
114 \@endparpenalty   -\@lowpenalty
115 \@itempenalty     -\@lowpenalty
116 \renewcommand\theenumi{\@arabic\c@enumi}
117 \newcommand\labelenumi{\theenumi.}
118 \renewcommand\p@enumii{\theenumi}
119 \newcommand\labelitemi{\textbullet}
120 \newenvironment{titlepage}
121     {%
122       \if@twocolumn
123         \@restonecoltrue\onecolumn
124       \else
125         \@restonecolfalse\newpage
126       \fi
127       \thispagestyle{empty}%
128       \setcounter{page}\@ne
129     }%
130     {\if@restonecol\twocolumn \else \newpage \fi
131      \if@twoside\else
132         \setcounter{page}\@ne
133      \fi
134     }
135 \setlength\tabbingsep{\labelsep}
136 \skip\@mpfootins = \skip\footins
137 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
138 \DeclareOldFontCommand{\sl}{\normalfont\ttfamily}{\mathtt}
139 \newcommand\@pnumwidth{1.55em}
140 \newcommand\@tocrmarg{2.55em}
141 \newcommand\@dotsep{4.5}
142 \setcounter{tocdepth}{2}
143 \setlength\columnsep{10\p@}
144 \setlength\columnseprule{0\p@}
145 \pagestyle{plain}
146 \pagenumbering{arabic}
147 \if@twoside
148 \else
149   \raggedbottom
150 \fi
151 \if@twocolumn
152   \twocolumn
153   \sloppy
154   \flushbottom
155 \else
156   \onecolumn
157 \fi
158 \usepackage{fancyhdr}
159 \usepackage{extramarks}
160 \usepackage{ifthen}
161 \usepackage{lastpage}
162 \pagestyle{fancy}
163 % This stuff is for a shooting script
164 % \lhead{\ifthenelse{ \not \value{page} = 1}{CONTINUED:}{}}
165 % \rfoot{\ifthenelse{ \not \value{page}=\pageref{LastPage}}{(CONT'D)}
166 %  {\ifthenelse{\value{page}=\pageref{LastPage}}{(END)}{}}}
167
168
169 % This is what we want for a spec script
170 \rhead{\thepage.}
171 \cfoot{}
172 % \renewcommand{\headrulewitdh}{0pt}
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{3in}{(#1)}
214 \vspace{6pt}}
215
216 \endinput
217 %%
218 %% End of file `hollywood.cls'.