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.

To my surprise, I've had trouble finding red themes, and used the beamer theme matrix to find CambridgeUS. I've changed the itemized bullets to match, but I can't seem to make the enumerations red. I tried \setbeamertemplate{items}[red] from the beamer manual, and I tried \setbeamertemplate{enumerate items}[default, red] which also didn't work. It looks like it can be done in each enumerate environment like this related question, but is there a way for me to do it once, in the preamble, without defining a custom command? I thought this sort of thing would be common. At the moment my preamble is

\usetheme{CambridgeUS}
\setbeamercolor{item projected}{bg=red}
\setbeamertemplate{enumerate items}[default]
\setbeamertemplate{navigation symbols}{}
\setbeamercovered{transparent}

Alternatively, if there is another template for enumerate items that uses the default markers and is red, that would work too.

EDIT:

I'm able to change the color of the top level number with \setbeamercolor{enumerate item}{fg=red}, but they don't all inherit as I would expect when I try \setbeamercolor{enumerate items}{fg=red}.

EDIT AGAIN:

It looks like using \documentclass[red]{beamer} turns them red (not a great shade or red, but reddish nonetheless). I read somewhere that doing this is obsolete, so please let me know if there is something more current that I should be using.

share|improve this question
add comment

2 Answers

up vote 9 down vote accepted

You can use local structure to cause the colour inheritance:

\documentclass{beamer}
\usetheme{CambridgeUS}
\setbeamercolor{item projected}{bg=darkred}
\setbeamertemplate{enumerate items}[default]
\setbeamertemplate{navigation symbols}{}
\setbeamercovered{transparent}
\setbeamercolor{block title}{fg=darkred}
\setbeamercolor{local structure}{fg=darkred}

\begin{document}

\begin{frame}
\begin{block}{A block}
\begin{enumerate}
  \item First item.
  \begin{itemize}
    \item First subitem.
    \begin{enumerate}
      \item First subsubitem.
    \end{enumerate}
  \end{itemize}
\end{enumerate}
\end{block}
\end{frame}

\end{document}

output of code

share|improve this answer
    
i presume your \setbeamercolor{block title}{} line just determines the color of the block title...but what is that exactly? another level of nesting, but with no marker, like a description environment? –  asia1281 Mar 6 '12 at 1:35
    
@asia1281 Yes, more or less. They give some internal structure to a slide. I use them quite a bit in my own slides. How useful they are obviously depends a lot on the content of your presentations. You can think of it as a title for each itemized list. –  Alan Munn Mar 6 '12 at 2:47
add comment

Change the enumerate subitem and enumerate subsubitem colors also:

\documentclass{beamer}
\usetheme{CambridgeUS}
\setbeamercolor{item projected}{bg=red}
\setbeamertemplate{enumerate items}[default]
\setbeamertemplate{navigation symbols}{}
\setbeamercovered{transparent}

\setbeamercolor*{enumerate item}{fg=red}
\setbeamercolor*{enumerate subitem}{fg=red}
\setbeamercolor*{enumerate subsubitem}{fg=red}

\begin{document}

\begin{frame}
\begin{enumerate}
  \item First item.
  \begin{enumerate}
    \item First subitem.
    \begin{enumerate}
      \item First subsubitem.
    \end{enumerate}
  \end{enumerate}
\end{enumerate}
\end{frame}

\end{document}

If you want to use the same color as the one used in CambridgeUS, you can use darkred (defined by the theme) instead of red.

enter image description here

share|improve this answer
    
well yes, I know I can do that, but is there no way to do this so that they inherit/are all changed? that can't be the modern replacement for \documentclass[red]{beamer} can it? –  asia1281 Mar 5 '12 at 23:15
    
+1 for the darkred though. now you've started me down the 'making my own theme' path... –  asia1281 Mar 6 '12 at 1:33
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.