beamer add tag
Dr. Manuel Kuehner
* In "normal" beamer themes, I often use the color alert in pgfplots diagrams etc.
* This way, I use the same highlight color that is used for \alert{text} (alerted text).
* Strangely, in metropolis, the text command \alert{text} and the alert color lead to different colors.
* Is this a bug and how can access the alert color?


\documentclass{beamer}

\usetheme{metropolis}

\begin{document}
\begin{frame}
\frametitle{blub}

\alert{alert}\\
\textcolor{alert}{alert}

\end{frame}

\end{document}


![image.png](/image?hash=1a23340489e01e58513eb8444f00c6cbbb4bf32d4d163187ae3f5ae94c08f2dc)
Top Answer
samcarter
The colour for alerted text is stored in a beamer colour called altered text. You can access the foreground component of the beamer colour like this:


\documentclass{beamer}

\usetheme{metropolis}

\begin{document}
\begin{frame}
\frametitle{blub}

\alert{alert}\\
\textcolor{alerted text.fg}{alert}

\end{frame}

\end{document}


![Screenshot 2022-06-18 at 22.53.50.png](/image?hash=01492c2a0241e265cdabe9ba56d109b2518c16fe2bd4fc2f41dfdfc50efb467c)

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.