I've been trying to create a list environment to produce something that does the following:
It has a counter (like the enumerate environment).
The first line of each item is an overview of the item (probably in boldface).
Some items have nothing other than the first line, while others have more description. The description is aligned with the title above it.
The following was my attempt:
\newcounter{numberdesc}
\newenvironment{numberdescription}{\begin{list}{}{%
\renewcommand{\makelabel}{\textbf{\thenumberdesc.\hfill}}}}{%
\end{list}}
\newcommand{\descitem}[1]{\stepcounter{numberdesc}\item\textbf{#1}\newline}
\begin{numberdescription}
\descitem{First item}
has some description below it
\descitem{Second item does not}
\descitem{Third item}
also has description
\end{numberdescription}
but I know that this is rather crude (not least the \newline
in the definition of the \item
replacement).
It was suggested to me in a previous attempt that the enumitem
package does what I want, but as far as I can tell this doesn't align the text of the description in the manner I want. To be specific: each item has a number and a title, and the text of the item should be aligned with the title but not the number.
I want it to produce something like the following (which was produced in a more crude manner):