I am trying to use the enumitem
package to create the following
Farmer: It is a hard day today. The sun is
burning and we still haven't brought
in all the crop.
Farmer's Neighbour: Yes, it will be a long day!
Farmer: ...
I want the label to be right aligned and the text to wrap at that point too.
I tried the following solution (\SetLabelAlign{parright}{\parbox[t]{\labelwidth}{\raggedleft#1}}
, but then my label and text overlap.
\documentclass{article}
\usepackage{enumitem}
\SetLabelAlign{parright}{\parbox[t]{\labelwidth}{\raggedleft#1}}
\setlist[enumerate]{
align=parright,
leftmargin=0pt,
labelindent=20pt,
listparindent=40pt,
labelwidth=20pt,
itemindent=!
}
\begin{document}
\begin{enumerate}[label=Farmer:]
\item It is a hard day today. The sun is burning and we still haven't brought in all the crop.
\end{enumerate}
\begin{enumerate}[label=Farmer's Neigbour:]
\item Yes, it will be a long day!
\end{enumerate}
\end{document}
enumerate
list when you want adescription
type list? – Alan Munn Aug 8 '18 at 2:36align=left
, It should work. – javadr Aug 8 '18 at 2:41