12

I really like the enumitem package, but it seems to have compatibility issues with beamer. I could get them to work together for itemize lists by using the following:

\setitemize{label=\usebeamerfont*{itemize item}
  \usebeamercolor[fg]{itemize item}
  \usebeamertemplate{itemize item}}

It seems to make itemize lists follow the current beamer theme. But I can't seem to do the same thing for enumerate. In particular, when I do this

\setenumerate[1]{label=\usebeamerfont*{enumerate item}}

I get the error "Use of \enumerate doesn't match its definition."

Is it possible to do a similar thing with enumerate to make it follow the current beamer theme?

1
  • 1
    Enumitem beamer compatibility should be a feature request.
    – Seamus
    Commented Feb 27, 2012 at 9:24

1 Answer 1

11

It can be fixed by protecting the beamer use-commands. This is compilable and uses the color of the Singapore beamer theme:

\documentclass[12pt]{beamer}
\usetheme{Singapore}
\usepackage{enumitem}
\setenumerate[1]{%
  label=\protect\usebeamerfont{enumerate item}%
        \protect\usebeamercolor[fg]{enumerate item}%
        \insertenumlabel.}
\begin{document}
\begin{frame}
  \begin{enumerate}
    \item First item
    \item Second item
  \end{enumerate}
\end{frame}
\end{document}
4
  • 1
    It works!! For some themes where the bullets have backgrounds, do you know how to get that working too?
    – Jack Cheng
    Commented Feb 27, 2012 at 22:22
  • @JackCheng depends on the theme, perhaps post a new question with a minimal working example.
    – Stefan Kottwitz
    Commented Feb 27, 2012 at 22:29
  • I am using the Frankfurt theme, where the bullets have the gradient circles as background (e.g., just change Singapore to Frankfurt in your example.) This seems closely related to the original question, should I just add it as an edit?
    – Jack Cheng
    Commented Feb 28, 2012 at 1:09
  • @JackCheng It's related, but more specific and I guess a bit harder. This question was about fixing the error. Now it's like "how to the (Frankfurt) ball enumerate style into an enumitem label" I guess by including \usebeamertemplate{enumerate item}.
    – Stefan Kottwitz
    Commented Feb 28, 2012 at 8:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .