TransWikia.com

Changing the color of a plain frame Metropolis

TeX - LaTeX Asked by Lotvi on July 8, 2021

I’m trying to make some slides for an upcoming presentation with customized colors for the Metropolis theme. However, I’m having some trouble with changing the color for a plain frame (plain). My code now looks like this:

{
setbeamercolor{background canvas}{bg=rugred}
plain{Questions?}
}

Which looks like this:

valid.

Also, rugredis a custom color, made by myself.

Could anyone help me out and tell me how I can fix this issue? The MWE is given by

documentclass[10pt]{beamer}

usetheme[progressbar=frametitle, block=fill]{metropolis}
%usepackage{appendixnumberbeamer}

definecolor{rugred}{rgb}{0.8,0,0}
setbeamercolor{frametitle}{bg=rugred}
setbeamercolor{plain}{bg=rugred}

usepackage{booktabs}
usepackage[scale=2]{ccicons}

usepackage{pgfplots}
usepgfplotslibrary{dateplot}

usepackage{xspace}
newcommand{themename}{textbf{textsc{metropolis}}xspace}

usepackage{caption}
usepackage{subcaption}
usepackage{graphicx}
usepackage{bm}
usepackage{hyperref}


newcommand{R}{mathbb{R}}
newcommand{N}{mathbb{N}}

title{Title}
subtitle{Presentation}
date{today}
author{Author {and}{Supervisor: hspace{7.2mm} Supervisor} {and}{Second assessor: Second assessor}}
institute{University}

begin{document}

maketitle

{
setbeamercolor{background canvas}{bg=rugred}
plain{Questions?}
}

begin{frame}[allowframebreaks]{References}

  bibliography{references}
  bibliographystyle{abbrv}

end{frame}
end{document}````

One Answer

You can set the background color of palette primary? to rugred:

documentclass[10pt]{beamer}

usetheme[progressbar=frametitle, block=fill]{metropolis}
%usepackage{appendixnumberbeamer}

definecolor{rugred}{rgb}{0.8,0,0}
setbeamercolor{palette primary}{bg=rugred,fg=white}
setbeamercolor{frametitle}{bg=rugred}

usepackage{booktabs}
usepackage[scale=2]{ccicons}

usepackage{pgfplots}
usepgfplotslibrary{dateplot}

usepackage{xspace}
newcommand{themename}{textbf{textsc{metropolis}}xspace}

usepackage{caption}
usepackage{subcaption}
usepackage{graphicx}
usepackage{bm}
usepackage{hyperref}


newcommand{R}{mathbb{R}}
newcommand{N}{mathbb{N}}

title{Title}
subtitle{Presentation}
date{today}
author{Author {and}{Supervisor: hspace{7.2mm} Supervisor} {and}{Second assessor: Second assessor}}
institute{University}

begin{document}

maketitle

plain{Questions?}

begin{frame}[allowframebreaks]{References}

  bibliography{references}
  bibliographystyle{abbrv}

end{frame}
end{document}

enter image description here

Answered by DG' on July 8, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP