[Tex/LaTex] How to force all text to continue to the next line when using style=nextline in description lists with enumitem

enumitemlistsmargins

This question is related to this answer: https://tex.stackexchange.com/a/69525/13552.

The documentation for enumitem (on page 7 in Version 3.5.2 2011-09-28) says that

nextline: if the label does not fit in the margin, the text continues in the next line,
otherwise it is placed in a box of width \leftmargin − \labelsep, i.e., the item body
never sticks into the left margin. Sets labelwidth=!.

My goal would be to get all text to continue onto the next line regardless of the label's width.

Example

\documentclass{article}
\usepackage{enumitem}
%\setlist[description]{style=nextline} % Optional Global Setup

\begin{document}
\begin{description}[style=nextline] % Local Setup
  \item [Green] The color green.
  \item [Red] The color red.
  \item [Yellow] The color yellow.
\end{description}
\end{document}

Best Answer

Set leftmargin to 0pt so nothing can fit there and the new line is forced:

\documentclass{article}
\usepackage{enumitem}
%\setlist[description]{style=nextline,leftmargin=0pt} % Optional Global Setup

\begin{document}
\begin{description}[style=nextline,leftmargin=0pt] % Local Setup
  \item [Green] The color green.
  \item [Red] The color red.
  \item [Yellow] The color yellow.
\end{description}
\end{document}

enter image description here

Another option, allowing you to have indentation for the description texts is to set labelwidth to 0pt (with style=nextline this always forces a new line), and then control other lengths such as leftmargin and itemindent:

\documentclass{article}
\usepackage{enumitem}
\setlist[description]{style=nextline,labelwidth=0pt,leftmargin=30pt,itemindent=\dimexpr-20pt-\labelsep\relax} % Optional Global Setup

\begin{document}
\noindent
Some test text
\begin{description}[style=nextline,labelwidth=0pt,leftmargin=30pt,itemindent=\dimexpr-20pt-\labelsep\relax] % Local Setup
  \item[Green]The color green.
  \item[Red] The color red.
  \item[Yellow] The color yellow.
\end{description}
\end{document}

enter image description here

Related Question