16

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?

1 Answer 1

18

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

3

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .