problem using setbeamertemplate{items} + setbeamercolor{enumerate} ?

397 views
Skip to first unread message

Damien Couroussé

unread,
Aug 30, 2012, 10:38:43 AM8/30/12
to beamer...@googlegroups.com
hello beamer users !

I am not able to correctly set the colors of labels in enumerate environments, if at the same time I ask for square labels : the squared numbers of the enumerate environments keep the default color.

I have attached a simple example file that reproduces the problem, and the pdf file that is generated with pdflatex. I got the same problem using latex.

Tested on Linux/Debian (latex-beamer v3.07-2) and a Linux/CentOS (I am not familiar with this one and cannot tell the release number of the beamer package).

Does someone see what is going wrong in my example ? It is a bug ?

thanks !
Damien

Damien Couroussé

unread,
Aug 30, 2012, 11:19:21 AM8/30/12
to beamer...@googlegroups.com

I forgot to attach the tex and pdf files. Don't know why, it does not work.

Here is the source below:
=========
\documentclass{beamer}

%\usepackage[utf8x]{inputenc}

\setbeamercolor{itemize item}{fg=red, bg=white}
\setbeamercolor{itemize subitem}{fg=blue, bg=white}
\setbeamercolor{itemize subsubitem}{fg=green, bg=white}

\setbeamercolor{enumerate item}{fg=red, bg=white}
\setbeamercolor{enumerate subitem}{fg=blue, bg=white}
\setbeamercolor{enumerate subsubitem}{fg=green, bg=white}

\setbeamertemplate{items}[square]
% \setbeamertemplate{enumerate items}[square] % <== same buggy behaviour with this one

\begin{document}
\begin{frame}{bug in setbeamercolor for enumerates ?}

\begin{itemize}
\item lorem
\item ipsum
\begin{itemize}
\item second
\item level
\begin{itemize}
\item third
\item level
\end{itemize}
\end{itemize}
\end{itemize}

\begin{enumerate}
\item lorem
\item ipsum
\begin{enumerate}
\item second
\item level
\begin{enumerate}
\item third
\item level
\end{enumerate}
\end{enumerate}
\end{enumerate}

\end{frame}

\end{document}
=========
Reply all
Reply to author
Forward
0 new messages