In Beamer I can change the color used for alerted text using the \setbeamercolor
command. Changing the color, however, does not change the color used for tikz nodes to which I pass the alert
option.
The following is a MWE:
\documentclass{beamer}
\usepackage{tikz}
\setbeamercolor{alerted text}{fg=green}
\begin{document}
\begin{frame}
Some \alert{text}
\begin{tikzpicture}
\node (A) {Node A};
\node[alert, below of=A] {Node B};
\end{tikzpicture}
\end{frame}
\end{document}
The result is this:
Note that the color is correctly changed to green in the normal text, but that the tikz node ignores the color I chose and uses the default red.
How do I change the color used for nodes to which I pass the alert option? That is, how do I ensure that passing the alert option to node B makes it green?
\usepackage{xcolor}
and\definecolor{alert}{rgb}{1,0,0}
and node B is still red.{rgb}{1,0,0}
defines red asr
inrgb
stands for red ;)