Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
1  
Enumitem beamer compatibility should be a feature request. –  Seamus Feb 27 '12 at 9:24
add comment

1 Answer

up vote 5 down vote accepted

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}
share|improve this answer
    
It works!! For some themes where the bullets have backgrounds, do you know how to get that working too? –  Jack Cheng Feb 27 '12 at 22:22
    
@JackCheng depends on the theme, perhaps post a new question with a minimal working example. –  Stefan Kottwitz Feb 27 '12 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 Feb 28 '12 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 Feb 28 '12 at 8:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.