我正在尝试为即将进行的演示制作一些幻灯片,并使用 Metropolis 主题的自定义颜色。但是,我在更改纯色框架 ( ) 的颜色时遇到了一些问题\plain
。我的代码现在如下所示:
{
\setbeamercolor{background canvas}{bg=rugred}
\plain{Questions?}
}
其结果是:
。
此外,rugred
这是我自己制作的定制颜色。
有人能帮我解决这个问题吗?MWE 的计算公式为
\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}
答案1
您可以将的背景颜色设置palette primary
为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}