2

In the example below, the item "Long item text" will be wrapped to the next line if it exceeds the width. But this continued second line is further indented to the same extent as "Item description" is. Can you think of a way to give the continued "item text" have the same indentation as it's first line? Thank you for your time.

\begin{description}
  \item[*] Long item text \hfill \\
    Item description
\end{description}

I'd like to have it so:

* Long item text ...
  that continues here.
    Item description
1
  • please make a complete small example document that shows this effect, don't just post fragments of code. Commented Dec 15, 2014 at 19:38

2 Answers 2

5

It's not quite clear which layout ypu want but enumitem package makes it easy to experiment with the parameters. perhaps:

enter image description here

\documentclass{article}
\usepackage{enumitem}
\begin{document}

\begin{description}[itemindent=0pt,listparindent=2em,labelwidth=1em,]
  \item[*] Long item text 
 that continues here.
 that continues here.
 that continues here.
 that continues here.
 that continues here.

    Item description
that continues here.
that continues here.
that continues here.
that continues here.
\end{description}

\end{document}
3

Very similar to David's solution:

\documentclass{article}

\usepackage{enumitem}

\begin{document}

\begin{description}[itemindent=!,labelwidth=!,listparindent=\parindent]
  \item[*] Long item text text text text text text text text text text text text text text text text text text text text text text text

  Item description
\end{description}

\end{document} 

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .