Im new to LaTeX and trying to do a dialog for a script. I know that there are a few packages out there that do that, like dramatist, plari etc.
Anyway, I figured that i want to make it as simple as possible. The output is intented to look something like this(_=whitespace):
Character:______________What the characther is saying goes here.
________________________More what the character is saying.
________________________Something is happening
Character 2:____________More to say.
What i´ve done so far is make a new environment, but get an unwanted linebreak, otherwise it seems to be working:
Code: Select all
\newenvironment{dialog}
{\begin{list}{}{%
\setlength{\leftmargin}{4cm}%
\item[]%
}
}
\newcommand{\char1}{\end{dialog} Character 1: begin{dialog}}
\newcommand{\event}[1]{\textit{#1}}
%....
% In the document:
\begin{dialog}
\char1 What the characther is saying goes here. More what the character is saying.
\event{Something is happening, a door opens etc.}
\char1 More lines
\end{dialog}
{\end{list}}
Thanks
/ Anders