You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

168 lines
4.9 KiB

%% Based on sides package Copyright (c) 2005 Wing L. Mui
%% This class package was based on the package ``plari'' written by
%% Antti-Juhani Kaijanaho in 1998.
%% This program is free software; you can redistribute it and/or modify
%% it under the terms of the GNU General Public License as published by
%% the Free Software Foundation; either version 2 of the License, or
%% (at your option) any later version.
%% This program is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% GNU General Public License for more details.
%% You should have received a copy of the GNU General Public License
%% along with this program; see the file COPYING. If not, write to
%% the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
%% Boston, MA 02111-1307, USA.
\typeout{plari_prime <\filedate:\fileversion> - typesetting stageplay scripts}
% We will be basing this class on the report class.
\PassOptionsToClass{\CurrentOption}{extreport}% or book or whatever
% Now we initialize the counters.
% The newact commands create new pages and a huge heading.
% Change the vspace parameters if you want to change the spacing after
% an act title.
\newpage{\centering \mdseries \Huge #1\par}
\vspace{1.5em plus .5em minus .5em}%
\actdef{\MakeUppercase{Акт} \Roman{act}}
% We are going to make each scene a section so scenes do not
% get orphaned from their tltles.
% To modify spacing before and after scene titles, modify this:
\newcommand{\scenedef}{\@startsection {scene}{1}{0pt}%
{3em} % space before title
{2em} % space after title
% These are the new scene commands.
{\scenedef*{\MakeUppercase{Сцена} \arabic{scene}}}
% Similarly, we use sections for the dialogue to avoid orphans.
% Once again, if you wish to change the skip amounts, do so here.
\@startsection {diag}{2}{0pt}{1em}{0.25pt}{\centering\normalsize\mdseries\scshape}
% Now for something simple...
\newcommand{\pause}{\paren{Пауза.} }
% And now some stage directions...
{\vspace{1em}\normalsize \scshape \mdseries#1\vspace{1ex}}%
% Now comes the cast list and stage notes...
\newcommand{\castpage}{\newscenenamednocnt{\MakeUppercase{Действующие лица}}}
\textsc{#1}, #2. \par
\@startsection {scene}{1}{0pt}{1em}{1em}{\centering\mdseries\normalsize}*{#1}
% We also want there to be no indents and a medskip between long paragraphs
% of text. If you do not want there to be a skip, comment out the second line.
% Now we make our formatting pretty. These options can be overrided easily.
\evensidemargin 0in
\topmargin 0in
\textheight 8.5in
\baselineskip 14pt
\oddsidemargin 0.25in
\textwidth 6in
% And we're done!
\defaultfontfeatures{Mapping=tex-text, Scale=MatchLowercase, Ligatures=TeX}
\setmainfont{PT Serif}[BoldFont={* Bold}, BoldItalicFont={* Bold Italic}, SmallCapsFont = {* Caption}]
\setmonofont{PT Mono}
\setmathrm{PT Serif}
\newfontfamily{\cyrillicfont}{PT Serif}
\author{Александр Яковлев}