1

I have problems modifying the block environments in the metroplis theme.

The follwing example renders as

        \documentclass[10pt,xcolor=dvipsnames]{beamer}
        \usetheme{metropolis}

        \begin{document}

        \begin{frame}
           \begin{alertblock}{Title}
              Inhalt...
           \end{alertblock}

        \end{frame}

        \end{document}

enter image description here

Now adding the line

       \setbeamercolor{block title}{fg=RoyalBlue,bg=white}

renders as

enter image description here

So while the background changes to white also the position of the tile seems to change which i do not want. Also I would like to add a little more space etween titel and the text underneath.

Could someone please help me. Additionaly I would also be grateful if somone could explain me how to define a block environment looking like this:

enter image description here

Thanks so much!

  • This site works best, if you only ask one question per question. To define such a new block have a look at the tcolorbox package. – samcarter is at topanswers.xyz Oct 25 '17 at 20:08
  • thank you so much. I'll keep that in mind for next time and I am going to try tcolorbox :) – CookieMaster Oct 25 '17 at 20:44
1

if you want to change the colours of an alert block, use \setbeamercolor{block title alerted}{...}:

\documentclass[10pt,xcolor=dvipsnames]{beamer}
\usetheme{metropolis}

\setbeamercolor{block title alerted}{%
    use={block title, alerted text},
    bg=white,
    fg=RoyalBlue
}

\begin{document}

\begin{frame}
   \begin{alertblock}{Title}
      Inhalt...
   \end{alertblock}
\end{frame}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.