diff options
author | Karl Berry <karl@freefriends.org> | 2014-06-26 21:41:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-06-26 21:41:02 +0000 |
commit | 8fd5b53b4f8bca37960bb736b26c30a1f6e4c575 (patch) | |
tree | 19d950c0782c3b2072a29fd50a24f903a5eb7aa9 /Master/texmf-dist/tex/latex/thalie | |
parent | f4e5b3818f612b0d0d9192ef22c1ceaea54f1f48 (diff) |
thalie (26jun14)
git-svn-id: svn://tug.org/texlive/trunk@34435 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/thalie')
-rw-r--r-- | Master/texmf-dist/tex/latex/thalie/thalie.sty | 60 |
1 files changed, 45 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/thalie/thalie.sty b/Master/texmf-dist/tex/latex/thalie/thalie.sty index f746cd2bc96..bb6f82f0916 100644 --- a/Master/texmf-dist/tex/latex/thalie/thalie.sty +++ b/Master/texmf-dist/tex/latex/thalie/thalie.sty @@ -5,7 +5,7 @@ %% The original source files were: %% %% thalie.dtx (with options: `package') -%% Copyright 2013 Louis Paternault +%% Copyright 2014 Louis Paternault %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -23,7 +23,7 @@ %% and the derived file thalie.sty. \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{thalie} - [2013/06/08 v0.5 A package to typeset drama plays] + [2014/06/26 v0.6 A package to typeset drama plays] \RequirePackage{ifthen} \RequirePackage{etoolbox} \RequirePackage{suffix} @@ -41,6 +41,9 @@ characterstyle/center/.code=\def\@characterstyle{center}, characterstyle/margin/.code=\def\@characterstyle{margin}, characterstyle/simple/.code=\def\@characterstyle{simple}, + characterstyle/arden/.code=\def\@characterstyle{arden}, + characterstyle/imprimerie-verse/.code=\def\@characterstyle{imprimerie-verse}, + characterstyle/imprimerie-prose/.code=\def\@characterstyle{imprimerie-prose}, characterstyle, } @@ -229,7 +232,7 @@ \ifthenelse{\equal{\@short}{}}{ \def\@label{\actname{} \theact{}} }{ - \def\@label{\actname{} \theact{}: } + \def\@label{\actname{} \theact{}\xspace: } } \@clearpage{\@actlevel} \actmark{\@label\@short} @@ -258,7 +261,7 @@ \ifthenelse{\equal{\@short}{}}{ \def\@label{\scenename{} \thescene{}} }{ - \def\@label{\scenename{} \thescene{}: } + \def\@label{\scenename{} \thescene{}\xspace: } } \@clearpage{\@scenelevel} \scenemark{\@label\@short} @@ -286,7 +289,7 @@ \ifthenelse{\equal{\@short}{}}{ \def\@label{\interludename{}} }{ - \def\@label{\interludename{}: } + \def\@label{\interludename{}\xspace: } } \ifthenelse{\equal{\@interludelevel}{play}}{ \@clearpage{\@playlevel} @@ -333,11 +336,11 @@ % Bold style \newcommand\speakswithdirection[2]{% \noindent% - {\bfseries\sffamily #1} \did{#2}{\bfseries\sffamily :}% + {\bfseries\sffamily #1} \emph{(#2)}\xspace:% } \newcommand\speakswithoutdirection[1]{% \noindent% - {\bfseries\sffamily #1 :}% + {\bfseries\sffamily #1\xspace:}% }% }{}% \ifthenelse{\equal{\@characterstyle}{center}}{% @@ -353,15 +356,43 @@ \end{center}% }% }{}% +\ifthenelse{\equal{\@characterstyle}{imprimerie-verse}}{% + % Style for verse plays defined by the French Imprimerie nationale + \newcommand\speakswithdirection[2]{% + \begin{center}% + \textsc{#1}, \emph{#2}% + \end{center}% + }% + \newcommand\speakswithoutdirection[1]{% + \begin{center}% + \textsc{#1}% + \end{center}% + }% +}{}% +\ifthenelse{\equal{\@characterstyle}{imprimerie-prose}}{% + % Style for prose plays defined by the French Imprimerie nationale + \newcommand\speakswithdirection[2]{% + \noindent\hspace*{-\parindent}\textsc{#1}, \emph{#2}\xspace:% + }% + \newcommand\speakswithoutdirection[1]{% + \noindent\hspace*{-\parindent}\textsc{#1}\xspace:% + }% +}{}% +\ifthenelse{\equal{\@characterstyle}{arden}}{% + \newcommand\speakswithdirection[2]{% + \noindent\hspace*{-\parindent}\textsc{\MakeLowercase{#1}} [\emph{#2}]\quad% + }% + \newcommand\speakswithoutdirection[1]{% + \noindent\hspace*{-\parindent}\textsc{\MakeLowercase{#1}}\quad% + }% +}{}% \ifthenelse{\equal{\@characterstyle}{simple}}{% % Simple style \newcommand\speakswithdirection[2]{% - \medskip% - \indent\textsc{#1}, \emph{#2} :% + \indent\textsc{#1}, \emph{#2}\xspace:% }% \newcommand\speakswithoutdirection[1]{% - \medskip% - \indent\textsc{#1} :% + \indent\textsc{#1}\xspace:% }% }{}% \ifthenelse{\equal{\@characterstyle}{margin}}{% @@ -421,7 +452,7 @@ \newenvironment{charactergroup}[1]{% \gdef\@groupname{#1} \gappto{\@dramatis@hook}{ - \begin{math}\left. + \hspace{-7.2pt}\begin{math}\left. \begin{tabular}{ll} } }{% @@ -461,7 +492,7 @@ \@ifundefined{#1name}{% }{% \ClassError{thalie}{% - A command named \@backslashchar#1name already exists. We cannont define a + A command named \@backslashchar#1name already exists. We cannot define a new one.% }{% Choose another command name to introduce character #2's lines, such that @@ -521,10 +552,9 @@ \newcommand{\disposablecharacter}[2][]{% \@speaks[#1]{#2}% } -\newcommand{\onstage}[1]{{\centering \emph{#1}\\}} +\newcommand{\onstage}[1]{{\centering \emph{#1}\par\medskip}} \newcommand{\did}[1]{\emph{(#1)} } \newenvironment{dida}{% - \medskip \begin{quote} \begin{em} }{% |