I found Description list with right alignment of labels while looking for a solution for my own problem. I tried to modify the above solution, but there are a few ugly things I don't know what to do about.
- Using
noitemsep
to remove the space between the items results in different spacing between lines in labelboxes and labelboxes to each other. - If the text in the labelbox is too long and therefore a line break needed, then the second line of the text belonging to the label starts after the labelbox, not in the second line.
Here is the corresponding code:
\documentclass{article}
\usepackage{enumitem}
\SetLabelAlign{parright}{\parbox[t]{\labelwidth}{\raggedleft#1}}
\setlist[description]{style=multiline,leftmargin=3.5cm, align=parright,noitemsep}
\begin{document}
\begin{description}
\item[here is a long long label] text
\item[here is a long long label] and here a long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long text
\end{description}
\end{document}
What can/should I do?
noitemsep
if you want spacing between the items? – Peter Grill Mar 27 '12 at 16:19