mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
27de1486ca
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@140 a592a061-630c-0410-9148-cb99ea01b6c8
234 lines
6.3 KiB
TeX
234 lines
6.3 KiB
TeX
%% Author: Garst R. Reese reese@isn.net
|
|
%% This is file `broadway.cls', which provides the current
|
|
%% preferred format for submission of "spec" scripts
|
|
%% It is a pretty dull and uninteresting format, but it sells
|
|
%% Derived from report.cls. There is probably still a lot of stuff
|
|
%% that could be deleted.
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
\ProvidesClass{broadway} [1999/02/09 v1.0 uses broadway.layout]
|
|
\newcounter{act}
|
|
%\newcounter{scene}[act]
|
|
\renewcommand{\ref}[1]{#1}
|
|
\renewcommand{\theact}{\Roman{act}}
|
|
%\renewcommand{\thescene}{SCENE\arabic{scene}}
|
|
\newcommand\@ptsize{}
|
|
\newif\if@restonecol
|
|
\newif\if@titlepage
|
|
\@titlepagetrue
|
|
\newif\if@openright
|
|
\DeclareOption{letterpaper}
|
|
{\setlength\paperheight {11in}%
|
|
\setlength\paperwidth {8.5in}}
|
|
\DeclareOption{12pt}{\renewcommand\@ptsize{0}}
|
|
\DeclareOption{12pt}{\renewcommand\@ptsize{1}}
|
|
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
|
|
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
|
|
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
|
|
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
|
|
\DeclareOption{final}{\setlength\overfullrule{0pt}}
|
|
\DeclareOption{titlepage}{\@titlepagetrue}
|
|
\DeclareOption{notitlepage}{\@titlepagefalse}
|
|
\DeclareOption{openright}{\@openrighttrue}
|
|
\DeclareOption{openany}{\@openrightfalse}
|
|
\DeclareOption{onecolumn}{\@twocolumnfalse}
|
|
\ExecuteOptions{letterpaper,12pt,oneside,onecolumn,final,openany}
|
|
\ProcessOptions
|
|
\input{size1\@ptsize.clo}
|
|
\setlength\lineskip{1\p@}
|
|
\setlength\normallineskip{1\p@}
|
|
\renewcommand\baselinestretch{}
|
|
\setlength\parskip{0\p@ \@plus \p@}
|
|
\@lowpenalty 51
|
|
\@medpenalty 151
|
|
\@highpenalty 301
|
|
\setcounter{topnumber}{2}
|
|
\renewcommand\topfraction{.7}
|
|
\setcounter{bottomnumber}{1}
|
|
\renewcommand\bottomfraction{.3}
|
|
\setcounter{totalnumber}{3}
|
|
\renewcommand\textfraction{.2}
|
|
\renewcommand\floatpagefraction{.5}
|
|
\setcounter{dbltopnumber}{2}
|
|
\renewcommand\dbltopfraction{.7}
|
|
\renewcommand\dblfloatpagefraction{.5}
|
|
\def\ps@headings{%
|
|
\let\@oddfoot\@empty
|
|
\def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
|
|
\let\@mkboth\markboth
|
|
}
|
|
\def\ps@myheadings{%
|
|
\let\@oddfoot\@empty\let\@evenfoot\@empty
|
|
\def\@evenhead{\thepage\hfil\slshape\leftmark}%
|
|
\def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
|
|
\let\@mkboth\@gobbletwo
|
|
}
|
|
\if@titlepage
|
|
\newcommand{\address}{\renewcommand{\@address}}
|
|
\newcommand{\@address}{}
|
|
\newcommand\maketitle{\begin{titlepage}%
|
|
\let\footnotesize\small
|
|
\let\footnoterule\relax
|
|
\let \footnote \thanks
|
|
\null\vfil
|
|
\vskip 60\p@
|
|
\begin{center}%
|
|
{ \underline{\@title} \par}%
|
|
\vskip 3em%
|
|
{\lineskip .75em%
|
|
\begin{tabular}[t]{c}%
|
|
\@author
|
|
\end{tabular}\par}%
|
|
\vskip 1.5em%
|
|
\end{center}\par
|
|
\raggedleft
|
|
\vfill
|
|
\begin{tabular}{l}%
|
|
\ignorespaces
|
|
\@address
|
|
\end{tabular}\par%
|
|
\@thanks
|
|
% \vfil\null
|
|
\end{titlepage}%
|
|
\setcounter{footnote}{0}%
|
|
\global\let\thanks\relax
|
|
\global\let\maketitle\relax
|
|
% \global\let\@address\@empty
|
|
\global\let\@thanks\@empty
|
|
\global\let\@author\@empty
|
|
\global\let\@date\@empty
|
|
\global\let\@title\@empty
|
|
% \global\let\address\relax
|
|
\global\let\title\relax
|
|
\global\let\author\relax
|
|
\global\let\date\relax
|
|
\global\let\and\relax
|
|
}
|
|
\fi
|
|
\setlength\leftmargini {2.5em}
|
|
\leftmargin \leftmargini
|
|
\setlength \labelsep {.1em}
|
|
\setlength \labelwidth{\leftmargini}
|
|
\addtolength\labelwidth{-\labelsep}
|
|
\@beginparpenalty -\@lowpenalty
|
|
\@endparpenalty -\@lowpenalty
|
|
\@itempenalty -\@lowpenalty
|
|
%\renewcommand\theenumi{\@arabic\c@enumi}
|
|
%\newcommand\labelenumi{SCENE\theenumi.}
|
|
%\renewcommand\p@enumii{\theenumi}
|
|
%\newcommand\labelitemi{\textbullet}
|
|
\newenvironment{titlepage}
|
|
{%
|
|
\if@twocolumn
|
|
\@restonecoltrue\onecolumn
|
|
\else
|
|
\@restonecolfalse\newpage
|
|
\fi
|
|
\thispagestyle{empty}%
|
|
\setcounter{page}\@ne
|
|
}%
|
|
{\if@restonecol\twocolumn \else \newpage \fi
|
|
\if@twoside\else
|
|
\setcounter{page}\@ne
|
|
\fi
|
|
}
|
|
\setlength\tabbingsep{\labelsep}
|
|
\skip\@mpfootins = \skip\footins
|
|
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
|
|
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
|
|
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
|
|
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
|
|
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
|
|
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
|
|
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
|
|
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
|
|
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
|
|
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
|
|
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
|
|
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
|
|
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
|
|
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
|
|
\newcommand\@pnumwidth{1.55em}
|
|
\newcommand\@tocrmarg{2.55em}
|
|
\newcommand\@dotsep{4.5}
|
|
\setcounter{tocdepth}{2}
|
|
\setlength\columnsep{10\p@}
|
|
\setlength\columnseprule{0\p@}
|
|
\pagestyle{plain}
|
|
\pagenumbering{arabic}
|
|
\if@twoside
|
|
\else
|
|
\raggedbottom
|
|
\fi
|
|
\if@twocolumn
|
|
\twocolumn
|
|
\sloppy
|
|
\flushbottom
|
|
\else
|
|
\onecolumn
|
|
\fi
|
|
|
|
\newenvironment{atrise}%
|
|
{\begin{list}{}{%
|
|
\leftmargin \rightmargin}
|
|
\item[]AT RISE:\ignorespaces}
|
|
{\unskip \end{list}}
|
|
|
|
\newenvironment{scene}%
|
|
{
|
|
%\stepcounter{scene}
|
|
\begin{center}{}{%
|
|
\center}
|
|
\item[]SCENE \ignorespaces}
|
|
{\unskip \end{center}}
|
|
|
|
\newenvironment{act}%
|
|
{
|
|
\stepcounter{act}
|
|
%\setcounter{scene}{0}
|
|
\begin{center}{}{%
|
|
\center}
|
|
\item[]ACT \theact \ignorespaces}
|
|
{\unskip \end{center}}
|
|
|
|
\newenvironment{dialogue}%
|
|
{\raggedright
|
|
\begin{list}{}{%
|
|
\setlength{\leftmargin}{.5in}
|
|
\setlength{\rightmargin}{.5in}
|
|
\setlength{\parsep}{0mm}
|
|
\setlength{\topsep}{0mm}}
|
|
\item[] \ignorespaces}
|
|
{\unskip \end{list}}
|
|
|
|
\newenvironment{narrative}%
|
|
{\raggedright
|
|
\fontshape{it}\selectfont{}
|
|
\begin{list}{}{%
|
|
\setlength{\leftmargin}{0in}
|
|
\setlength{\rightmargin}{0in}
|
|
\setlength{\parsep}{2mm}
|
|
\setlength{\topsep}{2mm}}
|
|
\item[] \ignorespaces}
|
|
{\unskip \end{list}}
|
|
|
|
\newenvironment{speaker}%
|
|
{\begin{center}{}{%
|
|
\center
|
|
\setlength{\parsep}{0mm}
|
|
\setlength{\topsep}{2mm}}
|
|
\item[] \ignorespaces}
|
|
{\unskip \end{center}}
|
|
|
|
\newenvironment{parenthetical}%
|
|
{\fontshape{it}\selectfont{}
|
|
\begin{center}{}{%
|
|
\center
|
|
\setlength{\parsep}{0mm}
|
|
\setlength{\topsep}{0mm}}
|
|
\item[](\ignorespaces}
|
|
{\unskip)\end{center}}
|
|
|
|
\endinput
|
|
%%
|
|
%% End of file `broadway.cls'.
|