| 1 |
% Documentation text for `screenwriter-doc.tex', version 1.0.2 |
| 2 |
% Paper size: A4 |
| 3 |
% J. A. Corbal, 2026 |
| 4 |
|
| 5 |
\documentclass[a4paper]{article} |
| 6 |
|
| 7 |
\usepackage[T1]{fontenc} |
| 8 |
%\usepackage[utf8]{inputenc} |
| 9 |
\usepackage[english]{babel} |
| 10 |
\usepackage{lmodern} |
| 11 |
\usepackage{microtype} |
| 12 |
\usepackage[colorlinks=true, |
| 13 |
linkcolor=blue, |
| 14 |
urlcolor=blue, |
| 15 |
citecolor=blue]{hyperref} |
| 16 |
|
| 17 |
\hypersetup{ |
| 18 |
pdftitle = {The screenwriter class}, |
| 19 |
pdfauthor = {J. A. Corbal}, |
| 20 |
pdfsubject = {Documentation for the screenwriter LaTeX class}, |
| 21 |
pdfkeywords = {LaTeX, screenplay, screenwriter, class}, |
| 22 |
%pdfcreator = {LaTeX}, |
| 23 |
} |
| 24 |
|
| 25 |
\newcommand{\meta}[1]{<\textit{#1}>} |
| 26 |
|
| 27 |
\title{The \textsf{screenwriter} class\thanks{This document was last |
| 28 |
revised and validated on \today.}} |
| 29 |
|
| 30 |
\author{J.~A.~Corbal\thanks{\texttt{jacorbal [at] gmail [dot] com}}} |
| 31 |
|
| 32 |
\date{Version~1.0.2 --- 2026-05-10} |
| 33 |
|
| 34 |
|
| 35 |
\begin{document}%{{{ |
| 36 |
|
| 37 |
\maketitle |
| 38 |
|
| 39 |
\begin{abstract} |
| 40 |
|
| 41 |
The \textsf{screenwriter} class provides a LaTeX document class for |
| 42 |
writing film and television screenplays. It is based on John Pate's |
| 43 |
\texttt{screenplay} class, updated for current LaTeX distributions |
| 44 |
and extended with modular language support and better integration |
| 45 |
with \texttt{babel}. |
| 46 |
|
| 47 |
\end{abstract} |
| 48 |
|
| 49 |
\section{Introduction}%{{{ |
| 50 |
|
| 51 |
The \textsf{screenwriter} class is a \LaTeX{} document class designed to |
| 52 |
typeset film and television screenplays. It provides the conventional |
| 53 |
screenplay layout (12\nobreak\thinspace pt monospaced type, specific |
| 54 |
margins, dialogue blocks, and sluglines) and a set of high-level |
| 55 |
commands tailored to the way screenwriters actually work. |
| 56 |
|
| 57 |
The class is based on John Pate's original \texttt{screenplay.cls}, but |
| 58 |
has been updated and extended for current \LaTeX{} systems. In |
| 59 |
particular, it modernises package loading, separates language-specific |
| 60 |
text into dedicated language definition files, and offers better |
| 61 |
cooperation with the \texttt{babel} package. |
| 62 |
|
| 63 |
Unlike generic article or book classes, \textsf{screenwriter} focuses on |
| 64 |
the visual and structural conventions of screenplays: scene headings, |
| 65 |
dialogue layout, transitions such as ``FADE IN:'' and ``FADE OUT:'', and |
| 66 |
a standardised cover page. The goal is to let authors concentrate on |
| 67 |
the script itself, while \LaTeX{} takes care of consistent formatting. |
| 68 |
|
| 69 |
The class is intended both for individual writers who like working with |
| 70 |
\LaTeX, and for production environments where reproducible layouts and |
| 71 |
multi-language support are important. |
| 72 |
|
| 73 |
%}}} |
| 74 |
|
| 75 |
\section{Installation}%{{{ |
| 76 |
|
| 77 |
This section describes a typical local installation in a personal \TeX{} |
| 78 |
tree. System-wide installation follows the same pattern, but requires |
| 79 |
administrator privileges. |
| 80 |
|
| 81 |
The distribution of \textsf{screenwriter} consists of the following |
| 82 |
types of files: |
| 83 |
|
| 84 |
\begin{itemize}\itemsep0em |
| 85 |
\item \texttt{screenwriter.cls}: the main document class. |
| 86 |
\item \texttt{screenwriter-lang-\meta{language}.ldf}: language |
| 87 |
definition files containing all language-dependent strings used |
| 88 |
by the class (e.g., ``FADE IN'', ``THE END'', ``INT.'', ``EXT.''). |
| 89 |
\item \texttt{screenwriter-doc.tex} \& \texttt{screenwriter-doc.pdf}: |
| 90 |
this documentation and its source. |
| 91 |
\item \texttt{LICENSE}: license file (LPPL\,1.3c). |
| 92 |
\item \texttt{README}: this file. |
| 93 |
\end{itemize} |
| 94 |
|
| 95 |
A typical \TeX{} directory structure might look like: |
| 96 |
|
| 97 |
\begin{verbatim} |
| 98 |
screenwriter/ |
| 99 |
LICENSE |
| 100 |
README |
| 101 |
doc/ |
| 102 |
screenwriter-doc.tex |
| 103 |
screenwriter-doc.pdf |
| 104 |
tex/ |
| 105 |
latex/ |
| 106 |
screenwriter/ |
| 107 |
screenwriter.cls |
| 108 |
lang/ |
| 109 |
screenwriter-lang-english.ldf |
| 110 |
screenwriter-lang-spanish.ldf |
| 111 |
... |
| 112 |
\end{verbatim} |
| 113 |
|
| 114 |
For a local installation, copy the \texttt{tex/latex/screenwriter/} |
| 115 |
contents into your personal \TeX{} tree, for example: |
| 116 |
|
| 117 |
\begin{center} |
| 118 |
\texttt{\$TEXMFHOME/tex/latex/screenwriter/} |
| 119 |
\end{center} |
| 120 |
where \texttt{\$TEXMFHOME} is usually \texttt{\~{}/texmf} on a standard |
| 121 |
\TeX{}~Live installation. The language definition files can be placed |
| 122 |
in a \texttt{lang/} subdirectory as shown above; the class looks for |
| 123 |
them as \texttt{lang/screenwriter-lang-\meta{language}.ldf}. |
| 124 |
|
| 125 |
After copying the files, update your file name database if required by |
| 126 |
your distribution (for example by running \texttt{mktexlsr} on \TeX{} |
| 127 |
Live). Once this is done, \LaTeX{} will be able to find the class and |
| 128 |
language files automatically, and you can use in any document: |
| 129 |
|
| 130 |
\begin{verbatim} |
| 131 |
\documentclass{screenwriter} |
| 132 |
\end{verbatim} |
| 133 |
|
| 134 |
%}}} |
| 135 |
|
| 136 |
\section{Basic usage}%{{{ |
| 137 |
|
| 138 |
This section shows a minimal example and explains the main elements that |
| 139 |
\textsf{screenwriter} provides out of the box. |
| 140 |
|
| 141 |
\subsection*{A minimal document} |
| 142 |
|
| 143 |
A very small English screenplay using the default layout might look as |
| 144 |
follows: |
| 145 |
|
| 146 |
\begin{verbatim} |
| 147 |
\documentclass{screenwriter} |
| 148 |
|
| 149 |
\title{My First Screenplay} |
| 150 |
\author{Screenwriter Name} |
| 151 |
|
| 152 |
\begin{document} |
| 153 |
\coverpage |
| 154 |
|
| 155 |
\fadein |
| 156 |
\intslug[DAY]{OFFICE} |
| 157 |
|
| 158 |
\begin{dialogue}{WRITER} |
| 159 |
This is a line of dialogue. |
| 160 |
\end{dialogue} |
| 161 |
|
| 162 |
\theend |
| 163 |
\end{document} |
| 164 |
\end{verbatim} |
| 165 |
|
| 166 |
The class sets up 12\nobreak\thinspace pt monospaced type, appropriate |
| 167 |
margins and dialogue widths, and a standard page style. The example |
| 168 |
uses only a few of the commands provided, but already shows the typical |
| 169 |
structure: cover page, opening transition, first scene heading, |
| 170 |
dialogue, and a final ``THE END'' marker. |
| 171 |
|
| 172 |
\subsection*{Basic structure} |
| 173 |
|
| 174 |
In a typical screenplay document: |
| 175 |
|
| 176 |
\begin{itemize} |
| 177 |
\item The preamble selects the class and language, using \\ |
| 178 |
\verb|\documentclass[⟨options⟩]{screenwriter}|, and provides |
| 179 |
meta-data such as \verb|\title| and \verb|\author|. |
| 180 |
\item The document body starts with \verb|\coverpage| or \verb|\nicholl| |
| 181 |
to produce a title page. |
| 182 |
\item Each scene begins with a slugline, such as \verb|\intslug| or |
| 183 |
\verb|\extslug|. |
| 184 |
\item Dialogue is set within the \verb|dialogue| environment, with |
| 185 |
optional parentheticals and continuation marks handled by |
| 186 |
\verb|\dialbreak|. |
| 187 |
\item Transitions such as \verb|\fadein|, \verb|\fadeout|, |
| 188 |
\verb|\intercut| and \verb|\flashback| are used where needed. |
| 189 |
\item The script can end with \verb|\theend|, which inserts the |
| 190 |
language-dependent ``THE END'' marker centered on the page. |
| 191 |
\end{itemize} |
| 192 |
|
| 193 |
%}}} |
| 194 |
|
| 195 |
\section{Options}%{{{ |
| 196 |
|
| 197 |
The \textsf{screenwriter} class accepts a small set of options that |
| 198 |
control page layout, screenplay style, and language. |
| 199 |
|
| 200 |
\subsection{Paper and layout options} |
| 201 |
|
| 202 |
The class internally loads the standard \texttt{article} class with |
| 203 |
12\nobreak\thinspace pt, one-column, one-sided settings, and then |
| 204 |
adjusts margins and text width to match common screenplay practice. |
| 205 |
|
| 206 |
Two paper size options are available: |
| 207 |
\begin{description} |
| 208 |
\item[\texttt{letterpaper}] Use US Letter paper (default). This is |
| 209 |
the usual choice for North American markets. |
| 210 |
\item[\texttt{a4paper}] Use A4 paper and adjust the text and dialogue |
| 211 |
widths accordingly. This is often more convenient for European |
| 212 |
printers and readers. |
| 213 |
\end{description} |
| 214 |
|
| 215 |
The screenplay style can be selected with: |
| 216 |
\begin{description} |
| 217 |
\item[\texttt{literary}] Literary (spec) screenplay style. Scene |
| 218 |
headings (sluglines) are printed without scene numbers. This is |
| 219 |
the default. |
| 220 |
\item[\texttt{technical}] Technical (numbered) style. Each scene |
| 221 |
heading is automatically numbered, and the scene number is |
| 222 |
printed in the margins. This is useful in production and |
| 223 |
shooting scripts. |
| 224 |
\end{description} |
| 225 |
|
| 226 |
Examples: |
| 227 |
\begin{verbatim} |
| 228 |
\documentclass[a4paper]{screenwriter} |
| 229 |
\documentclass[letterpaper,technical]{screenwriter} |
| 230 |
\end{verbatim} |
| 231 |
|
| 232 |
\subsection{Language options} |
| 233 |
|
| 234 |
The class separates language-dependent strings (such as ``FADE IN'', |
| 235 |
``THE END'', ``INT.'', ``EXT.'', ``TITLE OVER'', etc.) into external |
| 236 |
language definition files \verb|screenwriter-lang-⟨language⟩.ldf|. The |
| 237 |
language used by the class can be selected in two ways. |
| 238 |
|
| 239 |
\subsubsection*{Explicit language selection} |
| 240 |
|
| 241 |
You can explicitly choose the language via class options. The following |
| 242 |
languages are currently provided\footnote{The language files should |
| 243 |
undergo a formal review to ensure accuracy and consistency.}: |
| 244 |
\begin{center} |
| 245 |
|
| 246 |
\texttt{english}, \texttt{spanish}, \texttt{french}, |
| 247 |
\texttt{german}, \texttt{italian}, \\ |
| 248 |
\texttt{portuguese}, \texttt{galician}, \texttt{catalan}, |
| 249 |
\texttt{esperanto} |
| 250 |
|
| 251 |
\end{center} |
| 252 |
|
| 253 |
For example: |
| 254 |
\begin{verbatim} |
| 255 |
\documentclass[spanish]{screenwriter} |
| 256 |
\end{verbatim} |
| 257 |
tells the class to use Spanish strings and to therefore load the |
| 258 |
language file \verb|lang/screenwriter-lang-spanish.ldf|, regardless of |
| 259 |
whether the document uses \texttt{babel} or not. |
| 260 |
|
| 261 |
\subsubsection*{Cooperation with \texttt{babel}} |
| 262 |
|
| 263 |
If no explicit language option is given to \textsf{screenwriter}, but |
| 264 |
the user loads \texttt{babel} with a language, the class will attempt to |
| 265 |
detect the current \texttt{babel} language via \verb|\languagename| at |
| 266 |
\verb|\begin{document}|. It then tries to load the corresponding |
| 267 |
language file: |
| 268 |
\begin{verbatim} |
| 269 |
\documentclass{screenwriter} |
| 270 |
\usepackage[french]{babel} |
| 271 |
\end{verbatim} |
| 272 |
|
| 273 |
In this case, the class will look for |
| 274 |
\verb|lang/screenwriter-lang-french.ldf| and use French strings for all |
| 275 |
its internal labels. If no matching language file is found, the class |
| 276 |
falls back to English. |
| 277 |
|
| 278 |
\paragraph{Note.} The class \textsf{screenwriter} does \emph{not} load |
| 279 |
\texttt{babel} on its own; users are free to choose \texttt{babel}, |
| 280 |
\texttt{polyglossia}, or no multilingual package at all. The class only |
| 281 |
mirrors the active language when possible. |
| 282 |
|
| 283 |
%}}} |
| 284 |
|
| 285 |
\section{Commands}%{{{ |
| 286 |
|
| 287 |
This section summarises the main commands and environments provided by |
| 288 |
the \textsf{screenwriter} class. They are grouped by function: title |
| 289 |
and address information, sluglines (scene headings), dialogue, and |
| 290 |
transitions. |
| 291 |
|
| 292 |
\subsection{Title and cover page} |
| 293 |
|
| 294 |
The class reuses the standard \LaTeX{} meta-data commands |
| 295 |
\verb|\title| and \verb|\author|, and adds a few macros specific to |
| 296 |
screenplays. |
| 297 |
|
| 298 |
\begin{description} |
| 299 |
\item[] \verb|\title{<title>}|\quad Sets the script title. This is |
| 300 |
used on the cover page and may also appear on the first page of the |
| 301 |
script. |
| 302 |
\item[] \verb|\author{<name>}|\quad Sets the author name shown |
| 303 |
beneath the title. |
| 304 |
\item[]\verb|\realauthor{<name>}|\quad Sets the real author name, |
| 305 |
as printed in the address block on the cover when \verb|\author| |
| 306 |
refers to a pseudonym, or a shorter version of the name. By |
| 307 |
default, this is the same as \verb|\author|. |
| 308 |
\item[]\verb|\address{<text>}|\quad Sets the contact address that |
| 309 |
appears in the cover page address block. The default is a generic |
| 310 |
``Contact via Agency'' (or its language-dependent equivalent). |
| 311 |
\item[]\verb|\agent{<text>}|\quad Sets the agent information for the |
| 312 |
cover page. By default, this is left empty. |
| 313 |
\end{description} |
| 314 |
|
| 315 |
Once these values are set, you can produce a cover page using: |
| 316 |
\begin{description} |
| 317 |
\item[] \verb|\coverpage|\quad Typesets a standard cover page: title |
| 318 |
in uppercase, ``by'' (or its translation) and author name, and an |
| 319 |
address block containing agent and author contact information. |
| 320 |
The page counter is reset to~1 afterwards. |
| 321 |
\item[] \verb|\nicholl|\quad Produces a simpler title page variant |
| 322 |
with just the title centered on the page and no address block. |
| 323 |
The page counter is also reset to~1. |
| 324 |
\end{description} |
| 325 |
|
| 326 |
\subsection{Sluglines (scene headings)} |
| 327 |
|
| 328 |
Sluglines mark the beginning of scenes, typically with ``INT.'' or |
| 329 |
``EXT.'', the location, and time of day. The class offers commands that |
| 330 |
build upon the language-dependent abbreviations defined in the language |
| 331 |
files. |
| 332 |
\begin{description} |
| 333 |
\item[] \verb|\intslug[⟨qualifier⟩]{⟨location⟩}|\quad Interior |
| 334 |
slugline. The class prints the language-specific ``INT'' |
| 335 |
abbreviation, followed by the location and any qualifier (such as |
| 336 |
``DAY'', ``NIGHT''). The optional \verb|⟨qualifier⟩| argument is |
| 337 |
placed at the end of the slugline, separated by a symbol, usually |
| 338 |
a dash. |
| 339 |
\item[] \verb|\extslug[⟨qualifier⟩]{⟨location⟩}|\quad Exterior |
| 340 |
slugline. As above, but using the ``EXT'' abbreviation. |
| 341 |
\item[] \verb|\intextslug[⟨qualifier⟩]{⟨location⟩}|\quad Combined |
| 342 |
interior/exterior slugline (``INT./EXT.''), useful for scenes that |
| 343 |
move between inside and outside. |
| 344 |
\item[] \verb|\extintslug[⟨qualifier⟩]{⟨location⟩}|\quad Combined |
| 345 |
exterior/interior slugline (``EXT./INT.''). |
| 346 |
\end{description} |
| 347 |
|
| 348 |
In \texttt{literary} mode, sluglines are printed without scene numbers. |
| 349 |
In \texttt{technical} mode, each slugline increments an internal scene |
| 350 |
counter and prints the scene number in the margins. |
| 351 |
|
| 352 |
A typical usage might be: |
| 353 |
\begin{verbatim} |
| 354 |
\intslug{OFFICE -- DAY} |
| 355 |
\extslug[NIGHT]{STREET} |
| 356 |
\end{verbatim} |
| 357 |
|
| 358 |
\subsection{Dialogue} |
| 359 |
|
| 360 |
Dialogue is set using a dedicated environment which handles character |
| 361 |
names, optional parenthetical remarks, and the width and indentation of |
| 362 |
dialogue blocks. |
| 363 |
|
| 364 |
\begin{description} |
| 365 |
\item[] \verb|\begin{dialogue}[⟨paren⟩]{⟨CHARACTER⟩} ... \end{dialogue}|\quad |
| 366 |
Starts a dialogue block for the given character name. The character |
| 367 |
name is printed in uppercase at the standard dialogue position. The |
| 368 |
optional \verb|⟨paren⟩| argument allows you to add a parenthetical |
| 369 |
remark (such as ``whispering''), which is typeset in parentheses |
| 370 |
above the dialogue text. |
| 371 |
|
| 372 |
Example: |
| 373 |
\begin{verbatim} |
| 374 |
\begin{dialogue}[whispering]{WRITER} |
| 375 |
This is a whispered line. |
| 376 |
\end{dialogue} |
| 377 |
\end{verbatim} |
| 378 |
|
| 379 |
\item[] \verb|\dialbreak[⟨paren⟩]{⟨CHARACTER⟩}|\quad Ends the current |
| 380 |
\verb|dialogue| environment with a ``(MORE)'' marker, starts a new |
| 381 |
page, and opens a new dialogue block for the same character, |
| 382 |
labelled with a continuation marker (typically ``(CONT'D)'' or its |
| 383 |
translation). The optional \verb|⟨paren⟩| argument works as for |
| 384 |
\verb|dialogue|. |
| 385 |
|
| 386 |
This is useful when a character's speech continues across a page |
| 387 |
break in the final layout. |
| 388 |
\end{description} |
| 389 |
|
| 390 |
Parenthetical remarks can also be inserted manually using: |
| 391 |
\begin{description} |
| 392 |
\item[] \verb|\paren{⟨text⟩}|\quad Typesets a parenthetical remark in |
| 393 |
a narrower column, typically centered under the character name and |
| 394 |
above the next line of dialogue. |
| 395 |
\end{description} |
| 396 |
|
| 397 |
\subsection{Transitions and labels} |
| 398 |
|
| 399 |
The class provides a number of commands for common transitions and |
| 400 |
on-screen text labels. Their exact spelling and punctuation are |
| 401 |
language-dependent and defined in the language files. |
| 402 |
\begin{description} |
| 403 |
\item[] \verb|\fadein|\quad Inserts the language-specific ``FADE |
| 404 |
IN:'' label followed by a vertical skip. This is typically used at |
| 405 |
the beginning of the script. |
| 406 |
\item[] \verb|\fadeout|\quad Inserts the language-specific ``FADE |
| 407 |
OUT:'' label (or its equivalent), usually aligned to the right in |
| 408 |
the standard transition position. |
| 409 |
\item[] \verb|\intercut|\quad Inserts an ``INTERCUT WITH:'' label, |
| 410 |
usually flush right, to indicate intercutting between locations. |
| 411 |
\item[] \verb|\flashback|\quad Inserts a ``FLASHBACK TO:'' label (or |
| 412 |
equivalent), again in the standard transition position. |
| 413 |
\end{description} |
| 414 |
|
| 415 |
For on-screen textual titles, use the \verb|titleover| environment: |
| 416 |
\begin{description} |
| 417 |
\item[] \verb|\begin{titleover}[⟨qualifier⟩] ... \end{titleover}|\quad |
| 418 |
Starts a ``TITLE OVER:'' block. The optional \verb|⟨qualifier⟩| |
| 419 |
argument allows additional specification (for example, a location or |
| 420 |
person). The body of the environment is typeset as the on-screen |
| 421 |
text. |
| 422 |
|
| 423 |
Within this environment, \verb|\titbreak| can be used to mark a |
| 424 |
break to the next page while indicating that the title continues. |
| 425 |
\end{description} |
| 426 |
|
| 427 |
Finally, to mark the end of the script: |
| 428 |
\begin{description} |
| 429 |
\item[] \verb|\theend|\quad Typesets the language-specific ``THE |
| 430 |
END'' (or equivalent) centered on the page. |
| 431 |
\end{description} |
| 432 |
|
| 433 |
%}}} |
| 434 |
|
| 435 |
\section{Language files}%{{{ |
| 436 |
|
| 437 |
All language-dependent strings used by the \textsf{screenwriter} class |
| 438 |
are defined in separate language files named |
| 439 |
\verb|screenwriter-lang-⟨language⟩.ldf|. This keeps the core class code |
| 440 |
independent of any particular language and makes it easy to add new |
| 441 |
languages or adjust existing ones. |
| 442 |
|
| 443 |
\subsection*{Structure of a language file} |
| 444 |
|
| 445 |
A typical language file has the following structure: |
| 446 |
|
| 447 |
\begin{verbatim} |
| 448 |
\ProvidesFile{screenwriter-lang-spanish.ldf}[2026/05/09 v0.1 Spanish] |
| 449 |
|
| 450 |
\renewcommand*{\myaddresstext}{Agencia de contacto} |
| 451 |
\renewcommand*{\mymoretext}{(M\'AS)} |
| 452 |
\renewcommand*{\mycontdtext}{(CONT.)} |
| 453 |
\renewcommand*{\myoffscreentext}{(F.P.)} |
| 454 |
\renewcommand*{\myvoiceovertext}{(\emph{OFF})} |
| 455 |
\renewcommand*{\myfadeintext}{ABRE DE NEGRO} |
| 456 |
\renewcommand*{\myfadeouttext}{FUNDE A NEGRO} |
| 457 |
\renewcommand*{\myadlibtext}{\emph{ad~lib.}} |
| 458 |
\renewcommand*{\mypunctcharA}{:} |
| 459 |
\renewcommand*{\mypunctcharB}{.} |
| 460 |
\renewcommand*{\myplacesep}{.~} |
| 461 |
\renewcommand*{\mysepintext}{./} |
| 462 |
\renewcommand*{\mybytext}{por} |
| 463 |
\renewcommand*{\myinttext}{INT} |
| 464 |
\renewcommand*{\myexttext}{EXT} |
| 465 |
\renewcommand*{\mytitleovertext}{R\'OTULO} |
| 466 |
\renewcommand*{\myintercuttext}{CORTE A} |
| 467 |
\renewcommand*{\myflashbacktext}{ANALEPSIS A} |
| 468 |
\renewcommand*{\mypovtext}{P.D.V.} |
| 469 |
\renewcommand*{\myreverttext}{REGRESO DE \pov} |
| 470 |
\renewcommand*{\mythirtytext}{FIN} |
| 471 |
\renewcommand*{\myslugspace}{ -- } |
| 472 |
\end{verbatim} |
| 473 |
|
| 474 |
The file starts with a \verb|\ProvidesFile| declaration, followed by |
| 475 |
a series of \verb|\renewcommand*| statements that assign the |
| 476 |
language-specific strings to the internal macros used by the class. No |
| 477 |
packages are loaded and no options are processed in these files; they |
| 478 |
only contain definitions. |
| 479 |
|
| 480 |
The class expects the following macros to be defined (or redefined) by |
| 481 |
each language file: |
| 482 |
\begin{itemize} |
| 483 |
\item Cover and address strings:\\ |
| 484 |
\verb|\myaddresstext|, \verb|\mybytext|. |
| 485 |
\item Dialogue markers:\\ |
| 486 |
\verb|\mymoretext|, \verb|\mycontdtext|, |
| 487 |
\verb|\myoffscreentext|, \verb|\myvoiceovertext|, |
| 488 |
\verb|\myadlibtext|. |
| 489 |
\item Transitions and labels:\\ |
| 490 |
\verb|\myfadeintext|, \verb|\myfadeouttext|, |
| 491 |
\verb|\mytitleovertext|, \verb|\myintercuttext|, |
| 492 |
\verb|\myflashbacktext|. |
| 493 |
\item Scene heading components:\\ |
| 494 |
\verb|\myinttext|, \verb|\myexttext|, |
| 495 |
\verb|\myplacesep|, \verb|\mysepintext|, |
| 496 |
\verb|\myslugspace|. |
| 497 |
\item Other:\\ |
| 498 |
\verb|\mypovtext|, \verb|\myreverttext|, |
| 499 |
\verb|\mythirtytext|. |
| 500 |
\end{itemize} |
| 501 |
|
| 502 |
\subsection*{Customizing individual strings} |
| 503 |
|
| 504 |
In some cases, users may wish to keep a given language but customise the |
| 505 |
wording of one or two internal strings (for example, preferring ``SMASH |
| 506 |
CUT TO:'' instead of ``CUT TO:''). Since all language-dependent text is |
| 507 |
stored in macros, this can be done directly in the document preamble. |
| 508 |
|
| 509 |
For example, to change the ``FADE IN'' label while still using the |
| 510 |
English language file: |
| 511 |
\begin{verbatim} |
| 512 |
\documentclass[english]{screenwriter} |
| 513 |
|
| 514 |
% custom wording for the opening transition |
| 515 |
\renewcommand*{\fadeintext}{SMASH CUT IN} |
| 516 |
|
| 517 |
\begin{document} |
| 518 |
\fadein |
| 519 |
... |
| 520 |
\end{document} |
| 521 |
\end{verbatim} |
| 522 |
|
| 523 |
Likewise, to adjust only the ``THE END'' marker in Spanish: |
| 524 |
|
| 525 |
\begin{verbatim} |
| 526 |
\documentclass[spanish]{screenwriter} |
| 527 |
|
| 528 |
% use a different final marker |
| 529 |
\renewcommand*{\thirtytext}{FIN DE LA OBRA} |
| 530 |
|
| 531 |
\begin{document} |
| 532 |
... |
| 533 |
\theend |
| 534 |
\end{document} |
| 535 |
\end{verbatim} |
| 536 |
|
| 537 |
When using \texttt{babel}, these customisations should be placed in the |
| 538 |
preamble \emph{after} loading the class and any multilingual packages, |
| 539 |
so that they override the values set by the language definition file. |
| 540 |
|
| 541 |
\subsection*{Adding a new language} |
| 542 |
|
| 543 |
To add support for a new language, you only need to: |
| 544 |
\begin{enumerate} |
| 545 |
\item Create a new file |
| 546 |
\verb|screenwriter-lang-⟨language⟩.ldf| in the \texttt{lang/} |
| 547 |
subdirectory, based on one of the existing language files. |
| 548 |
\item Provide appropriate translations for all \verb|\my...| macros. |
| 549 |
\item Optionally, define a class option in \texttt{screenwriter.cls} |
| 550 |
so a new language can be selected explicitly, e.g. |
| 551 |
\begin{verbatim} |
| 552 |
\DeclareOption{⟨language⟩}{% |
| 553 |
\def\screenwriter@lang{⟨language⟩}% |
| 554 |
\screenwriter@lang@explicittrue} |
| 555 |
\end{verbatim} |
| 556 |
\end{enumerate} |
| 557 |
|
| 558 |
If no explicit class option is given, but the document uses |
| 559 |
\texttt{babel} and the current \verb|\languagename| matches the file |
| 560 |
name, \textsf{screenwriter} will automatically pick up the new language |
| 561 |
file without further changes to the class. |
| 562 |
|
| 563 |
%}}} |
| 564 |
|
| 565 |
\section{License and credits}%{{{ |
| 566 |
|
| 567 |
% LPPL, agradecimiento a John Pate, etc. |
| 568 |
This work may be distributed and/or modified under the conditions of the |
| 569 |
\emph{\LaTeX{} Project Public License} (LPPL), either version~1.3c of |
| 570 |
this license or (at your option) any later version. |
| 571 |
|
| 572 |
The latest version of the LPPL is available at: |
| 573 |
\begin{center} |
| 574 |
\url{https://www.latex-project.org/lppl.txt} |
| 575 |
\end{center} |
| 576 |
|
| 577 |
\noindent |
| 578 |
Feedback, bug reports, and suggestions for new language files are very |
| 579 |
welcome. |
| 580 |
|
| 581 |
\subsection*{Credits} |
| 582 |
|
| 583 |
The design of \textsf{screenwriter} is based on John Pate's original |
| 584 |
\texttt{screenplay} class, which provided an early solution for |
| 585 |
typesetting screenplays in \LaTeX{}. |
| 586 |
|
| 587 |
The present class updates and extends that work for current \LaTeX{} |
| 588 |
distributions, introduces modular language support, and refines several |
| 589 |
aspects of the layout and implementation. Any remaining mistakes or |
| 590 |
omissions are the responsibility of the current maintainer. |
| 591 |
|
| 592 |
%}}} |
| 593 |
|
| 594 |
\end{document} |
| 595 |
|
| 596 |
%}}} |