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've already slightly adopted the colorscheme of my Frankfurt themed beamer class with:

% Define my settings
\definecolor{mygreen}{cmyk}{0.82,0.11,1,0.25}
\setbeamertemplate{blocks}[rounded][shadow=false]
\addtobeamertemplate{block begin}{\pgfsetfillopacity{0.8}}{\pgfsetfillopacity{1}}
\setbeamercolor{structure}{fg=mygreen}

Due to the settings of the structure-color to "mygreen" also the color for the block is set to green similar to the exampleblock. Thus I want to change the color of the exampleblock to blue (like the default non_modified block in Frankfurt) or yellow (like in color scheme crane

enter image description here

I tried: \setbeamercolor{exampleblock}{fg=blue} which has no effect :(

Any suggestions?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

The right keys to modify the exampleblock environment are:

  • block title example for the title;
  • block body example for the body of the block.

Here is a complete example:

\documentclass{beamer}

\usetheme{Frankfurt}
% Define my settings
\definecolor{mygreen}{cmyk}{0.82,0.11,1,0.25}
\setbeamertemplate{blocks}[rounded][shadow=false]
\addtobeamertemplate{block begin}{\pgfsetfillopacity{0.8}}{\pgfsetfillopacity{1}}
\setbeamercolor{structure}{fg=mygreen}
\setbeamercolor*{block title example}{fg=blue!50,
bg= blue!10}
\setbeamercolor*{block body example}{fg= blue,
bg= blue!5}


\begin{document}

\begin{frame}{Frame title}
\begin{block}{Block title}
Hello
\end{block}
\begin{exampleblock}{ExampleBlock title}
Hello
\end{exampleblock}
\end{frame}
\end{document}

Result:

enter image description here

share|improve this answer
    
Great. There are just two questions related to that: 1) Is there a list of all keys whose color can be changed? E.g I also need to change to colors of the itemize points in the example box. 2) Where can I extract the colors of predefined themes e.g. the above mentioned yellows of crane? –  Johannes Sep 19 '12 at 9:57
    
I'm not aware of such a list, but you find them along the beameruserguide. For what concern the color extraction, you could have a look to How to get actual values of colour theme colours in beamer?. –  Claudio Fiandrino Sep 19 '12 at 10:23
    
@Johannes: I've updated my answer How to get actual values of colour theme colours in beamer? in order to provide an example of blocks colors for the Frankfurt theme and the crane color theme. –  Claudio Fiandrino Sep 19 '12 at 16:17
    
@Johannes: if the answer solved the problem, please consider to accept it by clicking the green tick on the left-hand side of the answer, different from upvoting. –  Claudio Fiandrino Sep 20 '12 at 15:02

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.