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'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

share|improve this question
    
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

1 Answer 1

up vote 6 down vote accepted

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}
share|improve this answer
    
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
1  
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

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.