I hope this is not a duplicate question, but I did not find my answer. I have seen how to change the background color of footline, but not how to change text color.
I have this code for my footline:
\makeatletter
\newdimen\mywidth%
\setlength{\mywidth}{\paperwidth}%
\addtolength{\mywidth}{-\beamer@sidebarwidth}%
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\beamer@sidebarwidth,ht=2.25ex,dp=1ex,right]{sidebar}%
\end{beamercolorbox}
\begin{beamercolorbox}[wd=\mywidth,ht=2.25ex,dp=1ex,right]{normal text}%
\usebeamerfont{date in head/foot}\hfill\insertshortauthor{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother
This code produces just what I want: Author and frame number in footline, but I want it to show the text in a specific color I have defined before:
\definecolor{beamer@ColorIPN}{RGB}{140,17,17}
My question is, how do I change text color in foot line from black to IPN color?
Best Answer
If you look about
beamercolorbox
inbeameruserguide
will see that its parameter is abeamercolor
. Therefore, your footline usesnormal text
color to write text in it. As I image you don't want to changenormal text
definition, I'll explain how to change it for your footline text.Once you have defined the color you want with
you need to use it in any
beamercolor
, let's say,With this command a new
beamercolor
calledmyfootlinetext
is defined and it foreground component is fixed. Its background component is not defined.Now you can use where you need it. In this case, replace
normal text
withmyfootlinetext
in the secondbeamercolorbox
. That's all.Following code uses
Berkeley
theme because yourfootline
failed with default theme.