I'd like to use enumitem package:
http://tug.ctan.org/tex-archive/macros/latex/contrib/enumitem/
in a beamer document. Everything is OK with enumerate and description
environments but not with itemize one, as one could check with the
following example:
\documentclass[12pt]{beamer}
\usepackage{enumitem}
\begin{document}
\begin{frame}
\begin{enumerate}[label=Hello\arabic*:,labelindent=\parindent,leftmarg
in=*]
\item foo
\item bar
\end{enumerate}
\begin{description}[font=\bfseries]
\item[foo:] foo
\item[bar:] bar
\end{description}
\begin{itemize}
\item foo
\item bar
\end{itemize}
\end{frame}
\end{document}
I get the following error message:
! Undefined control sequence.
<argument> .../enumerate \beameritemnestingprefix
body end
l.17 \end{frame}
?
Thanks for any help.
--
Denis
> Hello,
>
> I'd like to use enumitem package:
>
> http://tug.ctan.org/tex-archive/macros/latex/contrib/enumitem/
>
> in a beamer document. Everything is OK with enumerate and description
> environments but not with itemize one, as one could check with the
> following example:
>
[..]
> I get the following error message:
>
> ! Undefined control sequence.
> <argument> .../enumerate \beameritemnestingprefix
> body end
> l.17 \end{frame}
From a fast glance I would say that beamer and enumitem don't go well
together. Both redefine quite heavily the standard list environment.
Beamer e.g. puts a lots of \usebeamer<things> in the definitions. So if
you use enumitem you should be aware that you can loose a lot of beamer
adaptions.
If you really want to use the enumitem definitions you can try the
following:
\documentclass[12pt]{beamer}
\usepackage{enumitem}
\newcommand\beameritemnestingprefix{}
\begin{document}
\begin{frame}
\begin{enumerate}[label=Hello\arabic*:,labelindent=\parindent,
leftmargin=*]
\item foo
\item bar
\end{enumerate}
\begin{description}[font=\bfseries]
\item[foo:] foo
\item[bar:] bar
\end{description}
\begin{itemize}[label=$\bullet$]
\item foo
\item bar
\end{itemize}
\end{frame}
\end{document}
--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.
> From a fast glance I would say that beamer and enumitem don't go well
> together. Both redefine quite heavily the standard list environment.
> Beamer e.g. puts a lots of \usebeamer<things> in the definitions. So
> if you use enumitem you should be aware that you can loose a lot of
> beamer adaptions.
Yes and I pointed it out to the author of enumitem, Javier Bezos, who
will have a look at it. I suggested him to use new environment names to
avoid this kind of clashes...
> If you really want to use the enumitem definitions you can try the
> following:
>
> \documentclass[12pt]{beamer}
> \usepackage{enumitem}
> \newcommand\beameritemnestingprefix{}
> \begin{document}
> \begin{frame}
> \begin{enumerate}[label=Hello\arabic*:,labelindent=\parindent,
> leftmargin=*]
> \item foo
> \item bar
> \end{enumerate}
> \begin{description}[font=\bfseries]
> \item[foo:] foo
> \item[bar:] bar
> \end{description}
> \begin{itemize}[label=$\bullet$]
> \item foo
> \item bar
> \end{itemize}
> \end{frame}
> \end{document}
OK, it works well. I tried to use the itemize and enumerate balls of
Beamer as labels of enumitem environments but without success...
Thanks a lot,
--
Denis