\documentclass{article}
\usepackage{amsmath,xcolor}
\makeatletter
\renewcommand\tagform@[1]{%
\maketag@@@{\normalcolor\ignorespaces(#1)\unskip\@@italiccorr}}
\makeatother
\begin{document}
{\color{red}
\begin{align}
a & = \left\{1,2\right\}, \\
b & = \left\{4,8\right\},
\end{align}
}
\end{document}
If you look about beamercolorbox
in beameruserguide
will see that its parameter is a beamercolor
. Therefore, your footline uses normal text
color to write text in it. As I image you don't want to change normal text
definition, I'll explain how to change it for your footline text.
Once you have defined the color you want with
\definecolor{beamer@ColorIPN}{RGB}{140,17,17}
you need to use it in any beamercolor
, let's say,
\setbeamercolor{myfootlinetext}{fg=beamer@ColorIPN}
With this command a new beamercolor
called myfootlinetext
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
with myfootlinetext
in the second beamercolorbox
. That's all.
Following code uses Berkeley
theme because your footline
failed with default theme.
\documentclass{beamer}
\usetheme{Berkeley}
\makeatletter
\definecolor{beamer@ColorIPN}{RGB}{140,17,17}
\setbeamercolor{myfootlinetext}{fg=beamer@ColorIPN}
\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]{myfootlinetext}%
\usebeamerfont{date in head/foot}\hfill\insertshortauthor{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother
\author{I'm the author}
\title{}
\begin{document}
\section{First Section}
\begin{frame}{First frame}
\end{frame}
\end{document}
Best Answer
Some similar command for obtaining colored \cancelto (some math package is probably missing)