I am trying to line up the lines of a single description item. When I introduce a line-break or when the line becomes to long, the new line isn't lined up with the first one. I'm aware of the fact that the first line has to deal with the space that is taken by the label, but I want other lines to start a the same position (horizontally) no matter what.
Here is an exemplary code which illustrates my problem:
\documentclass[12pt,a4paper]{article}
\begin{document}
\begin{description}
\item [Label]Here is a long item that requires a line break. The second line of this item
won't line up with the first word. I can achieve this manually\\ \hspace*{2mm} by forcing a
line break and setting an apropriate value in \textbackslash hspace*, but I want this to be
automised. Please help me.
\end{description}
\end{document}
It comes out looking like this:
I appreciate any help on this. It is driving me nuts.
Best Answer
If i did understand you correctly, the
labeling
environment provided by the KOMA-script package does the job you want:Here package
scrextend
provides all you need, switching to a koma class (scrartcl
) could be an advantage. Thelabeling
environment takes the longest label as the argument, needed for the right alignment. This argument can also be shorter, just play a bit.