pooz wrote:
you can´t use enumitem-package, because it causes some problems with beamerclass.
No. You can still use enumitem, but it seems that labels must be explicitely redefined. To this end, enumitem provides several options. For example, the problematic MWE that you posted before can be sorted out as follows:
Code: Select all
\documentclass{beamer}
\usepackage{enumitem}
\setenumerate[1]{label=\arabic*.}
\begin{document}
\begin{frame}
Test-text begins here.
\begin{enumerate}
\item First item.
\end{enumerate}
\end{frame}
\end{document}
pooz wrote:
So the result is, I have to manually set the counter. This is very ugly, because when adding/removing an item at an arbitrary place, you have to correct the counter again
Once solved the problem with enumitem, one may think in the resume option this package provides. Unfortunately, it seems to work inside the same frame, but not in two different frames. Check this:
Code: Select all
\documentclass{beamer}
\usepackage{enumitem}
\setenumerate[1]{label=\arabic*.}
\begin{document}
\begin{frame}
Test-text begins here.
\begin{enumerate}
\item First item.
\item Second item.
\end{enumerate}
More text. Let us now resume the enumeration:
\begin{enumerate}[resume]
\item Third item.
\end{enumerate}
\end{frame}
\begin{frame}
\begin{enumerate}[resume]
\item This should be the fourth item.
\end{enumerate}
\end{frame}
\end{document}
But there is a simple workaround. Just use an additional counter to track the value of the enumi counter:
Code: Select all
\documentclass{beamer}
\usepackage{enumitem}
\setenumerate[1]{label=\arabic*.}
\newcounter{ResumeEnumerate}
\begin{document}
\begin{frame}
Test-text begins here.
\begin{enumerate}
\item First item.
\item Second item.
\end{enumerate}
More text. Let us now resume the enumeration:
\begin{enumerate}[resume]
\item Third item.
\end{enumerate}
\setcounter{ResumeEnumerate}{\value{enumi}}
\end{frame}
\begin{frame}
\begin{enumerate}[start=\numexpr\value{ResumeEnumerate}+1]
\item This should be the fourth item.
\end{enumerate}
\end{frame}
\end{document}