# Resume Enumeration across frames

I've tried the equivalent of the question Resuming a list when the two enumerate environments are on two different frames, but compiler will complain.

I.e.

\begin{frame}
\frametitle{A Survey of Computer Vision}
\framesubtitle{Fundamental Tasks of Computer Vision I}

\begin{enumerate}

\item one

\end{enumerate}

\end{frame}

\begin{frame}
\frametitle{A Survey of Computer Vision}
\framesubtitle{Fundamental Tasks of Computer Vision II}

\begin{enumerate}[resume]

\item two
\end{enumerate}

\end{frame}


produced the following error:

! TeX capacity exceeded, sorry [grouping levels=255].
\labelenumi ->{
\labelenumi }
l.255 \end{frame}
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.


What is the correct way of doing so?

-
Note that also the second solution proposed in here won't work... –  Matteo Dec 4 '12 at 17:56
enumitem and beamer doesn't like each other. tex.stackexchange.com/questions/31505/… –  percusse Dec 4 '12 at 18:03
@percusse - I c...and so, in my particular case what should I do?redefine the enumerate command? –  Matteo Dec 4 '12 at 18:15

This works for me:

\newcounter{sauvegardeenumi}
\newcommand{\asuivre}{\setcounter{sauvegardeenumi}{\theenumi}}
\newcommand{\suite}{\setcounter{enumi}{\thesauvegardeenumi}}

\begin{frame}
\frametitle{A Survey of Computer Vision}
\framesubtitle{Fundamental Tasks of Computer Vision I}

\begin{enumerate}

\item one

\asuivre

\end{enumerate}

\end{frame}

\begin{frame}
\frametitle{A Survey of Computer Vision}
\framesubtitle{Fundamental Tasks of Computer Vision II}

\begin{enumerate}

\suite

\item two
\end{enumerate}

\end{frame}

-
thks...without including any particular package? –  Matteo Dec 4 '12 at 18:20
works!thk you!can you please explain me why is it working?setting a global counter solved the problem or what else? –  Matteo Dec 4 '12 at 18:22
This is standard LaTeX : creating a counter, saving the enumerate counter to it when needed then resuming from it. –  Marc Baudoin Dec 4 '12 at 21:00