| 1 |
% !TEX TS-program = pdflatexmk |
| 2 |
|
| 3 |
\documentclass[11pt]{article} |
| 4 |
\title{\textbf{The \textsf{screenplay-pkg} package}} |
| 5 |
\author{\textbf{Alan Munn}\\Department of Linguistics and Languages\\Michigan State University\\\texttt{\href{mailto:[email protected]}{[email protected]}}} |
| 6 |
\date{Version 1.1\\August 5, 2017} |
| 7 |
\usepackage[T1]{fontenc} |
| 8 |
\usepackage[margin=1in]{geometry} |
| 9 |
\usepackage{titling} |
| 10 |
\usepackage[utf8]{inputenc} |
| 11 |
\usepackage{array, booktabs, multicol, fancyhdr, xspace,tabularx} |
| 12 |
\usepackage{enumitem} |
| 13 |
\usepackage{fancyvrb,listings,url} |
| 14 |
\usepackage[sf,compact]{titlesec} |
| 15 |
\usepackage{screenplay-pkg} |
| 16 |
\usepackage[colorlinks=true]{hyperref} |
| 17 |
|
| 18 |
|
| 19 |
\DefineShortVerb{\|} |
| 20 |
\newcommand*\bs{\textbackslash} |
| 21 |
|
| 22 |
\IfFileExists{luximono.sty}% |
| 23 |
{% |
| 24 |
\usepackage[scaled]{luximono}% |
| 25 |
} |
| 26 |
{% |
| 27 |
\IfFileExists{beramono.sty}% |
| 28 |
{% |
| 29 |
\usepackage[scaled]{beramono}% |
| 30 |
}{} |
| 31 |
} |
| 32 |
|
| 33 |
|
| 34 |
\lstset{% |
| 35 |
basicstyle=\ttfamily\small, |
| 36 |
commentstyle=\itshape\ttfamily\small, |
| 37 |
showspaces=false, |
| 38 |
showstringspaces=false, |
| 39 |
breaklines=true, |
| 40 |
breakautoindent=true, |
| 41 |
captionpos=t |
| 42 |
language=TeX |
| 43 |
} |
| 44 |
|
| 45 |
\newcommand*{\pkg}[1]{\texttt{#1}\xspace} |
| 46 |
\setitemize[1]{label={}} |
| 47 |
\setitemize[2]{label={}} |
| 48 |
\setdescription{font={\normalfont}} |
| 49 |
\setlength{\droptitle}{-1in} |
| 50 |
|
| 51 |
\lhead{} |
| 52 |
\chead{} |
| 53 |
\rhead{} |
| 54 |
\lfoot{\emph{}} |
| 55 |
\cfoot{\thepage} |
| 56 |
\rfoot{} |
| 57 |
\renewcommand{\headrulewidth}{0pt} |
| 58 |
\renewcommand{\footrulewidth}{0pt} |
| 59 |
\pagestyle{fancy} |
| 60 |
|
| 61 |
|
| 62 |
\begin{document} |
| 63 |
\maketitle |
| 64 |
\thispagestyle{empty} |
| 65 |
\renewcommand{\abstractname}{\sffamily Abstract} |
| 66 |
|
| 67 |
\abstract{\noindent\begin{quote}This is a package version of the \pkg{screenplay} document class. The class version is designed to produce a properly formatted screenplay manuscript. This package version allows portions of screenplays formatted using the class methods to be included into other document classes. |
| 68 |
\end{quote} |
| 69 |
\section{Introduction} |
| 70 |
This package arose out of a question asked on the StackExchange website: \href{http://tex.stackexchange.com/q/26227/}{Converting document classes into environments: is it possible?} The question asked how easy it would be convert the class functionality into an environment. This package is the result of that discussion. |
| 71 |
\section{Package use} |
| 72 |
To use the package just load it like any other package: |
| 73 |
|
| 74 |
\begin{lstlisting} |
| 75 |
\usepackage{screenplay-pkg} |
| 76 |
\end{lstlisting} |
| 77 |
|
| 78 |
\subsection{New commands} |
| 79 |
The package implements one new environment and two formatting hooks for it. |
| 80 |
The |screenplay| environment provides an environment to wrap a screenplay fragment. Within this environment, you should use any of the macros defined in the \href{https://www.ctan.org/pkg/screenplay}{\pkg{screenplay}} class. Please consult its documentation for details. |
| 81 |
\begin{lstlisting} |
| 82 |
\begin{screenplay} |
| 83 |
|
| 84 |
\end{screenplay} |
| 85 |
\end{lstlisting} |
| 86 |
|
| 87 |
Two additional user commands are added to allow for user adjustment of the |
| 88 |
fragment font and linespacing (the \pkg{setspace} package is used for spacing unless the \pkg{memoir} class is loaded). American spellings of the centring commands have also been created. British spellings of these commands are retained: |
| 89 |
|
| 90 |
\begin{center} |
| 91 |
|
| 92 |
\begin{tabular}{l>{\raggedright\arraybackslash}p{3.5in}} |
| 93 |
\toprule |
| 94 |
\textsf{Command} & \textsf{Explantion}\\ |
| 95 |
|\screenspacing{}| & sets the linespacing for screenplay fragments\\ |
| 96 |
& default is |\onehalfspacing|\\ |
| 97 |
& (if \pkg{memoir} is loaded, |\OnehalfSpacing|)\\ |
| 98 |
|\screenfont{}| & sets the font for screenplay fragments\\ |
| 99 |
& default is |\ttfamily|\\ |
| 100 |
|\sccenter | & American spellings of centring commands now possible\\ |
| 101 |
|\centertitle| & \\ |
| 102 |
\bottomrule |
| 103 |
\end{tabular} |
| 104 |
|
| 105 |
|
| 106 |
\end{center} |
| 107 |
\subsection{Eliminated commands} |
| 108 |
All commands from the \pkg{screenplay} class that relate to creating the title page have been removed from the package version of the class. |
| 109 |
\section{Troubleshooting and package dependencies} |
| 110 |
\subsection{Package dependencies} |
| 111 |
Note that the package uses the \pkg{setspace} package for linespacing. If you are using the \pkg{memoir} class which provides its own linespacing methods the package will use its linespacing commands instead. |
| 112 |
|
| 113 |
\subsection{Bugs} |
| 114 |
You are welcome to report bugs and submit feature requests, but I should warn you that this package is extremely low priority for me in terms of maintenance, as I do not use it at all. If you are interested in taking it over, please get in touch with me. |
| 115 |
|
| 116 |
\section{Sample document} |
| 117 |
The following is a sample document showing how the package is used. It can be found in the documentation folder for the package. |
| 118 |
\lstinputlisting{screenplay-pkg-example.tex} |
| 119 |
|
| 120 |
\end{document} |
| 121 |
|
| 122 |
|
| 123 |
|