Beamer 中页脚的不同部分有不同的颜色吗?

Beamer 中页脚的不同部分有不同的颜色吗?

我想将页脚的三个部分修改为不同的颜色。如何实现?这里,我的页脚有三个部分。

\documentclass[10pt,xcolor={dvipsnames}]{beamer}
\usefonttheme{professionalfonts}
\useoutertheme{infolines}

\mode<presentation> {

\usetheme{Frankfurt}
\usecolortheme{whale}


\setbeamercolor{section in head/foot}{bg=blue!0!black,fg=white}
% -------------------------------------------------------------------------------------------------------------------------------------
% footer
%\setbeamercolor{section in foot}{fg=white, bg=OliveGreen}
%\setbeamercolor{section in foot}{fg=white, bg=MidnightBlue}
\setbeamerfont{footline}{size=\fontsize{6}{6}\selectfont}
%\setbeamercolor{section in foot}{fg=white, bg=ForestGreen}
%\setbeamercolor{section in foot}{bg=blue!40!black,fg=white}
\setbeamercolor{section in foot}{fg=white, bg=BlueViolet}
\setbeamertemplate{footline}
{
 \hbox{%
  \begin{beamercolorbox}[wd=.25\paperwidth,ht=2.6ex,dp=1ex,center]{section in foot}%
    \usebeamerfont{section in foot}\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.4\paperwidth,ht=2.6ex,dp=1ex,center]{section in foot}%
    \usebeamerfont{section in foot}\insertsubtitle
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.35\paperwidth,ht=2.6ex,dp=1ex,center]{section in foot}%
    \usebeamerfont{section in foot} Stanford \text{    } \insertframenumber/\inserttotalframenumber
  \end{beamercolorbox}}% 

  \vskip0pt%
}

\setbeamertemplate{navigation symbols}{}
}


\subtitle{\hspace{20mm} Signal Processing}
\author{Stephen}
\date{March 3, 2017}
% ------------------------------------------------------------------------------------------------------------------------------------------
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables


\begin{document}

\begin{frame}[plain]
\titlepage % Print the title page as the first slide
\end{frame}

\begin{frame}
\frametitle{Overview} % Table of contents slide, comment this block out to remove it
\tableofcontents % Throughout your presentation, if you choose to use \section{} and \subsection{} commands, these will automatically be printed on this slide as an overview of your presentation
\end{frame}



%------------------------------------------------

\begin{frame}
\Huge{\centerline{The End}}
\end{frame}

%----------------------------------------------------------------------------------------

\end{document}

答案1

分裂着色

\documentclass[10pt,xcolor={dvipsnames}]{beamer}
\usefonttheme{professionalfonts}
\useoutertheme{infolines}

\mode<presentation> {

\usetheme{Frankfurt}
\usecolortheme{whale}

\setbeamercolor{section in head/foot}{bg=blue!0!black,fg=white}

\setbeamerfont{footline}{size=\fontsize{6}{6}\selectfont}
\setbeamercolor{section in foot}{fg=white, bg=BlueViolet}
\setbeamercolor{subsection in foot}{fg=BlueViolet, bg=white}
\setbeamertemplate{footline}
{
 \hbox{%
  \begin{beamercolorbox}[wd=.25\paperwidth,ht=2.6ex,dp=1ex,center]{section in foot}%
    \usebeamerfont{section in foot}\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.4\paperwidth,ht=2.6ex,dp=1ex,center]{section in foot}%
    \usebeamerfont{section in foot}\insertsubtitle
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.35\paperwidth,ht=2.6ex,dp=1ex,center]{subsection in foot}%
    \usebeamerfont{section in foot} Stanford \text{    } \insertframenumber/\inserttotalframenumber
  \end{beamercolorbox}}%

  \vskip0pt%
}

\setbeamertemplate{navigation symbols}{}
}

\subtitle{\hspace{20mm} Signal Processing}
\author{Stephen}
\date{March 3, 2017}

\usepackage{graphicx}
\usepackage{booktabs}

\begin{document}

\begin{frame}[plain]
\titlepage
\end{frame}

\begin{frame}
\frametitle{Overview}
\tableofcontents
\end{frame}

\begin{frame}
\Huge{\centerline{The End}}
\end{frame}

\end{document}

相关内容