Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
Another solution can be found here:tex.stackexchange.com/questions/30029/… In this case you don't need a special item. –  Marco Daniel Oct 1 '11 at 11:06
    
This one has been marked as a duplicate of the newer question as the answer there is probably a bit more flexible. –  Joseph Wright Oct 2 '11 at 8:21
add comment

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.

1 Answer

up vote 7 down vote accepted

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}
share|improve this answer
    
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
add comment

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