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.

I would like to have one environment so as to display numbered list or bullet/plus list. Here is a pseudo code.

\begin{myList}[1)]
    \item Text...

    \item Text...
    \begin{myList}[bullet]
        \item Text...
        \item Text...
    \end{myList}

    \item Text...
    \begin{myList}[plus]
        \item Text...
        \item Text...
    \end{myList}
\end{myList}

Here is what should be the output (* symbolizes one bullet).

1) Text...
2) Text...
    * Text...
    * Text...
3) Text...
    + Text...
    + Text...

How can I acheive this ? Is there a robust solution ?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

The enumitem package provides an optional label key-value parameter that can do this for either enumerate or itemize. Since your outer-most list has numeric values, use enumerate, while the inner ones can use itemize (although enumerate would produce equivalent results). Here's a working minimal example showing the structure:

enter image description here

\documentclass{article}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\begin{document}
\begin{enumerate}[label=\arabic*)]
    \item Text...
    \item Text...
    \begin{itemize}[label=\textbullet]
        \item Text...
        \item Text...
    \end{itemize}
    \item Text...
    \begin{itemize}[label=+]
        \item Text...
        \item Text...
    \end{itemize}
\end{enumerate}
\end{document}​
share|improve this answer
    
Thanks but is there a way to use only one single environment instead of the both ones ? –  projetmbc Oct 20 '11 at 22:42
    
You can just use enumerate if you want to. But you can't use itemize for all three. –  Werner Oct 20 '11 at 22:47
    
Sorry, I've just saw it in your answer... –  projetmbc Oct 20 '11 at 22:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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