# Environment for different kinds of lists

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 ?

-

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:

\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}​

-
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