恢复跨框架枚举

恢复跨框架枚举

我尝试过类似这样的问题恢复列表当两个enumerate环境处于两个不同的框架上时,编译器会抱怨。

IE

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

产生了以下错误:

! 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.

正确的做法是什么?

提前致谢

答案1

这对我有用:

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

相关内容