17

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?

Thanks in advance

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

1 Answer 1

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}
4
  • thks...without including any particular package?
    – Matteo
    Commented Dec 4, 2012 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
    Commented Dec 4, 2012 at 18:22
  • 1
    This is standard LaTeX : creating a counter, saving the enumerate counter to it when needed then resuming from it. Commented Dec 4, 2012 at 21:00
  • To use this beyond two frames :: tex.stackexchange.com/a/55001/18678
    – Khaaba
    Commented Aug 23, 2017 at 6:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .