I have a problem regarding the \setbeamerfont command related to alerted text. The usage is:
\setbeamerfont{alerted text}{series=\bfseries}
However, bfseries does not work in math mode - what can I do to obtain the same effect for alerted text in math mode?
To use \bf was one thing I found during my search, but \bf is deprecated and should not be used, as it was told to be unstable in certain cases.
Minimal example:
beamerthemeTest.sty:
\mode<presentation>
\usepackage{mathptmx}
\useinnertheme{rectangles}
\usefonttheme[onlymath]{serif}
\usefonttheme{professionalfonts}
\setbeamerfont{alerted text}{series=\bfseries\boldmath}
\setbeamercolor{alerted text}{fg=blue}
\mode
<all>
Document:
\documentclass{beamer}
\usetheme{Test}
\begin{document}
\begin{frame}
\alert{This text is alerted.}
\alert{$x^2$} cannot be alerted.
\end{frame}
\end{document}


\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – samcarter_is_at_topanswers.xyz Apr 02 '15 at 09:21themeand the answer below, is that here you loadmathptmx. This does not have a bold version of math, and anyway is regard as obselete, see [https://www.ctan.org/pkg/mathptmx?lang=en]. If instead you either omit this package (so you get standard fonts) or use\usepackage{newtxtext,newtxmath}(times like) then the solution provided works – Andrew Swann Apr 20 '15 at 12:49