GeneralDialog

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
espantalho
Posts: 1
Joined: Wed Jul 08, 2009 3:02 pm

Dialog

Post by espantalho »

Hi

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}}
I want the code to med indented on the second, third...etc, line if it is a long line. It seems hard to get it nice and neat. If its possible to do it with \newcommand that it looks like \mycommand{character}{his line} and \myevent{what is happening} should work alright as well.

Thanks

/ Anders

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Dialog

Post by localghost »

Search the forum for the xlist environment.


Best regards and welcome to the board
Thorsten
Post Reply