I want to create a nested list in which the outer list have the letters counter and the inner lists continue numbering from the last number of a list which ends outside of the outer list. Here is an example of this:
1. test 1
2. test 2
3. test 3
a. head 1
4. list 4
5. list 5
b. head 2
6. list 6
7. list 7
I have tried the following MWE but does not do what I want.
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}
\item list 1
\item list 2
\item list 3
\end{enumerate}
\begin{enumerate}[label=(\alph*)]
\item head 1
\begin{enumerate}[resume]
\item list 4
\item list 5
\item list 6
\end{enumerate}
\item head 2
\begin{enumerate}[resume]
\item list 7
\item list 8
\item list 9
\end{enumerate}
\end{enumerate}
\end{document}
Best Answer
It's possible to define a
enumerate
series which can be explicitly resumed.The name of a series is basically arbitrary, but must be unique, say
series=myouterlist
and sayresume=myouterlist
where appropiate.I would suggest to use a separate enumerate list clone in order to provide the same settings for all resumed lists belonging to this list instead of retyping the settings over and over again (which might be error-prone)