3

I'd like to have a dialogue environment looking like this:

« Oh.
— What do you think ?
— It's not correct English typography style.
— I know, but we speak English only because we're on StackExchange. »

But in the source I'd like to have something easy to type and easy to fine-tune later on (italic letters, ?, ...), something like

\begin{dialogue}
    Oh.
    \reply What do you think~?
    \reply It's not correct English typography style.
    \reply I know, but we speak English only because we're on StackExchange. 
\end{dialogue}

I tried to use itemize, but I fails to discard the item of the first line. I fail to count the number of items to redefine \item with reply, and I cannot use text before an \item. Can you help me ?

Thank you for any help !

Lærne
  • 133
  • related: http://tex.stackexchange.com/questions/202231/insert-a-character-at-beginning-of-each-line-after-the-current-one/202245#202245 – David Carlisle Oct 23 '14 at 22:24

1 Answers1

4

In the following version the environment dialogue is even unneded. As far as I understand, it is a logical line of a dialogue, not a physical line in book.

\documentclass{article}


\begin{document}

\def\reply{\par--- }

%\begin{dialogue}
    Oh.
    \reply What do you think~?
    \reply It's not correct English typography style.
    \reply I know, but we speak English only because we're on StackExchange. 
%\end{dialogue}

\end{document}

enter image description here

  • 2
    Except that his dialogue seems to be quoted (in the European fashion). Perhaps the environment could be used to add the quote marks. – Steven B. Segletes Oct 24 '14 at 00:56
  • Thank you both. Yes that was pretty dumb of myself, I didn't think of using \par, so I ended up trying to force new lines using \itemize, but setting reply as above and dialogue with \newenvironment{dialogue}{«~}{~»} worked 100% fine. Thank you ! – Lærne Oct 24 '14 at 18:19