I am trying to define a dialog
environment while using the lettrine
package. My problem are the spaces between the dialogs. There is no problem when a dialog consists of more than two lines. But paragraphs with one line are problematic since the number of lines given in lettrine is two.
Is it possible to count the lines in a paragraph and determine the space between the paragraphs with respect to the number of lines?
\documentclass{minimal}
\usepackage{graphicx}
\usepackage{lettrine}
\usepackage{needspace}
\usepackage{lipsum}
\newenvironment{dialog}
{\lettrine[lines=2,nindent=3pt,findent=3pt,image=true,loversize=0.7,lraise=-0.2]{myimage.eps}{}}
{\par}
\begin{document}
\begin{dialog}
\lipsum[1]
\end{dialog}
\begin{dialog}
Just one line.
\end{dialog}
\begin{dialog}
\lipsum[2]
\end{dialog}
\end{document}