I have a problem with the solution in this post if I don't want bold text for the items.
I changed the code as described below. But the text of the item (e.g. Animal1:) is now in the left margin of the document (I would like to have it at the left boarder like the normal text of the document). I have no idea why this happens, because with the bold text it works fine. Would be nice if someone has an idea.
% arara: pdflatex
\documentclass{scrbook}
\usepackage{calc}
\makeatletter
\newcommand{\DESCRIPTION@original@item}{}
\let\DESCRIPTION@original@item\item
\newcommand*{\DESCRIPTION@envir}{DESCRIPTION}
\newlength{\DESCRIPTION@totalleftmargin}
\newlength{\DESCRIPTION@linewidth}
\newcommand{\DESCRIPTION@makelabel}[1]{\llap{#1}}%
\newcommand{\DESCRIPTION@item}[1][]{%
\setlength{\@totalleftmargin}%
{\DESCRIPTION@totalleftmargin+\widthof{#1}-\leftmargin}%
\setlength{\linewidth}
{\DESCRIPTION@linewidth-\widthof{#1}+\leftmargin}%
\par\parshape \@ne \@totalleftmargin \linewidth
\DESCRIPTION@original@item[#1]%
}
\newenvironment{DESCRIPTION}
{\list{}{\setlength{\labelwidth}{0cm}%
\let\makelabel\DESCRIPTION@makelabel}%
\setlength{\DESCRIPTION@totalleftmargin}{\@totalleftmargin}%
\setlength{\DESCRIPTION@linewidth}{\linewidth}%
\renewcommand{\item}{\ifx\@currenvir\DESCRIPTION@envir
\expandafter\DESCRIPTION@item
\else
\expandafter\DESCRIPTION@original@item
\fi}}
{\endlist}
\makeatother
\usepackage{blindtext}
\begin{document}
\begin{DESCRIPTION}
\blindtext
\item[Animal1:] \textbf{Lion}\\
A lion is ... \blindtext
\item[Animal2:] \textbf{Elephant}\\
An elephant is ...
\end{DESCRIPTION}
\end{document}
labelingprovided by packagescrbase? – Johannes_B Jun 19 '14 at 17:28You can find explanations in the KOMA-script documentation.
– Johannes_B Jun 19 '14 at 17:40