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.

How can I change the color of bullets in an itemize list within an alertblock in beamer?

I use

  \setbeamercolor{itemize item}{<color>}

to set the color of the bullets throughout the document. But I want a different color when the bullets are inside an alertblock environment. I've tried

\setbeamercolor{block itemize item alerted}{<color>}

and

\setbeamercolor{block alerted itemize item}{<color>}

but neither seems to do anything.

Update: This is not the same question as Custom beamer blocks. I want to modify the alertblock environment. I don't want to create a new environment.

share|improve this question
    
Does this question helps tex.stackexchange.com/questions/28760/custom-beamer-blocks –  karathan Feb 4 '13 at 6:26
    
I think it's almost the same question –  karathan Feb 4 '13 at 6:30
    
block itemize item alerted or block alerted itemize item doesn't exist. Here you can obtain a complete templates list. I think you will need to use @karathan link. –  Ignasi Feb 4 '13 at 8:44
    
That question was about creating new block environments. I was hoping to simply modify the existing alertblock environment. Perhaps it is not possible. –  Rob Hyndman Feb 4 '13 at 9:03

1 Answer 1

Just alter the parent structure:

\documentclass{beamer}
%title
\setbeamercolor{block title alerted}{fg=white,bg=brown}
%body
\setbeamercolor{block body alerted}{fg=black!90,bg=brown!60!yellow}
% parent of all alerts default is red
\setbeamercolor{alerted text}{fg=green}

\begin{document}
\frame{
\begin{itemize}
\item item 
\end{itemize}
\begin{alertblock}{alert block}
\begin{itemize}
\item item 
\end{itemize}
\end{alertblock}
}
\end{document}

enter image description here

I would not recommend to use exactly this color scheme but it shows how itemize items and the background can be adjusted individually. This will effect enumerate environments and any other alert as well.

Additional tipp: instead of guessing beamer templates which are not listed in the guide just look them up in the beamer<color/inner/outer>themedefault.sty files in the beamer tree.

share|improve this answer

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.