10

Possible Duplicate:
Enumerated description list

I would basically like to produce some kind of combination of an enumerate and a description environment. Manually

\begin{description}
\item[1. Item bla] \hfill \\
 Some text bla bla
\item[2. Item bla] \hfill \\
 Some more text bla bla
\end{description}

pretty much gives what I want. Each item should contain a counter together with a description (both equally formatted, e.g. bold) and some associated text starting on the next line. So actually something like (sub)section heading plus text. But with separate counters and indentation etc.

Is there some nice package that will produce such formatting? Or would I need to somehow define a custom list structure?

marked as duplicate by Joseph Wright Oct 2 '11 at 8:20

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

9

From an earlier question, try enumitem. In the example below, the pifont package is only needed for the first example.

enter image description here

\documentclass{article}
\usepackage{enumitem}
\usepackage{pifont}
\begin{document}
\begin{itemize}[label=\ding{212}]
\item First
\item Second
\end{itemize}
\newcommand\litem[1]{\item{\bfseries #1,\\}}
\begin{enumerate}
\litem{Lo primero que ten\'{\i}a el Quijote} lanza en astillero,
\litem{Lo segundo} adarna antigua,
\end{enumerate}
\end{document}
  • 1
    Cool, thanks. Your second example is basically what I've been looking for. However, I think for the second example the use of enumitem is not necessary, is it? – janitor048 Mar 16 '11 at 13:14
  • Good question. I just pulled that one from the enumitem manual, but if you get it to work with no extra packages, then it can be obviously be cut down. I haven't tried. – Mike Renfro Mar 16 '11 at 18:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.