3

In the MWE below, if I comment out the use of enumitem everything works fine, but with it included it breaks. Is there a way to have this working?

\documentclass{beamer}

\usepackage{enumitem}

\begin{document}

\begin{frame}{title}

\begin{enumerate}[<+->]
    \item How
    \item are
    \item you?
\end{enumerate}

\end{frame}

\end{document}

If I use the following code I get the error: Package enumitem Error: <+-> undefined.

\documentclass{article}\usepackage{beamerarticle}

\mode<article>{\usepackage{enumitem}}

\begin{document}

\begin{frame}{title}

\begin{enumerate}[<+->]
    \item How
    \item are
    \item you?
\end{enumerate}

\end{frame}

\end{document}
Geoff
  • 2,637

1 Answers1

5

If you want to load the enumitem package to use it in article mode, you can restrict the loading to this mode.

Then one just has to hide [<+->] from the enumitem package, which can be done with \beamerdefaultoverlayspecification{<+->} either globally or locally.

%\documentclass{beamer}

\documentclass{article}
\usepackage{beamerarticle}

\mode<article>{
\usepackage{enumitem}
}

\begin{document}

\begin{frame}{title}

{
\beamerdefaultoverlayspecification{<+->}% <- can also be used in the preamble if it should apply to all itemization/enumerate
\begin{enumerate}
    \item How
    \item are
    \item you?
\end{enumerate}
}

\end{frame}

\end{document}