Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Beamer and enumitem: incompatible?

313 views
Skip to first unread message

Denis Bitouzé

unread,
Oct 22, 2005, 1:00:05 PM10/22/05
to
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:

\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

Ulrike Fischer

unread,
Oct 25, 2005, 9:31:37 AM10/25/05
to
Denis Bitouzé <dbito...@spam.wanadoo.fr> schrieb:

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

Denis Bitouzé

unread,
Oct 27, 2005, 11:47:43 AM10/27/05
to
Le 25 oct 2005 à 13h31
Ulrike Fischer a écrit :

> 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

0 new messages