Drama class

This commit is contained in:
Alexander Yakovlev 2012-12-25 09:49:02 +07:00
parent 5f747ff0f7
commit ce75598d95
2 changed files with 139 additions and 4 deletions

View File

@ -1,5 +1,6 @@
sudo mkdir -p /usr/share/texmf-dist/tex/xetex/oreolek
sudo ln -s `pwd`/oreolek-article.cls /usr/share/texmf-dist/tex/xetex/oreolek/oreolek-article.cls
sudo ln -s `pwd`/oreolek-book.cls /usr/share/texmf-dist/tex/xetex/oreolek/oreolek-book.cls
sudo texhash
mkdir -p /usr/share/texmf-dist/tex/xetex/oreolek
ln -s `pwd`/oreolek-article.cls /usr/share/texmf-dist/tex/xetex/oreolek/oreolek-article.cls
ln -s `pwd`/oreolek-book.cls /usr/share/texmf-dist/tex/xetex/oreolek/oreolek-book.cls
ln -s `pwd`/oreolek-script.cls /usr/share/texmf-dist/tex/xetex/oreolek/oreolek-script.cls

oreolek-script.cls Normal file
View File

@ -0,0 +1,134 @@
%% 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.
% 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...
% And now some stage directions...
{\vspace{1em}\normalsize \scshape \mdseries#1\vspace{1ex}}%
% Now comes the cast list and stage notes...
\newcommand{\castpage}{\newscenenamed{\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!